bool32.risingfalling mute
bool32.risingfalling muteOnOnly
int32.positive note
int32.positive velo
int32.positive note
int32.positive velo
uint8_t note;
uint8_t velo;
uint8_t pnote;
uint8_t pvelo;
if (!inlet_mute) {
note = inlet_note;
velo = inlet_velo;
} else if ((!inlet_velo) && inlet_muteOnOnly) {
note = inlet_note;
velo = 0;
}
if ((note != pnote) || (velo != pvelo)) {
pnote = note;
pvelo = velo;
}
outlet_note = pnote;
outlet_velo = pvelo;