Using a second thread

When the button is pushed, 4 notes will be played in a loop for
3 seconds. The music is being played on the secondary thread.