Control assignment for the tutorial Data Viewing
Here is a slightly more complex assignment following a few simple MIDI tutorials. The object multislider is central in this assignment. We shall also look at the function Watchpoints.
Go through the tutorial Data Viewing and the corresponding tutorial patch. If any of the objects seem unclear to you, go back and repeat until you have a good understanding. If the function of an object is unclear, read the reference or help file for the object.
Work through the different parts of the patch and ascertain that you have a good grasp of the functionality. When ready, proceed to the assignment.
26.1 Create a patch that repeats a series of notes which are stored in a multislider object. This is the same object that is shown in the first part of the example patch. In order to make it more flexible, add a number object and use it to select the duration of the loop. This number object should also choose the number of notes contained in the multislider object, as well as how many notes that is displayed in the multislider object. To solve that you can look at the objects counter, uzi, multislider and peak. Also take a look at the size message for the multislider object.
26.2 Make a procedure that follows the movement of the mouse across the screen, and that in addition, by measuring the screen size, is guaranteed to function on all computers.
When the mouse moves horizontally from left to right, you should be changing the span of the MIDI notes up to two octaves.
When the mouse moves vertically on the screen, you should be changing the velocity of the MIDI notes from 0 to maximum value.
Use a combination of the objects change, button and flush in order to automatically turn off notes that “hang” when you are moving the mouse. You must apply these changes in velocity and the span of the MIDI note numbers to the results of what you did in 26.1, the first part of this assignment.
Object introduced in this tutorial: