Question On Slider control.

Hints, tips and discussion about graphics and user interface elements

Moderators: electrogear, exonerate

Question On Slider control.

Postby attic on Sat Jan 14, 2012 10:07 am

Thanks for taking a look. This is probably really simple to do but I would like to know the correct way of doing it. On the attached .osm I wanted those up and down arrow buttons to increment the sliders visual Position and output by increments of one. Also considering the slider uses a float what is the best way to lock the increment's by 1? Could someone show me the right way to do this?
Attachments
SliderQuestion.osm
I'm sure it should be obvious but what is the best way to do this?
(11.71 KiB) Downloaded 100 times
A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.

North Bay Music Attic
User avatar
attic
essemilian
 
Posts: 472
Joined: Sat Feb 13, 2010 12:40 pm
Location: San Francisco California

Re: Question On Slider control.

Postby trogluddite on Sat Jan 14, 2012 10:43 am

Hi there,
I think this is now doing what you want...
SliderQuestion-1 Button Fix.osm
(12 KiB) Downloaded 142 times

Not much to change...
- I connected up the 'External Set' connection that you were working on (Preset section) - so that it feeds to the input side of the VST Preset prim'. Note that when it comes out of the counter, it is adjusted by a copy of the 'To 0-1' module, to make sure that the preset value is in range for the host. The value then gets sent to the GUI in the same way that a change of preset would do it, using the existing wireless links.
- There's a new 'AutoRec Buttons' transmitter from the buttons to the VST Preset - so that when the button is pressed, the counter values will record the changes as automation, the same way that mousing the slider would. Watch the link order here - it's important that the boolean goes true before the counter is triggered; otherwise the counter changes will be missed by the auto recorder.

NB) Not tested with a VST host etc. - so have a play and let me know if I have got it right!
Feel free to use any schematics and algorithms I post on the forum in your own designs - a credit is appreciated (but not a requirement).
Don't stagnate, mutate to create. Without randomness and serendipity the earth would be just another barren rock.
User avatar
trogluddite
smychopath
 
Posts: 3024
Joined: Mon Oct 20, 2008 3:52 pm
Location: Yorkshire, UK

Re: Question On Slider control.

Postby attic on Sat Jan 14, 2012 12:59 pm

Well that was elegant and simple, I definitely need some sleep. That was making my eyes water trying to figure how it should happen, its always those small things late at night that stump me. Thank You.
A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.

North Bay Music Attic
User avatar
attic
essemilian
 
Posts: 472
Joined: Sat Feb 13, 2010 12:40 pm
Location: San Francisco California

Re: Question On Slider control.

Postby tester on Fri Jan 27, 2012 10:45 am

Nice slider control.

Would be possible to add a mouse related option to these arrows?
On "click-and-hold" on arrow - one counter change, pause, continuous (stepped) change at some speed.
Need to take a break? Looking for relaxing sounds? I have something right for you.
(by purchasing, you are also supporting further development of related projects).
Thank you for your contribution.
tester
smanatic
 
Posts: 688
Joined: Wed Jan 18, 2012 9:52 pm
Location: Poland, internet

Re: Question On Slider control.

Postby attic on Thu Feb 02, 2012 4:40 am

@Tester I think all of those things are very doable, I don't have a ton of time right now but I will try to put something together for you. Feel free to use any of it you want. ;) Do me one favor, give me one more explanation of what you need so I get it right.
A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.

North Bay Music Attic
User avatar
attic
essemilian
 
Posts: 472
Joined: Sat Feb 13, 2010 12:40 pm
Location: San Francisco California

Re: Question On Slider control.

Postby tester on Thu Feb 02, 2012 4:12 pm

Hey ;-)

A very useful thing for arrows would be this. When you click on arrow and hold mouse button: one step change, then small pause, and then multistep auto-change. Maybe after another few seconds - faster progression or bigger steps.

It's a gui optimization related supportive mechanism, where knobs or sliders cover higher range of values, and arrows allow to navigate in microtuning range, without clicking too much.
Need to take a break? Looking for relaxing sounds? I have something right for you.
(by purchasing, you are also supporting further development of related projects).
Thank you for your contribution.
tester
smanatic
 
Posts: 688
Joined: Wed Jan 18, 2012 9:52 pm
Location: Poland, internet

Re: Question On Slider control.

Postby pall on Thu Feb 02, 2012 5:24 pm

Hi!
The concept is here;
viewtopic.php?t=10037&p=77257#p77257
download the Digital Display with Buttons.osm
Should be adjusted only to slider and of course values.

Cheers!
pall
essemilian
 
Posts: 295
Joined: Thu Dec 09, 2010 12:27 pm
Location: Transilvania

Re: Question On Slider control.

Postby tester on Thu Feb 02, 2012 5:34 pm

Thanks, exactly like that!
Need to take a break? Looking for relaxing sounds? I have something right for you.
(by purchasing, you are also supporting further development of related projects).
Thank you for your contribution.
tester
smanatic
 
Posts: 688
Joined: Wed Jan 18, 2012 9:52 pm
Location: Poland, internet

Re: Question On Slider control.

Postby attic on Fri Feb 03, 2012 1:07 am

Well here is a first try, it works but in the up arrow direction it is incrementing more than one value on a single click. The down direction works. Maybe somebody could look to see where I have gone wrong. @tester In any case this may get you closer to where you want to be.
Attachments
Slder.osm
Works but the increment up is jumping more then one digit.
(12.75 KiB) Downloaded 102 times
A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.

North Bay Music Attic
User avatar
attic
essemilian
 
Posts: 472
Joined: Sat Feb 13, 2010 12:40 pm
Location: San Francisco California


Return to Graphics

Who is online

Users browsing this forum: No registered users and 0 guests