Polyphonic Keyboard
This was a project in Max/MSP, an object-oriented programming language with an emphasis on audio output/development. Using only the raw code available to me via Max, I set out to emulate the functionality of a (musical) keyboard using the keys of a computer keyboard. The task was more challenging than I initially anticipated; I encountered a myriad of problems from outputting multiple sounds simultaneously, assigning the exact tonal frequency of major tones to each key, refining a natural-sounding ADSR (attack, decay, sustain, release) for each sound sample, and more. Eventually, after a lot of trial and error, it worked, and its success and the revelations that got me there encouraged me to make a subsequent version including semitones and other optional features.