left block 2 get

outputs the state of 8 controllers starting from 'startcc'
Author: Robert Schirmer
License: BSD
Github: rbrt/push/left block 2 get.axo

Inlets

None

Outlets

bool32 b0

bool32 b1

bool32 b2

bool32 b3

Declaration
uint8_t cc[4];
Control Rate
outlet_b0 = cc[0];
outlet_b1 = cc[1];
outlet_b2 = cc[2];
outlet_b3 = cc[3];
Midi Handler
if (status == attr_midichannel + MIDI_CONTROL_CHANGE) {

  if (data1 == 119)
    cc[0] = data2;
  if (data1 == 118)
    cc[1] = data2;
  if (data1 == 117)
    cc[2] = data2;
  if (data1 == 116)
    cc[3] = data2;
}

Privacy

© 2024 Zrna Research