[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-dev] multichannel expansion of multi out ugens




In Demand there seems to be a very unexpected behaviour:

// works as expected
(
{
var t = Impulse.ar(16 ! 2);
var d = Impulse.ar(1);
var x = PulseDivider.ar(t, Demand.ar(d, 0, { Dseq([8, 4, 2], inf) } ! 2));
Ringz.ar(x * 0.1, [70, 86].midicps, 0.13)
}.play;
)

// works as expected
(
{
var t = Impulse.ar(16 ! 2);
var d = Impulse.ar(1);
var x = PulseDivider.ar(t, Demand.ar(d, 0, Dseq([8, 4, 2], inf)));
Ringz.ar(x * 0.1, [70, 86].midicps, 0.13)
}.play;
)

// splits up into unequal pairs
(
{
var t = Impulse.ar(16 ! 2);
var d = Impulse.ar(1 ! 2); // stereo input
var x = PulseDivider.ar(t, Demand.ar(d, 0, { Dseq([8, 4, 2], inf) } ! 2));
Ringz.ar(x * 0.1, [70, 86].midicps, 0.13)
}.play;
)

// this finally works
(
{
var t = Impulse.ar(16 ! 2);
var d = Impulse.ar(1 ! 2); // stereo input
var x = PulseDivider.ar(t, Demand.ar(d, 0, [{ Dseq([8, 4, 2], inf) } ! 2]));
Ringz.ar(x * 0.1, [70, 86].midicps, 0.13)
}.play;
)



should this be fixed?
I think it is counterintuitive that with a multichannel trig input the ugen does not really expand unless we supply a 2D array in the demand ugen input.

--





.