Thanks to @papipupepappa for the original project. A great idea! We discussed @papipupepappa's project in the studio Dads and Mums of Scratch ( https://scratch.mit.edu/studios/25643089/comments/#comments-87073290 ). This project is just to show how I would do it: - Broadcast from the stage to initialize (and wait), then to start (without waiting). - When receiving "start", each music sprite creates two clones, one for left sound, one for right sound, and then broadcasts to start playing sound. Then the non-clone enters a forever loop, which moves the sprite back and forth, while saving its position in a global list (Pan). - The clones loop to set the volume based on the non-clone's position, while forever playing their sound. The curve for each volume setting and its displacement could certainly be tuned, but I think it works to illustrate the idea.
@papipupepappa's original instructions: ✸✸✸ Work in Progress! ✸✸✸ I am having some trouble, so I have shared this before it is finished so that I can get some help. For some reason, Avery and the Music Truck stops for a while in the middle. Also, the time interval is supposed to be a random number between 1 and 10 seconds, but more often than not, the sprites seem synchronized, especially Avery and the Music Truck. ✸✸✸ What Is This? ✸✸✸ This is a demonstration of panning stereo sound back and forth. Each sound is split into two sound files: one only uses the left speaker, the other only uses the right speaker. Each sprite has a clone, and the original plays and controls the volume of one of the sounds, and the clone plays and controls the other. The way that the volume of the sounds are controlled gives the impression of a single sound panning from one side to the other.