Return to Homepage

Music 220B: HW3

Sebastian James

Generative Drum Machine + Soundscape

Prologue


Main Act

My drum machine controls certain variables for 3 different instrument classes. These instruments are continuously playing in a semi-random loop. Using the number keys I can select an instrument channel. From there, I can use the keys u and d to increase and decrease the gain, respectively (the default is 0). The spacebar will lock a gain at a ceratin level. The key p exits an instrument channel and returns to the main selector. Each instrument is repeating a semi-random loop where the pitches and timing are randomized within certain parameters.

As with most projects including ChucK, the timeline resembled that of an ADSR envelope. There is a sharp onset which involves setting up the project, getting keyboard input to work, and designing classes. There there is a slight decay. This occurs when you step away from the project for a bit and become disenheartened. Finally, the sustain and release are the most enjoyable parts. This is when I have the freedom to explore my creativity unhindered by technical faults. I would love to continue to work on this project for the final assignment for Music 220B, and possibly even further in the future.

Controls:

Source

Code Archive