Play with the patches we have provided for making envelopes with line~ and adsr~ to get a feel for amplitude envelopes, and make yourself a collection of amplitude envelopes that you like. Name them envelope1, " envelope2", " etc."
Change simple-additive+env~ or simple-fm~+env~ so that instead of having one particular amplitude envelope built in, it can use any of the envelopes in envelopes.coll. You will need to add the *name* of the envelope to the input list that causes it to play a note. (Hint: inside simple-x+env~ you will need to unpack that name from the list, look it up in the collection, and apply the resulting envelope to the note.) You can test this part with "add+env-score" or "fm+env-score."
## Image
Look at the dynamic-slideshow patches. They create a ken-burnsy slideshow by moving the image (or movie). Edit simple-sequencer from yesterday to control a dynamic slideshow.
# Possible Extentions
Enrich the example with envelopes on parameters other than amplitude, such as:
- Make another collection of "spectral envelopes", i.e., the relative amplitudes of the partials. Modify the synthesizer so that it takes the name of one of these stored spectral envelopes instead of the 8 numbers themselves.
- Put in an envelope for modulation index.
Provide a sensible mechanism for controlling the overall amplitude of each note.
Use jit.xfade to smoothly transition between slides (you'll need two slideshows).
Compose your own composition(s) or shows using these patches.