faroit / stempeg

Python I/O for STEM audio files
https://faroit.github.io/stempeg
MIT License
96 stars 13 forks source link

Add a check for mono files #20

Closed faroit closed 3 years ago

faroit commented 5 years ago

As pointed out in #19, when writing mono files using stempeg, the codec expects stereo files. However, there is no exception raised which is why the files will playback with double rate.

It would be better to check the number of channels ==2 before writing files.

faroit commented 3 years ago

fixed in #28