bool32.risingfalling on
int32 coloron
int32 coloroff
bool32.rising redraw
None
combo device
combo on
combo off
spinner button
uint8_t b;
uint8_t prevb;
int ntrig;
b = (inlet_on) ? (attr_on + inlet_coloron) : (attr_off + inlet_coloroff);
if (((b != prevb) || (inlet_redraw > 0)) && (!ntrig)) {
MidiSend3((midi_device_t)attr_device, MIDI_CONTROL_CHANGE,
(104 + attr_button), b);
ntrig = 1;
prevb = b;
} else
ntrig = 0;