right row

outputs the state of the right-row buttons of a 'novation launchpad'. DOES NOT work with the 'LP mark 1'.
Author: robert schirmer
License: BSD
Github: rbrt/launchpad/right row.axo

Inlets

None

Outlets

bool32 r0

bool32 r1

bool32 r2

bool32 r3

bool32 r4

bool32 r5

bool32 r6

bool32 r7

Declaration
bool gate[128];
Control Rate
outlet_r0 = gate[8];
outlet_r1 = gate[24];
outlet_r2 = gate[40];
outlet_r3 = gate[56];

outlet_r4 = gate[72];
outlet_r5 = gate[88];
outlet_r6 = gate[104];
outlet_r7 = gate[120];
Midi Handler
if ((status == MIDI_NOTE_ON + attr_midichannel) && (data2))
  gate[data1] = 1;
if (((status == MIDI_NOTE_ON + attr_midichannel) && (!data2)) ||
    (status == MIDI_NOTE_OFF + attr_midichannel))
  gate[data1] = 0;

Privacy

© 2024 Zrna Research