Morgan Ok well, here's a list of the notes:
. If we click it, it lists the notes.
Betty: Let's play that list of notes for 0.5 beats each:
Oh, that only played one note!
Morgan: We could try to "run" your script...
Gammie: Let's try this
map over
thing and leave the note blank for the list to fill in:
I got an error!
Ok, maybe
map over input
?
Hmm...
Morgan: How about this?
Another error!
Betty: Hey, we want to repeat the same commands for different items in a list, so what if we tried a
for each
loop?
Blocks in a script run in a specific order, from the top of the script to the bottom. Generally, snap waits until one block has finished its job before continuing on to the block below it. (One common exception is blocks that play sounds: a block's job can be to start the sound, which means the block below it will execute while the sound is still playing.)