
PicoBlocks - Reference
1
display
display what
r a n d o m
display
15
95
displays a random number
Displays a value on the display
Sound Blocks
The Sound palette starts with six basic blocks (shown below). You can create additional blocks
with the Melody and Rhythm editors. See page 30 for information on creating melodies and
rhythms.
chirp
makes the Cricket chirp once
Making the Cricket
chirp
is a good way to test whether your computer is communicating
properly with the Cricket.
note
how high a note
note
5
50
plays the note 50
for 5 ticks (half a second)
how long
note
can play notes between 0 (lowest) and 100 (highest).
You can play notes with the Cricket speaker or with the Sound Box (but it will sound much
better with the Sound Box). For composing melodies, we suggest using the Melody Editor
rather than putting individual note blocks together.
Default value:
note 50 2
play
sound
plays this sound (kitten)
play
sound
Kitten
23
play
sound
plays sound 23 (horse)
Select a sound with the slider or enter a number between 0 and 100. There are 24 sounds
available (see table below).