notefilter

when a note is already active in a different midi-stream which is mapped to a 'holdmap' - object, 'midicheck' will output a 1 at 'outlet_used'. useful for muting midi-streams.
Author: Robert Schirmer
License: BSD
Github: rbrt/poly/notefilter.axo

Inlets

bool32.risingfalling active

int32.positive filter

int32.positive note

int32.positive velo

Outlets

int32 note

int32 velo

Declaration
uint8_t note;
uint8_t velo;
Control Rate
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;

Privacy

© 2024 Zrna Research