Lab 5
Note: you must follow the design recipe in developing these functions, with the exception that functions that produce sounds may have comments indicating what they are to produce, rather than check-expects.
HtDP 2e, exercise 110
HtDP 2e, exercise 111
Develop the data definition for list-of-sounds, that contains a list of sounds. Create at least two examples.
Develop the function third-sound-only, that accepts a list of sounds of length three or more and returns the third sound in the list. Don’t worry about what happens if the list contains two or fewer elements.
HtDP 2e, exercise 115
HtDP 2e, exercise 119
Develop the function soundslen, that accepts a list of sounds and returns the total length (sum) of all the sounds in the list.
HtDP 2e, exercise 142 (both parts)
Develop the function tones-list, that accepts a list of frequencies and a volume in the range 0.0 to 1.0, and produces a list of sounds created with make-tone where each tone’s frequency comes from an element of the list, and all tones have the same volume, given by the original volume argument.
Develop rs-append/l, that accepts a list of sounds and returns a single sound containing all of the given sounds, appended together.