Music 171 homework 3
This assignment is intended to give you practice with timing, counting,
and controlling line~ objects. In essence it is make a pair of chords that
fade in and out alternately (with two tones in common that play constantly.)
The two chords are (60, 63, 67, 71) and (60, 63, 65, 69) -- the two lowest
pitches should play constantly and the two other pairs should fade in and out
appropriately.
Your successful patch should sound like
this.
To make the patch:
- Make six oscillators, playing MIDI pitches 60, 63, 67, 71, 65, and 69.
(Use mtof to convert these to frequencies; this will require using one or more
lodabang objects).
- Make a counter that counts repeatedly to 4 (as in 0, 1, 2, 3, 0, 1, 2, 3,
...), one second per count.
- Using select, cause the (67, 71) pair of osccilators to fade in and out
on counts 0 and 1, and the (65, 69) pair to fade in and out on counts 2 and 3.
- Add the results and play out your speaker. Put a control in to control
the output amplitude to turn the sound on and off.
- Using sends and receives and reasonable names for things, make a button
("bang") that starts the counter at zero, and another to stop it and to mute the
two line~ controls (so that only the (50, 63) pair is heard. Label the two
buttons with "start" and "stop" comments.
back to music 171 main page