I made it so that every time a beat is played a note is played.