The line~ object, with the tilda, works at the signal or audio rate, and
can be used to control the amplitude of an oscillator.
A related object is the vline~, which allows more than one ramp.
If you put a line~ object on a pd patch and
Ctrl-Click or Right-click on it you can read the help file and
how to use it.
Open pd and open a new file, save it is hw2.pd
Make your hw2.pd screen larger by dragging
on the bottom right of its window.
hw2 - Make 45 second composition.
Use examples fromK Kreidler chapters 2 and 3, the two Hernandez videos,
and elements from your first
pd patch if you like them. Generate a 45 second composition.
Add dynamics, and avoid generating popping sounds by using volume envelopes.