K509 — Computer Music Seminar: Assignment 5
If you don’t own Max, you can use it in room M373 in the Music Library (3rd-floor classroom). The room is available whenever the library is open and there is no class meeting. You can find a schedule of classes here. Look for “Music Library 373.”
You don’t have to turn in any modifications of the Quickstart patches, but you won’t learn the material as well if you don’t try to change them.
rtsetparams(44100, 2)
load("STRUM2")
totdur = 20
notedur = 1.0
incr = 0.15
for (start = 0; start < totdur; start += incr) {
notenum = irand(48, 96) // MIDI note number
pitch = pchmidi(notenum)
amp = irand(0, 10000)
pan = irand(0, 1)
STRUM2(start, notedur, amp, pitch, squish=2, dcy=1, pan)
}
Some considerations when translating...