slider with two functions

jazzisfaction's icon

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

brendan mccloskey's icon

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

jazzisfaction's icon

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.....

1085.Double_Multislider.jpg
jpg
brendan mccloskey's icon

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

Max Patch
Copy patch and select New From Clipboard in Max.

brendan mccloskey's icon

ps

1086.doolSlider.jpg
jpg
Nikolas K's icon

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

Roman Thilenius's icon

[lcd] is your friend.

jazzisfaction's icon

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

1091.double_layer_multislider.maxpat.zip
zip