bool32 shift
None
combo output device
spinner default channel
spinner shift channel
int shiftchannel;
if (inlet_shift) {
shiftchannel = (attr_shiftchannel - 1);
} else if (!inlet_shift) {
shiftchannel = (attr_channel - 1);
}
if (status == MIDI_NOTE_ON + (attr_channel - 1)) {
MidiSend3((midi_device_t)attr_device, MIDI_NOTE_ON + shiftchannel, data1,
data2);
}
if (status == MIDI_NOTE_OFF + (attr_channel - 1)) {
MidiSend3((midi_device_t)attr_device, MIDI_NOTE_OFF + shiftchannel, data1,
data2);
}
if (status == (attr_channel - 1) + MIDI_CONTROL_CHANGE) {
MidiSend3((midi_device_t)attr_device, shiftchannel + MIDI_CONTROL_CHANGE,
data1, data2);
}
if (status == MIDI_POLY_PRESSURE + (attr_channel - 1)) {
MidiSend3((midi_device_t)attr_device, MIDI_POLY_PRESSURE + shiftchannel,
data1, data2);
}
if (status == MIDI_PROGRAM_CHANGE + (attr_channel - 1)) {
MidiSend3((midi_device_t)attr_device, MIDI_PROGRAM_CHANGE + shiftchannel,
data1, data2);
}
if (status == MIDI_PITCH_BEND + (attr_channel - 1)) {
MidiSend3((midi_device_t)attr_device, MIDI_PITCH_BEND + shiftchannel, data1,
data2);
}
if (status == MIDI_CHANNEL_PRESSURE + (attr_channel - 1)) {
MidiSend2((midi_device_t)attr_device, MIDI_CHANNEL_PRESSURE + shiftchannel,
data1);
}