logic for playing song with pedal