cc send 4

sends 4 midi control changes,starting from 'startcc'
Author: robert schirmer
License: who cares
Github: rbrt/midi/out/cc send 4.axo

Inlets

int32 startcc

frac32.positive v0

frac32.positive v1

frac32.positive v2

frac32.positive v3

Outlets

None

Parameters

int32 startcc

Attributes

combo device

spinner channel

Declaration
uint32_t prev0;
uint32_t prev1;
uint32_t prev2;
uint32_t prev3;
uint32_t prev4;
uint32_t prev5;
uint32_t prev6;
uint32_t prev7;
Control Rate
if (inlet_v0 != prev0) {
  MidiSend3((midi_device_t)attr_device,
            MIDI_CONTROL_CHANGE + (attr_channel - 1),
            0 + inlet_startcc + param_startcc, inlet_v0 >> 20);
  prev0 = inlet_v0;
}

if (inlet_v1 != prev1) {
  MidiSend3((midi_device_t)attr_device,
            MIDI_CONTROL_CHANGE + (attr_channel - 1),
            1 + inlet_startcc + param_startcc, inlet_v1 >> 20);
  prev1 = inlet_v1;
}

if (inlet_v2 != prev2) {
  MidiSend3((midi_device_t)attr_device,
            MIDI_CONTROL_CHANGE + (attr_channel - 1),
            2 + inlet_startcc + param_startcc, inlet_v2 >> 20);
  prev2 = inlet_v2;
}

if (inlet_v3 != prev3) {
  MidiSend3((midi_device_t)attr_device,
            MIDI_CONTROL_CHANGE + (attr_channel - 1),
            3 + inlet_startcc + param_startcc, inlet_v3 >> 20);
  prev3 = inlet_v3;
}

Privacy

© 2024 Zrna Research