This project plays a complex melody by combining several channels playing the same simple melody with different rhythms. ☛ Click "Sound file version" to listen to a version using multiple copies of a single sound file play a melody using the pitch effect, the pan left/right effect and the volume of each channel. ☛ Click "Music extension version" to listen to a version using multiple instruments from the music extension. You can also change the sliders: ☛ "# of channels" is the number of instruments or copies of the sound file. This only has effect before the music starts playing - changing it while the music is playing does nothing. ☛ "Tempo exponent" is the exponent used when setting the tempo (x in the equation "tempo * 2 ^ x"). This can be changed while the music is playing.
The variable "tempo exponent" is actually a misnomer. It was originally named "beat division exponent". It doesn't change the tempo - it sets division of a beat used by the channel with the fastest rhythm. But I figured that "beat division exponent" would be a bit too mystifying for a lot of people. The main inspiration for making this is @RokCoder's wonderful project Music Hypnosis Trap: https://scratch.mit.edu/projects/819294646/