cc any

Midi controller output to any CC number and channel
Author: Johannes Taelman
License: BSD
Github: midi/out/cc any.axo

Inlets

frac32.positive value

int32.positive midi Continous Controller number 0-127

int32.positive channel 1..16

bool32.rising trigger

Outlets

None

Attributes

combo device

Declaration
int ntrig;
Control Rate
if ((inlet_trig > 0) && !ntrig) {
  MidiSend3((midi_device_t)attr_device,
            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