bool32.rising redraw
bool32.risingfalling mute
None
objref holdmap
spinner thin
spinner channel
combo device
uint8_t preout[128];
uint8_t counter;
bool trig;
uint8_t thin;
if (!inlet_mute) {
if (inlet_redraw && !trig)
memset(&preout[0], 128, 128);
if (!inlet_redraw)
trig = 0;
// send output map
if (!thin) {
if ((attr_holdmap.array[counter] != preout[counter]) &&
!MidiGetOutputBufferPending(MIDI_DEVICE_USB_HOST)) {
MidiSend3((midi_device_t)attr_device, MIDI_NOTE_ON + (attr_channel - 1),
counter, attr_holdmap.array[counter]);
thin = attr_thin;
preout[counter] = attr_holdmap.array[counter];
}
} else
thin--;
counter++;
counter = counter % 128;
}