bool32.risingfalling gate
bool32.rising trigger
None
int32 note
int32 velon
int32 veloff
combo device
spinner channel
int ntrig;
int lastnote;
ntrig = 0;
if (inlet_gate && ((inlet_trig > 0) && !ntrig)) {
MidiSend3((midi_device_t)attr_device, MIDI_NOTE_ON + (attr_channel - 1),
param_note, param_velon);
ntrig = 1;
}
if (!inlet_gate && ((inlet_trig > 0) && !ntrig)) {
MidiSend3((midi_device_t)attr_device, MIDI_NOTE_ON + (attr_channel - 1),
param_note, param_veloff);
ntrig = 1;
}
if (!(inlet_trig > 0) && ntrig) {
ntrig = 0;
}