How to make two dials behave as inpoint/outpoint min/max

Troy Gustafson's icon

I'd like to have two dials. One dial sets the inpoint of a sound and the second dial sets the outpoint. The problem is I need the inpoint dial to never be greater than the outpoint dial. How can I do this ? I'm currently using live.dials but I could use normal dials if required.

Bill 2's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Something along these lines?

Troy Gustafson's icon

That helped a ton ! Thanks.

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

This is what I ended up with since I needed floats

Troy Gustafson's icon

Actually, the resolution of the normal dial is pretty low. Any chance you could figure out a way to do it with live.dial ? (they don't support max/min attributes)

Bill 2's icon

You're welcome, Troy.

Just glad I could actually help someone for once, instead of only using the forum to *get* help (like CK's currently helping me in another thread). Merry Christmas!

Troy Gustafson's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I figured it out !

Bill 2's icon

Ha! You're way too fast for me. Trying to write a response and you've already figured it out. :-)

Troy Gustafson's icon

I just wish the if object would support the @triggers attribute so I didn't have to use two separate if objects.

Bill 2's icon

Just encapsulate 'em and they'll look like one object. ;-)

LSka's icon
Max Patch
Copy patch and select New From Clipboard in Max.

[clip] is your friend

Peter McCulloch's icon

@Troy: check out bondo; it will probably solve your triggers scenario.

Problems that can be solved with an if-then can usually be solved with either gate or switch. This can be helpful because it gets you used to doing this at signal rate (selector~ and gate~) where there is no if-then type object. (Though it's doable in gen~)

Christopher Dobrian's icon
Max Patch
Copy patch and select New From Clipboard in Max.

FWIW, I'd probably do it this way.

Simon Rivet's icon

Hi guys, these tips have really helped me with my patch. However, for some reason when I control my dials with an encoder, the clipping doesn't work and I can go over the min/max thresholds set by each dial.

Any idea why?

Here's the patch:

minmax.maxpat
Max Patch