@ -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,
[
@ -51,13 +53,17 @@ MIDIdef.noteOn(\noteOnTest, {
\rq, 0.5,
]
);
});
MIDIdef.noteOff(\noteOffTest, {
arg vel, nn;
arg vel, nn, chan;
~notes[nn].set(\gate, 0);
~notes[nn] = nil;
)