Hi all, a technical question on NodeProxy/Ndef.
As I understand from reading the NodeProxy help file, if a proxy’s reshaping attribute is nil
, and a source with a channel size > proxy channel size is provided, the channels will “wrap” and be mixed to fit the proxy’s size. For example, if a 4-channel signal is provided for a 2-channel proxy’s source, then channels 1 and 3 will be mixed in the left, while 2 and 4 will be mixed on the right — similar to binary operations with differently-sized arrays:
[ 10, 20 ] + [ 5, 6, 7, 8 ]; // --> [ 15, 26, 17, 28 ]
However, this seems not to be the case. In the following example, I can clearly hear that channels 1 and 2 are in the left ear, while 3 and 4 are in the right ear. This is not what I would consider “wrapping.” Am I misunderstanding something?
s.boot;
Ndef(\sines).play;
// a 2-channel source
Ndef(\sines, { SinOsc.ar([425,500]) * Decay2.ar(Impulse.ar([2,3]), 0.005, 0.3, 0.1) });
// substitute a 4-channel source
Ndef(\sines, { SinOsc.ar([425,500,750,850]) * Decay2.ar(Impulse.ar([2,3,4,5]), 0.005, 0.3, 0.1) });
Eli