set right chan

master
Leo Coogan 9 months ago
parent 0913795834
commit 3ff392c6ef
Signed by: lcoogan
SSH Key Fingerprint: SHA256:vnrR5ilHkdr6L4t2yOMUMINFPpxEh+53N3nMel66mCw

@ -40,6 +40,8 @@ SynthDef(\rhubarb, {
MIDIdef.noteOn(\noteOnTest, { MIDIdef.noteOn(\noteOnTest, {
arg vel, nn, chan, src; arg vel, nn, chan, src;
// [vel, nn].postln; // [vel, nn].postln;
if (chan == 0, {
~notes[nn] = Synth.new( ~notes[nn] = Synth.new(
\rhubarb, \rhubarb,
[ [
@ -52,13 +54,17 @@ MIDIdef.noteOn(\noteOnTest, {
] ]
); );
}); });
});
MIDIdef.noteOff(\noteOffTest, { MIDIdef.noteOff(\noteOffTest, {
arg vel, nn; arg vel, nn, chan;
// [vel, nn].postln; // [vel, nn].postln;
if (chan == 0, {
~notes[nn].set(\gate, 0); ~notes[nn].set(\gate, 0);
~notes[nn] = nil; ~notes[nn] = nil;
}); });
});
) )

Loading…
Cancel
Save