MultiSlider has all the same attributes as the Slider widget. There one additional attribute, numberOfSliders, which specifies how many Sliders are in the MultiSlider. The default value for this is 4. The available width and height for the MultiSlider is divided amongst the individual sliders it is comprised of. For example, if a MultiSlider has a width of .8 and contains four sliders, each slider will be .2 wide. (times the available screen width)

When outputting OSC each individual slider adds its own number to the MultiSlider OSC address when it outputs a value. For example, if the MultiSlider ¬†address is “/multi” then the address for slider 3 in the MultiSlider would be ¬†“/multi/3”. For MIDI, the base note or control change number is augmented by the slider number. For example, if you had a MultiSlider with 16 sliders and specified the MIDI control change number to be 10, the first slider would output cc #10, the second would output cc #11 and the 16th would output cc #26.

A MultiSlider passes the isVertical attribute to its children. NOTE: By default the requiresTouchDown property of the MultiSlider object is FALSE.

Additional JSON Attributes

  • numberOfSliders – the number of sliders in the widget. The default value is 4.


  • children – a one dimensional array that holds all the child slider widgets. This property was renamed from sliders in v1.1


  • setValue(sliderNumber, value) – Assign one child slider a new value. This is the equivalent of multiSlider.children[sliderNumber].setValue(value).
  • setSequentialValues(val1, val2, val3…) – Assigns multiple child widgets the values passed to the method sequentially.

Simple MultiSlider JSON

     "name" : "myMultiSlider",
     "type" : "MultiSlider",
     "x" : 0, "y" : 0,
     "width" : .99, "height" : .5,
     "numberOfSliders" : 10,
     "isVertical" : true,

This creates a set of 10 sliders. A single touch can be swiped across all of them to set their values; starting the touch over a particular slider is not required. The sliders default to to outputting CC 0 – 10 on channel 1 or to destination “/myMultiSlider/x” where x is the slider number if an OSC destination is selected.

This work is licensed under GPL - 2009 | Powered by Wordpress using a heavily modified version of the theme aav1