poly cc 8 FULL

outputs the state of 8 controllers starting from 'startcc'
Author: Robert Schirmer
License: BSD
Github: rbrt/midi/in/poly cc 8 FULL.axo

Inlets

int32 startcc

Outlets

frac32.positive cc0

frac32.positive cc1

frac32.positive cc2

frac32.positive cc3

frac32.positive cc4

frac32.positive cc5

frac32.positive cc6

frac32.positive cc7

Parameters

int32 startcc

Declaration
uint8_t cc[128];
uint8_t start;
Control Rate
start = (inlet_startcc + param_startcc);

outlet_cc0 = cc[start] << 20;
outlet_cc1 = cc[start + 1] << 20;
outlet_cc2 = cc[start + 2] << 20;
outlet_cc3 = cc[start + 3] << 20;

outlet_cc4 = cc[start + 4] << 20;
outlet_cc5 = cc[start + 5] << 20;
outlet_cc6 = cc[start + 6] << 20;
outlet_cc7 = cc[start + 7] << 20;
Midi Handler
if (status == attr_midichannel + MIDI_CONTROL_CHANGE)
  cc[data1] = ((33284 * data2) >> 15);

Privacy

© 2024 Zrna Research