Exception calling engine.make_playback_processor with mono samples #132
-
I've only just started playing with DawDreamer so I am almost certainly missing something very basic, but I'm hitting an exception trying to create a playback processor with a mono wave. I've reproduced it with one of the built-in Windows dings. BTW DawDreamer looks awesome, thanks for you work @DBraun
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The audio data must be shaped 2D (num channels, num samples). So (1, num samples) is ok but (num samples) by itself won’t work. You can use numpy expand_dims to add the new dimension. Let me know if that helps out. I’m away from my computer at the moment. |
Beta Was this translation helpful? Give feedback.
The audio data must be shaped 2D (num channels, num samples). So (1, num samples) is ok but (num samples) by itself won’t work. You can use numpy expand_dims to add the new dimension. Let me know if that helps out. I’m away from my computer at the moment.