Project

LFO template with custom radio selectors

Started by analog604 on .

Sign in or create an account to join the conversation.

4 posts

Topic starter
Hi Guys,

I've been working on making custom buttons work as radio buttons
and just got it to work last night.
It's to select an LFO type and associated parameters.
Not tied into any code to do useful stuff yet!
But the buttons work, so hopefully this will save some time
and you can make something cool with it.

simplified-customButtonRadios-1a.zip

a604-LFO-radioButtons1.jzml.zip

EDIT: I created a simplified version for the sake of readability and use in your own templates.
This one cannot reference multi LFO parameters across many container Tabs.

The original is here too in case you need that complexity.

cheers~
Jay
hello again!could you provide some more information on how this works? I understand the principle of what it should do but i dont understand how i go about assigning the destination to anything. What I tried doing was creating a additional slider with the hope i could set the destination to control this. Though this did not work, could you please explain what I need do. thanks! Olly
[EDIT: created a simplified version, see above. It includes a slider and knob that also change button selection state, but not the other way around. Will someone be kind enough to show us how the radio buttons will also update the slider and knob?]

The global variable radiostate contains the button types a value.
0=no LFO selected.
1-6 LFO type (can be expanded)

Just add an action script to your own sliders/buttons if the radio selection is not enough and have it execute on change of x :

buttonradiostate=range(x,0,6); // 6 buttons, 7 states including off.
updatebuttonstate() which will update the buttons.

Hope this helps a bit.. :)