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.

The play note action block.#
  play note [C v] [whole v]

Parameters

Description

note

Defines the musical pitch:

  • C
  • D
  • E
  • F
  • G
  • A
  • B

note length

Sets the length of the note:

  • whole
  • half
  • quarter

Example

Play sound file 1 and don’t wait. wait for 2 seconds. If sound is still active, then stop sound.#
  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]