slider

Ganging sliders

This example shows how you can create a gangable multislider-like object. Although it is a common idea used in, for example, digital mixing consoles, there's no single object in Max yet to achieve this task of "ganging" multiple faders.

Saving slider values

There are several ways to initialize UI objects, but the data is not stored with the object itself (except for the Live objects). Triggering an initializing message to the object with loadbang is one way. See also loadmess, patcherargs, and pattr.

Inactivity Ramp

This example shows how to get the output of a slider object to slowly ramp back down to 0 after 10 seconds of inactivity. While in this example we used the slider object, the same result will hold with other objects.

Change size of a UI object

This example shows how you can change the length of a ui object (a slider object in this case) with the patching_rect message. You can use a scale object to get the range of width values you want, and control it with a single float, and then use the ‘$1’ argument in a message box to insert the width value into the patching_rect message.

Grand Master Fader

Given a hypothetical grand master fader that can be controller with the continuous controller 13 (assuming for the sake of this example that your device is also set to receive on MIDI channel 1), you can send the message 176 13 127 to a midiout object to turn the fader up to full. Another way to do this would be to use a ctlout object, send the number 1 in the right inlet, the number 13 in the middle inlet, and then send 127 in the left inlet.