Forums > MaxMSP

Using the Kslider object as a range definer

June 21, 2013 | 10:54 am

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


June 21, 2013 | 11:11 am

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>


June 21, 2013 | 1:33 pm

Try rslider.


June 21, 2013 | 1:45 pm

This is sort of crazy complicated for this, but:

<code>

– Pasted Max Patch, click to expand. –

</code>


June 21, 2013 | 3:19 pm

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

Best

Mike


June 22, 2013 | 1:40 am

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


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