thru ch

mod of mark harris' midi thru object. only thru's the selected channel no clock
Author: Mattilyn Mattroe
License: Mate, if you're, like, at the bus stop.. ... and I see you.... .....you could, like.... give me a mars bar, yeah?
Github: matroe/midi/thru ch.axo

Inlets

None

Outlets

None

Attributes

combo input

combo output

spinner channel

Midi Handler
if (attr_input) {

  if ((status == MIDI_CONTROL_CHANGE + (attr_channel - 1)) ||
      (status == MIDI_NOTE_OFF + (attr_channel - 1)) ||
      (status == MIDI_NOTE_ON + (attr_channel - 1)) ||
      (status == MIDI_POLY_PRESSURE + (attr_channel - 1)) ||
      (status == MIDI_PITCH_BEND + (attr_channel - 1))) {
    MidiSend3((midi_device_t)attr_output, status, data1, data2);

  } else if ((status == MIDI_PROGRAM_CHANGE + (attr_channel - 1)) ||
             (status == MIDI_CHANNEL_PRESSURE + (attr_channel - 1))) {
    MidiSend2((midi_device_t)attr_output, status, data1);
  }
}

Privacy

© 2024 Zrna Research