In this recipe, we will learn how to use the start_tone and stop_tone calls to play tones in the background, and control other components on the board during the playback of the sound. The technique used in this recipe will essentially allow you to do more than one thing at an item when you play sounds.
One example of when you might want to implement this in a project is when you want to play an alarm sound and flash the lights at the same time.