Using the Kslider object as a range definer

Jun 21, 2013 at 10:54am

Using the Kslider object as a range definer

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

#253619
Jun 21, 2013 at 11:11am

This is quick and dirty:

<code>

– Pasted Max Patch, click to expand. –

</code>

This is a little more involved:
<code>

– Pasted Max Patch, click to expand. –

</code>

#253620
Jun 21, 2013 at 1:33pm

Try rslider.

#253648
Jun 21, 2013 at 1:45pm

This is sort of crazy complicated for this, but:

<code>

– Pasted Max Patch, click to expand. –

</code>

#253650
Jun 21, 2013 at 3:19pm

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

Best

Mike

#253666
Jun 22, 2013 at 1:40am

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

#253700

You must be logged in to reply to this topic.