声音#

Introduction#

The VEX IQ (1st gen) Brain can produce audio through its built-in speaker using blocks from the Sound category. These blocks play preloaded sound effects or musical notes.

Below is a list of all 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.

播放声音 [警报 v]

Parameters

Description

sound

One of the built-in sounds shown below.

Sound Name

播放声音

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

当开始
[Play the power down sound.]
播放声音 [关机 v]

play note#

The play note block plays a specific note for a specific duration.

The play note action block.#
播放音符 [C v] [二分音符 v]

Parameters

Description

note

Defines the musical pitch:

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

note length

Sets the length of the note:

  • half
  • quarter

Example

Play sound file 1 and don’t wait. wait for 2 seconds. If sound is still active, then stop sound.#
当开始
[Play a short tune.]
播放音符 [C v] [四分音符 v]
播放音符 [D v] [二分音符 v]