Metronome and Beat Synthesizer
This code is pretty simple. Everything after the play_beat function is simply an example to show how the play_beat can be used.
I am a drummer and sometimes it's nice to have a metronome. Not only that, but I wanted to make a program that would help me understand complex time signatures. For example, merging multiple types of timings into one cohesive beat. It's something that can stretch the limits of your brain, so it helps a lot to have a program play those sounds and rhythms to you.
Thus, the point of this little program. All the examples are just different beats, ranging from simple to complex.
Feel free to tell me what you think, and if you make any fun beats with this, share them :)