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 1 of 2 • 1, 2
Ruby Double Slider
A ruby double slider.
In this fsm it uses the FS Preset Manager
Slider works ok but preset solution still buggy..
EDIT:
UPDATED VERSION FURTHER IN ...
http://www.dsprobotics.com/support/viewtopic.php?f=3&t=2668&start=10#p13682
In this fsm it uses the FS Preset Manager
Slider works ok but preset solution still buggy..
EDIT:
UPDATED VERSION FURTHER IN ...
http://www.dsprobotics.com/support/viewtopic.php?f=3&t=2668&start=10#p13682
Last edited by billv on Sun Aug 03, 2014 1:34 pm, edited 4 times in total.
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
Very interesting Billv.
I also noticed the knob design .... bitmap and ruby ...
hmmm ... somehow you have a design that can be vari-stepped ... using the same bitmap.
I would like to understand how this was done. I've been working on a vector-based design to do this.
Maybe at some point you find time to share some background info on the design technique. I could sure use some more learning on this [and all things GUI].
Thanks !!!
look to test this example schematic
I also noticed the knob design .... bitmap and ruby ...
hmmm ... somehow you have a design that can be vari-stepped ... using the same bitmap.
I would like to understand how this was done. I've been working on a vector-based design to do this.
Maybe at some point you find time to share some background info on the design technique. I could sure use some more learning on this [and all things GUI].
Thanks !!!
look to test this example schematic
- RJHollins
- Posts: 1571
- Joined: Thu Mar 08, 2012 7:58 pm
Re: Ruby Double Slider
RJHollins wrote:I also noticed the knob design .... bitmap and ruby ...
the bitmap is jay and the Knob is Trog...
http://www.dsprobotics.com/support/viewtopic.php?f=3&t=1692#p7804
RJHollins wrote:I would like to understand how this was done.
No idea..pass...see Trog...
RJHollins wrote:look to test this example schematic
the preset setup is still buggy...
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
This uses my preset manager...same slider...seems to be faultless.
no traces of bug that appears in first fsm using the FS PM..
Dosn't need that extra trigger from pm either...
i think I'm gonna stop building to FS PM spec altogether.
So the slider works...but you'll have to find your own preset solution.
no traces of bug that appears in first fsm using the FS PM..
Dosn't need that extra trigger from pm either...
i think I'm gonna stop building to FS PM spec altogether.
So the slider works...but you'll have to find your own preset solution.
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
RJHollins wrote:hmmm ... somehow you have a design that can be vari-stepped ... using the same bitmap.
I would like to understand how this was done.
Cheating!
IIRC, the knob always stores the current, unstepped float value internally. The stepped output and the frame number of the bitmap are rounded independently of each other.
If you have sufficient animation frames, the pointer will look about right for most small step counts - anywhere within a few degrees will be close enough for the typical size of a control. Or you could load an animation that has the same number of frames as you have steps (can save memory if the count is small).
Jay's gorgeousl graphic has 128 frames, so is exceptionally smooth.
With the stock knob you have to be careful with that, as more frame transitions = more redraws = bigger CPU load when dragging the control. But the Ruby code in this one uses an internal timer which restricts the redraw rate to prevent that problem. The output value remains unrestricted, so that the actual value can move more smoothly.
If you tried, say, having three steps, but used a four frame animation, you probably wouldn't get what you expected - a frame would be skipped somewhere in the middle!
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
about the pm issue, i had some similar issues with my xy pad, i think the problem is when you get more then one preset parameters from different presetmodules into one ruby module, further in your schematic it is updating double time - because you also get a trigger from the knobs...
i solved the PM issue in my xy pad with using a preset parameter array with 2 values, you can output it like this
maybe i would go another way here and update the knobs from the doubleslider module to have them updated and also set them on presetchange, this are 2 pm values less and you avoid doubletriggering on presetchange
i solved the PM issue in my xy pad with using a preset parameter array with 2 values, you can output it like this
- Code: Select all
output 'presetvalues', [@rvalue,@lvalue]
maybe i would go another way here and update the knobs from the doubleslider module to have them updated and also set them on presetchange, this are 2 pm values less and you avoid doubletriggering on presetchange
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
Re: Ruby Double Slider
Nubeat7 wrote:using a preset parameter array with 2 values
i thought about that at one stage, but went the other way.
i will try this, and give the FS PM one more go..after all,
i shouldn't have to need 'about close', 'afterload' and 'trigger delay's' to make this happen.
Nubeat7 wrote:i think the problem is when you get more then one preset parameters from different presetmodules into one ruby module
i thought that too but changed my thinking, cause there's no bug with my PM.
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
here is the link for the xy pad, the last version uses preset parameter array..
viewtopic.php?f=3&t=1121&start=20
viewtopic.php?f=3&t=1121&start=20
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
Re: Ruby Double Slider
I did find one piece of bad code, where the interact is turned on during
external input. Seem to make no difference though.
Most attempts today went via array preset method...none worked
I'm starting to be convinced its just bad coding/design somewhere.
I just saw your post now nubeat7, and downloaded.
But I noticed in yours there's one slight difference.
Your keeping the array intact...today i was breaking array down into the two inputs.
I tried it for a while...still no good here...same buggy result.....
At a loss ATM...
I got a module with correct inputs/outputs.....and still can't make it work with FS PM.
external input. Seem to make no difference though.
Most attempts today went via array preset method...none worked
I'm starting to be convinced its just bad coding/design somewhere.
I just saw your post now nubeat7, and downloaded.
But I noticed in yours there's one slight difference.
Your keeping the array intact...today i was breaking array down into the two inputs.
I tried it for a while...still no good here...same buggy result.....
At a loss ATM...
I got a module with correct inputs/outputs.....and still can't make it work with FS PM.
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
i investigated some time into your doubleslider, to find a solution which also includes the external setting with the knobs, which btw complicated the things, it seems i had found some way to make it work with the stock PM,
finally i also overworked some parts of the code, which i wanted to avoid to keep it as original as possible, but i could't resist it was too interesting for me, its basically the same i just did a couple of methodes to avoid repeting the same code a few times and simplyfied some parts.. hope you also like it, and don't feel highjacked!
anyway if you load the schematic it seems that there is still some issue on loading, for a short time it shows a ruby error which i think is gone after the pm parameters are loaded ( to better see this save the project when you are inside the ruby module and reload it), the error is happening in the event methode (looks like it asks for the Preset input array which is nil) which i don't completely understand because there should only happen things when a trigger comes from the PM parameter array which shouldn't be nil when it comes from the Pm!?
i couldn't find a solution for this, i also tried to use the save and load state methodes and init methodes butnothing changed this, some guru skills are needed here..
finally i also overworked some parts of the code, which i wanted to avoid to keep it as original as possible, but i could't resist it was too interesting for me, its basically the same i just did a couple of methodes to avoid repeting the same code a few times and simplyfied some parts.. hope you also like it, and don't feel highjacked!
anyway if you load the schematic it seems that there is still some issue on loading, for a short time it shows a ruby error which i think is gone after the pm parameters are loaded ( to better see this save the project when you are inside the ruby module and reload it), the error is happening in the event methode (looks like it asks for the Preset input array which is nil) which i don't completely understand because there should only happen things when a trigger comes from the PM parameter array which shouldn't be nil when it comes from the Pm!?
i couldn't find a solution for this, i also tried to use the save and load state methodes and init methodes butnothing changed this, some guru skills are needed here..
- Attachments
-
- Test_Ruby Double SliderNubeat7.fsm
- (282.2 KiB) Downloaded 1220 times
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
17 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 46 guests