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