I’m having a weird channel mapping issue with my RME Babyface Pro:
a signal connected to physical Input 3 (channel 2 in SC) is being registered by SuperCollider on software channel 0 (meaning SoundIn.ar(0) captures Input 3 instead of Input 1).
Setup & Checks:
Server Options properly configured to 4 inputs and 2 outputs. Potentially the interface could have 12 ins, but I prefer that my internal buses start at index 4.
TotalMix FX: Everything is completely normal. The signal correctly shows up only on Input 3.
History: This exact 4-in/2-out setup used to work perfectly in the past, with Input 3 mapping correctly to index 2 (SoundIn.ar(2)).
Has anyone experienced this channel shifting or knows how to force scsynth to respect the hardware alignment without opening all 12 channels?
Booting server ‘localhost’ on address 127.0.0.1:57110.
Found 0 LADSPA plugins
Number of Devices: 3
0 : “MacBook Air Microphone”
1 : “MacBook Air Speakers”
2 : “Babyface Pro (71994464)”
SC_AudioDriver: sample rate = 48000.000000, driver’s block size = 512
SuperCollider 3 server ready.
Requested notification messages from server ‘localhost’
localhost: server process’s maxLogins (1) matches with my options.
localhost: keeping clientID (0) as confirmed by server process.
Shared memory server interface initialized
… weirdly enough, all seems to be in the right place today.
I didn’t do anything other than restarting supercollider, which of course I had tried as well before.
On the other hand, another mistery happened: the samplerate changed so I had to set it again. Any experience with this? it seems totally random to me the way the last settings are sometimes kept or forgotten.
CoreAudio has a concept of input and output “streams,” which are groups of channels. In theory they’re supposed to be stable configurations but who knows? (I’m just guessing here.)
As for sample rate (in macOS), my understanding is that if s.options.sampleRate is nil at boot time, it will use the current system sample rate. If it’s set, SC will request to open the audio port at that sample rate, but there is a possibility of CoreAudio refusing and using its own sample rate. Windows and Linux may be different.
I’ve found recently that I have to set the sample rate on the Mac, as if I request a different sample rate there’s a sample rate mismatch between SuperCollider and my audio interface.
Also, periodically the Mac decides to change the default sample rate for unknown reasons.
So maybe there’s a similar thing going on with channel mapping?
… do you also get that the macbook resets samplerates so that it doesn’t match anymore Supercollider’s?
On SC I work at 48k, macbook’s audio midi setup often reverts to 44.1 which impedes booting. What’s also frustrating is that after changing sr on the mac, I still have to again reset manually in and outDevice…