I was writing a short program using some code from the examples and realized that this program will only work if I sleep for a few seconds. It seems to be based on the length of the song or sample that I am playing. What if I was playing a 10 minute background song though? How do I know how long to sleep for? I’m pretty sure that I screwed up somewhere along the way.