The beginning of the sound code

This is what I got done so far and i'll finish it later on tonight