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
Ruby Double Slider
17 posts
• Page 2 of 2 • 1, 2
Re: Ruby Double Slider
Apologies for being nosey - I'm curious about PM problems at the moment!
The load-time error is because of @vw. The value is set in the 'draw' method, so if 'event' gets called before there has been a re-draw, it hasn't been defined yet. It'll make 'event' bomb out so that the following lines don't run.
You can get the view size using the 'getViewSize' method, though - that works even if you're not inside 'draw'. It gives you an array [width, height], so...
The load-time error is because of @vw. The value is set in the 'draw' method, so if 'event' gets called before there has been a re-draw, it hasn't been defined yet. It'll make 'event' bomb out so that the following lines don't run.
You can get the view size using the 'getViewSize' method, though - that works even if you're not inside 'draw'. It gives you an array [width, height], so...
- Code: Select all
@vw = getViewSize[0]
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
Don't stagnate, mutate to create!
-
trogluddite - Posts: 1730
- Joined: Fri Oct 22, 2010 12:46 am
- Location: Yorkshire, UK
Re: Ruby Double Slider
Thanka guys...look forward to getting home..
Please check my Pm bug post in examples if have time..
Please check my Pm bug post in examples if have time..
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: Ruby Double Slider
Nubeat7 wrote:i investigated some time into your doubleslider
Thanks heaps for that...
Nubeat7 wrote:i had found some way to make it work with the stock PM
No, sorry mate...but it's still buggy and not retaining saved values if the user changes
the value.
Nubeat7 wrote: hope you also like it
havn't looked yet, no doubt I will learn something from it...
Nubeat7 wrote:and don't feel highjacked!
don't be silly...you have an open door on my stuff(i'm a hobbyist).. go nuts..
And I did ask for help anyway..all good.
Nubeat7 wrote:anyway if you load the schematic it seems that there is still some issue on loading
been chasing that nil error for long time..(i think trogs got it right..will check later)
Nubeat7 wrote: save and load state methodes and init methodes
yeh...did nothing for me too...
trogluddite wrote:Apologies for being nosey
...open door policy for you too old man...
trogluddite wrote:error is because of @vw. The value is set in the 'draw' method
i sensed there was a issue there...hence my cowboy attempt in init section(@vw = @vw)
Will try it soon..Thanks again.
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: Ruby Double Slider
trogluddite wrote:the 'getViewSize' method,
This is working great... all 'candy' is gone at startup or after dup..
re-adjusting all my work...thanks Trog
Nubeat7 wrote: its basically the same i just did a couple of methodes
this is awsome nubeat7..the way you guys make up your own def's, something
I havn't gone into yet. i can see its a better way to break everything down
and 'section' everything out( appeals to my chef brain[think ingredients]),
so eventually hope to write that way...but still on the basics ATM....
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: Ruby Double Slider
Original version fixed..
Is now working with the FS preset manager.
Does not require afterchange trigger..
getview size fix installed
All extra struff in preset module removed(now uses simple one from trog's knob)
Save/loadstate was included into the "last Switch"' ..
Gui fix...
EDIT:
Minor fix..re-uploaded fsm..
Is now working with the FS preset manager.
Does not require afterchange trigger..
getview size fix installed
All extra struff in preset module removed(now uses simple one from trog's knob)
Save/loadstate was included into the "last Switch"' ..
Gui fix...
EDIT:
Minor fix..re-uploaded fsm..
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: Ruby Double Slider
Still not there yet....too many triggers coming out...
Will get it right eventually. ..
Will get it right eventually. ..
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: Ruby Double Slider
Removed some code causing extra triggers
Last switching removed.
Preset inputs and external inputs were separated and def event recoded..
Clamp from view draw limiters were removed, so that output values are correct
There is also an option available via properties panel called "preset preference"
You can choose weather the slider uses it's own presets, or uses the external inputs instead..
Last switching removed.
Preset inputs and external inputs were separated and def event recoded..
Clamp from view draw limiters were removed, so that output values are correct
There is also an option available via properties panel called "preset preference"
You can choose weather the slider uses it's own presets, or uses the external inputs instead..
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
17 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 58 guests