pgm

Midi program change
Author: Johannes Taelman
License: BSD
Github: midi/in/pgm.axo

Inlets

None

Outlets

int32 program

bool32.pulse trigger output

Declaration
int8_t _pgm;
int8_t ntrig;
Init
_pgm = 0;
ntrig = 0;
Control Rate
outlet_o = _pgm;
outlet_trig = ntrig;
ntrig = 0;
Midi Handler
if (status == MIDI_PROGRAM_CHANGE + attr_midichannel) {
  _pgm = data1;
  ntrig = 1;
}

Privacy

© 2024 Zrna Research