int32 startcc
frac32.positive v0
frac32.positive v1
frac32.positive v2
frac32.positive v3
None
int32 startcc
combo device
spinner channel
uint32_t prev0;
uint32_t prev1;
uint32_t prev2;
uint32_t prev3;
uint32_t prev4;
uint32_t prev5;
uint32_t prev6;
uint32_t prev7;
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;
}