led master

Author:
License: GPL
Github: rbrt/testing/led master.axo

Inlets

None

Outlets

None

Attributes

spinner thin

Declaration
uint8_t count;
uint8_t ROW;
uint8_t array[77] = {240, 71, 127, 21, 0, 0, 69, 0};
uint8_t CELLOFFSET[8] = {8, 17, 25, 34, 42, 51, 59, 68};
Init
{
  int i;
  for (i = 8; i < 76; i++)
    array[i] = 0;
}
array[76] = 247;
Control Rate
if ((ROW && !count) && !MidiGetOutputBufferPending(MIDI_DEVICE_USB_HOST)) {
  array[4] = ROW + 23;
  MidiSendSysEx(MIDI_DEVICE_USB_HOST, 2, array, 77);
  ROW = 0;
  count = attr_thin;
}
if (count)
  count--;

Privacy

© 2024 Zrna Research