Using the Kslider object as a range definer

JauntyRhodes's icon

Hi there,

I'm building a simple random note generator - this will be my first Max-MSP patch 'proper' - I'm definitely at the 'still learning' stage.

I would like to, if possible, use the kslider (or similar object) as a graphical representation of the possible note range to be generated. At the moment, I've got two ksliders, one indicating the highest possible note, and a separate one indicating the lowest possible note.

This is ok, but not as elegant as I would like. Is there a way/object/clever trick to achieve what I'm trying to do? Ideally, all the notes selected would change colour, indicating that they were within the active range of the note generator.

Thanks in anticipation of advice and tips. Please do say if I've not been clear enough, I've uploaded the patch (It's M4L) as well. It's my first one, so I'm still looking for tips. I've I've done something dumb, please do feel free to let me know.

Thanks

Mike

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

This is quick and dirty:

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

This is a little more involved:

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

This is sort of crazy complicated for this, but:

JauntyRhodes's icon

Thanks for these suggestions guys, I'll have a look tomorrow.

Best

Mike

JauntyRhodes's icon

Wow.

I'm always amazed by both the speed and quality of the help you get on these forums.

Thanks, especially MZed and Chris Muir - I'll work back through how you've both approached this problem - both of your solutions are slightly different, but all work equally well. I'll learn quite a bit from reverse engineering both your patches and thought processes.

Much obliged. Thanks again

Mike