LFO template with custom radio selectors

Post your Lemur Projects.
Post Reply
analog604
Regular
Posts: 262
Joined: 29 Dec 2011 15:40
Location: north east, usa

LFO template with custom radio selectors

Post 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
Last edited by analog604 on 02 Jan 2012 17:54, edited 1 time in total.
Dashboard gear control templates: User 112 Idx :: LModIt Lite :: SVG image converter for Lemur Canvas
1000errors
Newbie
Posts: 18
Joined: 13 Dec 2011 15:27
Location: The Netherlands
Contact:

Re: LFO template with custom radio selectors

Post 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
analog604
Regular
Posts: 262
Joined: 29 Dec 2011 15:40
Location: north east, usa

Re: LFO template with custom radio selectors

Post 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.. :)
Dashboard gear control templates: User 112 Idx :: LModIt Lite :: SVG image converter for Lemur Canvas
analog604
Regular
Posts: 262
Joined: 29 Dec 2011 15:40
Location: north east, usa

Re: LFO template with custom radio selectors

Post by analog604 »

note to thread watchers, I updated code for simplified version see above. cheers~
Dashboard gear control templates: User 112 Idx :: LModIt Lite :: SVG image converter for Lemur Canvas
Post Reply