slider with two functions

Sep 6, 2010 at 7:49am

slider with two functions

Hey,
I don’t know if you know the Massive Groovebox within Reaktor.
The cool thing: you have multisliders with two functions:
- if you move the slider up and down you can change the gain of for example a bass drum
- if you click on the slider you can change the number of bass drums per beat

Is it possible to create a multislider with these two functions (dragging AND clicking function) within Max/MSP?
Or is there any external doing that?

Thanx for helping
Cheers
Peer

#52181
Sep 6, 2010 at 10:52am

I’m just guessing, but if you want two discrete functions from a slider as you describe, then use [mousestate] to get a 1 and a 0 from your mouse, use this value to open and close [gate 2] outlets:

clicking on the slider will produce a rapid 1 to 0; scrolling on the slider will produce a continuous 1

send the slider data through the 2 gate outlets – one to a number box, the other through as series of [split] and [onebang] objects to get button/switch functionality from the slider

I’m not with Max at the minute so I can’t send you a patch, but i think this should work….?
Brendan

#187504
Sep 6, 2010 at 2:51pm

Hey Brendan,
not exactly what I'm looking for. I'm more looking for something like in the attached file.
It's a patcher of Roald Baudoux. I know he did it with Javascript. I'm wondering if something like this is possible without Javascript.
Of course I can put 2 multisliders on each other and work with transparancy but I don't know how to let them work simultaniously. When I'm trying it it's or the first slider which works or the second (if they are in a double layer) but never both simultaniously…..

[attachment=140920,1085]

Attachments:
  1. Double_Multislider.jpg
#187505
Sep 6, 2010 at 4:18pm

You sure this won’t work? Not very elegant, pretty or JS-ish, but it works….

– Pasted Max Patch, click to expand. –
#187506
Sep 6, 2010 at 4:28pm

ps

[attachment=140927,1086]

Attachments:
  1. doolSlider.jpg
#187507
Sep 6, 2010 at 7:14pm

This way, when you click on the slider, not drag, the value changes.. you could change the “mousing_mode” to “relative” on the slider to avoid that!
Nick

#187508
Sep 6, 2010 at 7:23pm

[lcd] is your friend.

#187509
Sep 7, 2010 at 1:24pm

Found what I was looking for.
Here is my patcher.
The ‘mousestate’ thing helped a lot, though it still caused some brain gym to figure out the right thing.

Enjoy ;-)

Greetz
Peer

#187510

You must be logged in to reply to this topic.