This program demonstrates how to control volume, which is local to a sprite, with a global variable. As the program runs, the boy, who plays the saxophone, gets softer and softer. At the same time, the girl, who plays the flute, gets louder and louder. Note that there is only a single variable controlling the volume: "Global Volume". The code in the boy and girl sprites uses this single variable to increase volume in one case and decrease it in the other.
73.212 / 91.212 Sound Thinking Univ. of Massachusetts Lowell Spring 2015 Semester Profs. Jesse Heines, Dan Walzer, and Gena Greher