Click the green flag and listen to space radio's directions.
I have been so inspired by the wonderful uses of the music extension I have seen during Getting Unstuck. I really want to work on using the extension to compose actual music. Today, however, I have continued with randomness to create "music". Today's challenge to do something interesting with a list was tough. It took me a long time to think of something interesting, which is to say, something I had not done before that was within reach of my skill set. I decided early on that I wanted to use the music extension which led me to the idea of collecting notes in a list generated by the user and playing them back. Key presses were the obvious way to gather that user input. At first I WAY over thought it and created a list of letters and another of notes. Then I made some variables. Then I was really confused and went back to look at a couple of projects that used lists and key presses from earlier in Getting Unstuck. (@mr_sgrunt https://scratch.mit.edu/projects/410184114/ and @ipadsynctcs https://scratch.mit.edu/projects/410167137/) Thanks to them, I was able to simplify what I was doing. There is a list that gathers input from the letter and space key presses. I used 27 individual scripts to add the note numbers to the list (space = 29, a = 31, and so on). Then I added scripts to start playing back the notes on the list in order. I wanted users to be able to play again without listening to all the blah blah again so I added a way to do that. After that it was just a matter of adding the rotation and gliding to the radio and to add the instrument variable so people can change the instrument. I added blocks as a way of experimenting with captioning. There are certainly more elegant ways of adding the key presses to the list that don't involve 27 little scripts, but that will be a challenge for another day. The key is F minor. A tip from today's project would be, to look inside projects that interest you. If I had not peeked into the projects mentioned above, I would not have known that they could help me with this task.