6
InO
-B
o
t
-
Te
ac
her
G
ui
de
-
Blo
ck
ly
Key Focus 3 – Name that tune
InO-Bot has 29 built-in sounds. Full details of these are listed in the user guide.
Begin by creating a simple loop to enable stepping
through the sounds. The example (right) makes use of a
variable. In the ‘Variables’ section is a default called
‘item’. The program (shown right) sets ‘item’ to 0. It then
plays that sound number. ‘Item’ is then incremented by 1
i.e. set to itself plus 1. The loop then plays the next sound
etc.
Having listened to all the different sounds, a program could be
written to play a tune. Below is a list of the musical notes InO-Bot
can play. To the right is an example of a known tune. (Can you find
out what it is?)
Sound Musical Note
17
1c
18
1d
19
1e
20
1f
21
1g
22
2a
23
2b
24
2c
25
2d
26
2e
27
2f
28
2g
29
3a
It is important to have the ‘wait’ blocks in place as these set the
pauses between notes. These pauses could actually be created as a
variable. This would mean the pause duration could be altered in
one place rather than many times through the program. See next
page.