menuLOG

Module for logging names and selection for integer signals in the log window (like a menu for waveforms) example for a waveform selector with 4 waveforms: -edit a name of the parameter in the paramName attribute like (include the " "): "waveform OSC 1" -set the amount of available waveforms using the selections attribute -edit the names attribute to include all the names of the waveforms (include the { } and " "): {"sin","tri","saw","sqr"} when the input switches value, it updates the newly selected waveform in the logging window
Author: Remco van der Most
License: BSD
Github: sss/disp/menuLOG.axo

Inlets

int32 sel

Outlets

int32 sel

Attributes

text paramName

text names

spinner selections

Declaration
char c[attr_selections][4] = attr_names;
int32_t v27 = 1 << 27;
int prv;
Control Rate
outlet_sel = inlet_sel >= attr_selections ? attr_selections - 1 : inlet_sel;

if (!(prv == outlet_sel)) {
  LogTextMessage(attr_paramName);
  LogTextMessage(c[outlet_sel]);
}

prv = outlet_sel;

Privacy

© 2024 Zrna Research