Make number of channels configurable

Mono is enough for my purpose, so I made the number of channels configurable (#30).