bool32.risingfalling active
int32.positive filter
int32.positive note
int32.positive velo
int32 note
int32 velo
uint8_t note;
uint8_t velo;
if (inlet_active) {
if (inlet_note != inlet_filter) {
note = inlet_note;
velo = inlet_velo;
}
} else {
note = inlet_note;
velo = inlet_velo;
}
outlet_note = note;
outlet_velo = velo;