""" Author: Peter Mawhorter Purpose: Recursion Lab with Drums Date: Fall 2020 Filename: recursiveDrums.py """ from synth import * # WRITE YOUR CODE HERE #--------------# # Testing code # #--------------# def test(): """ Testing code... """ print("Start of testing...") drumBeats(4, 0.2) #drumBeats(8, 0.1) #spacedBeats(4, 0.2) #decreasingBeats(8, 0.4) #squeezeBeats(0.2, 0.05) #layeredBeats(0.5, 4) # Prints out a description of each note printTrack() # Saves the track as "recursive.wav" saveTrack("recursive.wav") # Plays the track (only works if simpleaudio library is available) playTrack() print("...done testing.") if __name__ == "__main__": test()