cc any

Midi controller output to any CC number and channel. Sends to midi/in/* objects only.
Author: Johannes Taelman
License: BSD
Github: midi/intern/cc any.axo

Inlets

bool32.rising trigger

frac32.positive value

int32.positive midi Continous Controller number 0-127

int32.positive channel 1..16

Outlets

None

Declaration
int ntrig;
Control Rate
if ((inlet_trig > 0) && !ntrig) {
  PatchMidiInHandler(MIDI_DEVICE_INTERNAL, 0,
                     MIDI_CONTROL_CHANGE + ((inlet_chan - 1) & 0xF), inlet_cc,
                     __USAT(inlet_v >> 20, 7));
  ntrig = 1;
}
if (!(inlet_trig > 0))
  ntrig = 0;

Privacy

© 2024 Zrna Research