Forums > MaxMSP

slider with two functions

September 6, 2010 | 7:49 am

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


September 6, 2010 | 10:52 am

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


September 6, 2010 | 2:51 pm

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

September 6, 2010 | 4:18 pm

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

– Pasted Max Patch, click to expand. –

September 6, 2010 | 4:28 pm

ps

[attachment=140927,1086]

Attachments:
  1. doolSlider.jpg

September 6, 2010 | 7:14 pm

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


September 6, 2010 | 7:23 pm

[lcd] is your friend.


September 7, 2010 | 1:24 pm

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


Viewing 8 posts - 1 through 8 (of 8 total)