0. Read the above tutorials -
I suggest you access the tutorials from within Max by going to
Help -> Refernce and clicking on the "Home" icon on the top left.
1. make a patch that prints
"Hello world" every second.
You will use
toggle, metro, message, and a
print object. Create those objects.
Connect the message object with the word "Hello world" and the print object so that when you click the message object, you see the
message "Hello World" on the console.
Then, follow the following instructions/hints.
- The toggle switch will turn on and off the metro object.
- The metro object will generate a bang every 1 sec (1000 ms).
- The message box contains the message "Hello world". (Do not name the print object Hello World)
- The print object receives the message from the "message box"
2. modify the patch so that you can control the rate in which
the metro object generates a bang using a
number box. To achieve this, create a number box and connect the outlet of the number
box to the right inlet of the metro object.
(Make sure you understand
the difference between the left inlet and the right inlet).
3 modify the patch and use a "
counter" object so that
it prints out the value of the counter together with the message "Hello World".
"Hello world 1", "Hello world 2", "Hello world 3", ... etc.
First, change the text inside the message box so it says "Hello World $1".
If you don't know what
a counter object is, create the counter object, right click and open the help file. Do not name the print object
"Hello World". Instead make sure the message box has the message "Hello World $1". (hint: "my dog has $1 fleas" or pack object)
Optional 4. Create a separate patch so that it prints "Hello World" and "Good
night" in alternate order with equal spacing in time (eg. every 1
sec)?
(hint: use gswitch)
5. Submit patch before end of next class [
here]