Page 1 of 1
"Redrawing GUI" Open pages
Posted: Fri Jan 01, 2016 10:22 pm
by Wassaka
Hi! I am Wassaka and I am newbie in FlowStone. I want to put sections in my synth, like effects, osc, filter... etc, but I want to put them in the same place, and choose with Radio-buttons, the section. I tryed to do this but it doesn't work... Please, can you help me? Or pass me the schematic. Thanks and Happy New Year!!!

Re: "Redrawing GUI" Open pages
Posted: Sat Jan 02, 2016 12:49 am
by kortezzzz
Hi and welcome.
Here is a very basic example using the radio buttons method. Hope it help.
Re: "Redrawing GUI" Open pages
Posted: Sat Jan 02, 2016 1:09 am
by RJHollins
Thanks for posting this example. Interesting all the different ways this idea can be realized.
One issue
When I first loaded in the example schematic, got a RUBY error. Located in the 'radio buttons bill v concept' module.
To correct, I just had to turn OFF then ON the RUBY box ... but the question ... why the error? how to solve ?
'NoMethodError ... in method DRAW ... undefined method {} for nil:NilClass"
Re: "Redrawing GUI" Open pages
Posted: Sat Jan 02, 2016 2:11 am
by Wassaka
kortezzzz wrote:Hi and welcome.
Here is a very basic example using the radio buttons method. Hope it help.
Woow man, thanks you very much!!
Re: "Redrawing GUI" Open pages
Posted: Sat Jan 02, 2016 4:48 am
by billv
RJHollins wrote:why the error? how to solve ?
'NoMethodError ... in method DRAW ... undefined method {} for nil:NilClass"
Notice RJ there are two arrays in the draw section that I didn't initialize properly.
Drop this into draw section
@points = 2 if @points == nil
@val = 0 if @val == nil
Will update those radio selectors one day.....
Re: "Redrawing GUI" Open pages
Posted: Sat Jan 02, 2016 5:08 am
by RJHollins
Ah ... Thanks Billv ...
That fixed it.
.... and THANKS for sharing experience and examples to the FS community.

Re: "Redrawing GUI" Open pages
Posted: Sat Jan 02, 2016 8:32 am
by kortezzzz
When I first loaded in the example schematic, got a RUBY error. Located in the 'radio buttons bill v concept' module.
Drop this into draw section
@points = 2 if @points == nil
@val = 0 if @val == nil
Oh, sorry, forgot to add "after load" and "after duplicate" modules into it's matching module. That's should work without billv's current fix as well. Uploaded the schematic.
@billv
I would like to try your fix but probably couldn't locate the "draw section", since I'm getting first start errors without
the "after" modules added. Can you please say on what line should we add your fix?
Re: "Redrawing GUI" Open pages
Posted: Sat Jan 02, 2016 10:47 am
by billv
kortezzzz wrote:forgot to add "after load" and "after duplicate
Yeh...i just noticed they were missing from the selector you posted first.
Definatly leave those in.
The "draw section" i refer to is the section of code that begins