cc i

Receives Midi Continuous Controller messages, integer output (0-127)
Author: Johannes Taelman
License: BSD
Github: midi/in/cc i.axo

Inlets

None

Outlets

int32.positive midi CC 0-127

bool32.pulse trigger output

Attributes

spinner cc

spinner default

Declaration
int32_t ccv;
int32_t ntrig;
Init
ccv = attr_default;
Control Rate
outlet_midiCC = ccv;
outlet_trig = ntrig;
ntrig = 0;
Midi Handler
if ((status == attr_midichannel + MIDI_CONTROL_CHANGE) && (data1 == attr_cc)) {
  ccv = data2;
  ntrig = 1;
}

Privacy

© 2024 Zrna Research