vel send 4

sends 4 note velocities,no gate,no bullshit.for controllers that feel like receiving them.
Author: robert schirmer
License: BSD
Github: rbrt/midi/out/vel send 4.axo

Inlets

int32 startnote

int32 v0

int32 v1

int32 v2

int32 v3

Outlets

None

Parameters

int32 startnote

Attributes

combo device

spinner channel

Declaration
uint8_t prev0;
uint8_t prev1;
uint8_t prev2;
uint8_t prev3;
uint8_t startnote;
Control Rate
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;
}

Privacy

© 2024 Zrna Research