Lab 7: Music Composition

This function creates multiple echoes of the sound by playing the sound and then playing it again in intervals over the original.

minus

echoedMinus

over

echoedOver

 

This function shifts the frequency of a sound by a given factor.

please

shiftedPlease2 (halves the frequency)

shiftedPlease05 (doubles the frequency)

 

This function allows a series of notes to be played at varying durations in order to make a song.

jBells (this should, in theory, sound something like Jingle Bells)