Sonido#
Reproducir sonido#
The Play Sound block is used to play a sound effect that is selected from the IQ (1st gen) Brain’s built-in speakers.
This is a non-waiting command and allows any subsequent commands to execute without delay.
reproducir sonido [sirena v]
Select which sound effect to play:
siren
wrong way
wrong way (slow)
fill up
headlights on
headlights off
tollbooth
alarm
tada
door close
ratchet
wrench
siren2
ratchet2
alarm2
power down

In this example, the IQ (1st gen) Brain will play the alarm2 sound.
cuando empezó
reproducir sonido [alarma2 v]
Play Note#
The Play Note block is used to play the selected musical note from the IQ (1st gen) Brain’s built-in speakers.
This is a non-waiting command and allows any subsequent commands to execute without delay.
tocar nota [A v] [entero v]
Choose a musical note.

Choose the duration (how long) the note will play.
A whole note plays for 1 second.
A half note plays for 0.5 seconds.
A quarter note plays for 0.25 seconds.

In this example, the IQ (1st gen) Brain will play a whole G note.
cuando empezó
tocar nota [G v] [entero v]