Using the Kslider object as a range definer

    Jun 21 2013 | 5:54 pm
    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.

    • Jun 21 2013 | 6:11 pm
      This is quick and dirty:
      This is a little more involved:
    • Jun 21 2013 | 8:33 pm
      Try rslider.
    • Jun 21 2013 | 8:45 pm
      This is sort of crazy complicated for this, but:
    • Jun 21 2013 | 10:19 pm
      Thanks for these suggestions guys, I'll have a look tomorrow.
    • Jun 22 2013 | 8:40 am
      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