Download Tutorials and Topics

Transcript
Advanced scripting
Tutorial 49
appropriate number of inlets for the uslider objects and makes the appropriate connections
between them. The funnel object is then connected to our js object, allowing the values generated
by the sliders to be used by our JavaScript code as well.
•
As you create sliders, note that the ctlin objects are automatically numbered to listen to incrementing MIDI controller numbers. As a result, a MIDI control surface that sends MIDI continuous control values on multiple controller numbers will send values to multiple uslider
objects. Also, note than when you decrement the number of sliders, the excess objects will disappear (actually, everything disappears and is recreated again). If you set the number of sliders to 0, all the script-created objects (including the funnel) will be deleted from the patch.
•
Set the number of sliders to something modest, such as 5. Change the values in the uslider
objects, either by clicking on them or by using a MIDI controller input. Turn on the metro
object by clicking the toggle attached to it. The values in the uslider objects should come out of
the js object in turn, creating a sequence of MIDI notes.The multislider object to the right of
the patch will give you a running display of the current note out of our sequencer, set at its
appropriate position in the sequence.
261