Looks and Sound

From Jens 11/20/15:
Here you go for RGB pen colors.
Export the blocks in this projects and share them as a library.
If you're interested in more serious pixel-wise color manipulation, take a look at this example.
And reuse the blocks therein.
See also HEX stuff in U4.
Wait, what? Usually in a dialog we have some idea what problem they're trying to solve. Also, this isn't a Getting Started page, so is it fair to introduce all this stuff they haven't seen yet? All this about lists and hofs kind of loses the point about music.
Alphie 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!
Alphie: 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...
Alphie: 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?
  1. Without using snap, guess what this code does. Discuss with your partner and perhaps another pair.
    Talk with Your Partner
  2. Talk with Your Partner
  3. After discussing your hypotheses, build the script and discuss what you think is happening.
  4. Experiment more other numbers and other blocks.
Build a script with sound that does what this paragraph says...
Confusing that this paragraph is followed by PLAY NOTE blocks, which do run without overlap. If separate scripts play different notes, and they overlap, that has nothing to do with their soundness; separate scripts can always overlap.

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.)

  1. Click the script image below to open it in snap  Then, click the green flag in the upper right, green-flag button, and play the keys A, S, D, F, G, H, J, K, and L like a piano.
    Set Up Your Headphones or Speakers when green flag clicked, forever (if (key (a) pressed?) (play note (60) for (0.50) beats))
  2. Click the set tempo to (pick random (60) to (160)) bpm block and try out a few different tempos.