Music 171 homework 1
This assignment is to make a Pd patch to play a simple melody that includes
sliding pitches and continuously changing amplitudes. The melody is borrowed
from the marching chant of the wicked witch's castle guards:
time frequency amplitude suggested button number
0 440 on 1
0.5 slide to 660 2
1 slide to 440 3
1.5 off 4
2 slide to 660 on 5
3 slide to 440 3
3.5 off 4
Your successful patch should sound like
this. It should not sound like
this .
To make the patch (each of the following steps is worth 2 points for a total
of 10):
- make an oscillator with a line~ object to control its amplitude
- set up an additional line~ object to control the oscillator's amplitude
- make message boxes capable of ramping the amplitude control on and off.
"On" should correspond to an amplitude of about 0.1 to avoid speaker or ear damage.
- make message boxes to cause the frequency to jump to 440, and to slide to
each of 660 and 440
- arrange 5 buttons to set the message boxes off in the correct combination.
As seen in the last column of the list of changes above, five buttons are enough
since two of them get re-used. Label the buttons with comments (perhaps just
the numbers 1-5 as above) so we can figure out how to play the patch.
back to music 171 main page