Sound#
Introduction#
The Sound category includes blocks that allow the VEX IQ (2nd generation) brain to produce audio through its built-in speaker. These blocks can play preloaded sound effects or musical notes.
Below is a list of available blocks:
play sound – Plays one of the Brain’s built-in sound effects.
play note – Plays a musical note for a specific duration.
play sound#
The play sound block plays one of the brain’s built-in sounds.
play sound [siren v]
Parameters |
Description |
---|---|
sound |
One of the built-in sounds shown below. |
Sound Name |
Play Sound |
---|---|
siren |
|
wrong way |
|
wrong way (slow) |
|
fill up |
|
headlights on |
|
headlights off |
|
tollbooth |
|
alarm |
|
tada |
|
door close |
|
ratchet |
|
wrench |
|
siren2 |
|
ratchet2 |
|
alarm2 |
|
power down |
Example
when started :: hat events
[Play the power down sound.]
play sound [power down v]
play note#
The play note block plays a specific note for a specific duration.
play note [C v] [whole v]
Parameters |
Description |
---|---|
note |
Defines the musical pitch:
|
note length |
Sets the length of the note:
|
Example
when started :: hat events
[Play a short tune.]
play note [C v] [quarter v]
play note [D v] [half v]
play note [E v] [whole v]