声音#

介绍#

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

以下是可用块的列表:

播放声音#

播放声音块播放大脑内置的声音之一。

播放声音 [警报 v]

参数

描述

声音

下面显示的其中一种内置声音。

声音名称

播放声音

警笛

错误的方法

错误的方向(慢)

填充

前灯亮着

前灯关闭

收费站

警报

塔达

门关闭

棘轮

扳手

警笛2

棘轮2

警报2

断电

例子

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

播放注释#

播放音符块会在特定时间内播放特定音符。

播放注释动作块。#
播放音符 [C v] [二分音符 v]

参数

描述

笔记

定义音高:

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

音符长度

Sets the length of the note:

  • half
  • quarter

例子

播放声音文件 1,不要等待。等待 2 秒。如果声音仍然有效,则停止声音。#
当开始 :: hat events
[Play a short tune.]
播放音符 [C v] [四分音符 v]
播放音符 [D v] [二分音符 v]