Multichannel playback on soundcard ok, but not direct recording to multichannel Wav file #3173
aourednik
started this conversation in
Feature/Improvement Ideas
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The test code below correctly outputs sound to 4 channels on an external soundcard,
NOTE: to use an external USB soundcard with Sonic Pi, you need to start Sonic Pi with the sound card already plugged in! If you plug the soundcard after SPi strats, selecting it as your output device in your OS config (in my case MacOS 10.14) has no effect on Sonic Pi.
Also: verify that the soundcard is set to 44.1 kHz. Supercollider, and thus Sonic Pi, does not accept to output to 48kHz unless you modify its config files.
Now, to the issue:
The resulting wav is only stereo, not multichannel. An it only contains info from channel 1 and 2.
5 and 6 are lost.
Could this be implemented, for example by producing one mono wav file per channel? Than it would be easy to combine them, for instance with ffmpeg:
Even better: Sonic Pi could have a 5.1 wav output setting, with channels mapped by default as follows:
1: front_left
2: front_right.
3: front_center
4: lfe
5: back_left
6: back_right
The Sonic Pi test code
6 speaker configuration : 1 left, 2 right, 5 back left, 6 back right
Beta Was this translation helpful? Give feedback.
All reactions