Input mismatch

Hi everyone,

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?

Are you on Mac, Windows or Linux?

What does the server boot sequence look like in the post window?

hjh

Some more questions in addition to @jamshark70:

  • which SC version are you using exactly?
  • which is the last version where the mapping still works as expected?

Hi there Jam,

I’m on Mac.
here’s the boot sequence:

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)”

“Babyface Pro (71994464)” Input Device
Streams: 4
0 channels 2
1 channels 2
2 channels 8
3 channels 2

“Babyface Pro (71994464)” Output Device
Streams: 3
0 channels 4
1 channels 8
2 channels 2

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

Hi Spacechild

3.13.0
I only used this one

… 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.

hjh

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…

Yes, that happens to me with annoying frequency.