top disp

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

Inlets

bool32.risingfalling on

int32 coloron

int32 coloroff

bool32.rising redraw

Outlets

None

Attributes

combo device

combo on

combo off

spinner button

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_CONTROL_CHANGE,
            (104 + attr_button), b);
  ntrig = 1;
  prevb = b;
} else
  ntrig = 0;

Privacy

© 2024 Zrna Research