channelnote

outputs the channel of the last played note
Author: Simon Iten
License: BSD
Github: lokki/midi/in/channelnote.axo

Inlets

None

Outlets

int32.positive midi channel 1..16

Declaration
int32_t _channel;
Init
_channel = 1;
Control Rate
outlet_channel = _channel;
Midi Handler
if ((status & 0xF0) == MIDI_NOTE_ON) {
  _channel = (status & 0x0F) + 1;
}

Privacy

© 2024 Zrna Research