note out poly

sends a note / a velocity when either changes
Author: robert schirmer
License: BSD
Github: rbrt/poly/note out poly.axo

Inlets

int32.positive note

int32.positive velo

Outlets

None

Attributes

combo device

spinner channel

Declaration
uint8_t pren;
uint8_t prev;
Control Rate
if ((inlet_note != pren) || (inlet_velo != prev)) {
  MidiSend3((midi_device_t)attr_device, MIDI_NOTE_ON + (attr_channel - 1),
            inlet_note, inlet_velo);
  pren = inlet_note;
  prev = inlet_velo;
}

Privacy

© 2024 Zrna Research