Page 1 of 1

LFO template with custom radio selectors

Posted: 01 Jan 2012 14:17
by analog604
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
Simplified version of code. More global variables, Less arrays and container objects with tabs not used.
(3.1 KiB) Downloaded 228 times
a604-LFO-radioButtons1.jzml.zip
custom buttons within tab container with radio buttons in sample LFO waveform selector. JDspace
(2.89 KiB) Downloaded 216 times
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

Re: LFO template with custom radio selectors

Posted: 02 Jan 2012 14:00
by 1000errors
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

Re: LFO template with custom radio selectors

Posted: 02 Jan 2012 16:55
by analog604
[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.. :)

Re: LFO template with custom radio selectors

Posted: 02 Jan 2012 18:01
by analog604
note to thread watchers, I updated code for simplified version see above. cheers~