End of song detection