|
|
|
@ -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,
|
|
|
|
[
|
|
|
|
[
|
|
|
|
@ -51,13 +53,17 @@ MIDIdef.noteOn(\noteOnTest, {
|
|
|
|
\rq, 0.5,
|
|
|
|
\rq, 0.5,
|
|
|
|
]
|
|
|
|
]
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|