If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
"Redrawing GUI" Open pages
8 posts
• Page 1 of 1
"Redrawing GUI" Open pages
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!!!
- Wassaka
- Posts: 85
- Joined: Wed Dec 30, 2015 3:41 am
Re: "Redrawing GUI" Open pages
Hi and welcome.
Here is a very basic example using the radio buttons method. Hope it help.
Here is a very basic example using the radio buttons method. Hope it help.
- Attachments
-
- ( Basic filter rack example).fsm
- (215 KiB) Downloaded 865 times
-
kortezzzz - Posts: 763
- Joined: Tue Mar 19, 2013 4:21 pm
Re: "Redrawing GUI" Open pages
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"
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"
- RJHollins
- Posts: 1571
- Joined: Thu Mar 08, 2012 7:58 pm
Re: "Redrawing GUI" Open pages
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!!
- Wassaka
- Posts: 85
- Joined: Wed Dec 30, 2015 3:41 am
Re: "Redrawing GUI" Open pages
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.....
BV MUSIC SYDNEY AUSTRALIA..Songwriting and Software development
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
- billv
- Posts: 1157
- Joined: Tue Aug 31, 2010 3:34 pm
- Location: Australia
Re: "Redrawing GUI" Open pages
Ah ... Thanks Billv ...
That fixed it.
.... and THANKS for sharing experience and examples to the FS community.
That fixed it.
.... and THANKS for sharing experience and examples to the FS community.
- RJHollins
- Posts: 1571
- Joined: Thu Mar 08, 2012 7:58 pm
Re: "Redrawing GUI" Open pages
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?
- Attachments
-
- ( Basic filter rack example)fix.fsm
- (215.02 KiB) Downloaded 796 times
-
kortezzzz - Posts: 763
- Joined: Tue Mar 19, 2013 4:21 pm
Re: "Redrawing GUI" Open pages
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
- Code: Select all
def draw v
'put code in here'
end
BV MUSIC SYDNEY AUSTRALIA..Songwriting and Software development
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
- billv
- Posts: 1157
- Joined: Tue Aug 31, 2010 3:34 pm
- Location: Australia
8 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 44 guests