midicheck

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/midicheck.axo

Inlets

bool32.risingfalling bypass

int32.positive note

int32.positive velo

Outlets

bool32 used

int32 note

int32 velo

Attributes

objref holdmap

Declaration
uint8_t pren1;
uint8_t prev1;
uint8_t pren2;
uint8_t prev2;
uint8_t note;
uint8_t velo;
bool count;

uint8_t pren;
uint8_t prev;
Control Rate
if (!inlet_bypass)
  outlet_used = attr_holdmap.array[inlet_note];

outlet_note = inlet_note;
outlet_velo = inlet_velo;

Privacy

© 2024 Zrna Research