right disp

sets a right row button on the 'launchpad' to the defined color
Author: robert schirmer
License: BSD
Github: rbrt/launchpad/right disp.axo

Inlets

bool32.risingfalling on

int32 coloron

int32 coloroff

bool32.rising redraw

Outlets

None

Attributes

spinner button

combo device

combo on

combo off

Declaration
uint8_t b;
uint8_t prevb;
int ntrig;
Control Rate
b = (inlet_on) ? (attr_on + inlet_coloron) : (attr_off + inlet_coloroff);
if (((b != prevb) || (inlet_redraw > 0)) && (!ntrig)) {
  MidiSend3((midi_device_t)attr_device, MIDI_NOTE_ON, ((attr_button << 4) + 8),
            b);
  ntrig = 1;
  prevb = b;
} else
  ntrig = 0;

Privacy

© 2024 Zrna Research