I’m trying to share a random-generated \dur between two patterns in a Plambda like this:
Pdef(\p1, Plambda( Ppar([ Pbind( \type, \set, \id, ~bassoon, \instrument, \orangoEffects, \args, #, \lpf, Pwhite(500,5000,inf), \dur, Plet(\dur1, Pwrand([0.7894, 0.7894/2], [0.3, 0.7], inf), 0) ), Pbind( \type, \midi, \midiout, ~synth, \midicmd, \control, \ctlNum, 43, \control, Pwhite(30,105,inf), \dur, Pget(\dur1, 0, inf) ); ]); ); );
The thing is I remember being able to do something very similar, sending MIDI to a synth and using the same \dur value to change an effect on an instrument with the \set type. But not now.
Does anybody have insight on this?