int32 startnote
int32 v0
int32 v1
int32 v2
int32 v3
None
int32 startnote
combo device
spinner channel
uint8_t prev0;
uint8_t prev1;
uint8_t prev2;
uint8_t prev3;
uint8_t startnote;
startnote = param_startnote + inlet_startnote;
if (inlet_v0 != prev0) {
MidiSend3((midi_device_t)attr_device, MIDI_NOTE_ON + (attr_channel - 1),
startnote, inlet_v0);
prev0 = inlet_v0;
}
if (inlet_v1 != prev1) {
MidiSend3((midi_device_t)attr_device, MIDI_NOTE_ON + (attr_channel - 1),
startnote + 1, inlet_v1);
prev1 = inlet_v1;
}
if (inlet_v2 != prev2) {
MidiSend3((midi_device_t)attr_device, MIDI_NOTE_ON + (attr_channel - 1),
startnote + 2, inlet_v2);
prev2 = inlet_v2;
}
if (inlet_v3 != prev3) {
MidiSend3((midi_device_t)attr_device, MIDI_NOTE_ON + (attr_channel - 1),
startnote + 3, inlet_v3);
prev3 = inlet_v3;
}