This is a simple example of using variables to store the musical note to be played. This has the advantage that all the notes can be added to the backdrop and any sprite can play any note.
The idea came from @Kitty_Liddy's "Rainbow music": https://scratch.mit.edu/projects/799362992/