MIDIdef and gate

Hi,

How does one handle synths which has a gate argument, with a external midikeyboard (MIDIdef.noteOn, MIDIdef.noteOff)?

There is also an example in the built-in documentation:

https://docs.supercollider.online/Guides/UsingMIDI.html#Playing%20notes%20on%20your%20MIDI%20keyboard

Also, my ddwVoicer quark supports voice-stealing, and simplifies midi keyboard usage because notes are addressed by pitch. (It does use == on floats, but .midicps is deterministic.)

v = Voicer(15, \default);

MIDIIn.connectAll;

// no funky arrays, no fuss
MIDIdef.noteOn(\on, { |vel, num| v.trigger1(num.midicps, vel/127) });
MIDIdef.noteOff(\off, { |vel, num| v.release1(num.midicps) });

hjh