Zho:音量（积木）

The Volume 积木 is a 音效类积木 and a 椭圆形积木. The block holds a 角色的 or the 舞台的 音量. This block can be displayed as a 舞台监控视窗.

用法示例
As this block holds how loud 音效, drums, and notes will be played, it is useful in music projects where they must sense how loud an instrument has been played.

Some common uses for the Volume block:
 * Volume controls

當角色被點擊 重複直到 <<滑鼠鍵被按下？> 不成立> 面朝 [滑鼠游標 v] 向 如果 <(方向) < [0]> 那麼 面朝 (0 v) 度 如果 <(方向) > [100]> 那麼 面朝 (100 v) 度 音量設為 (方向) % end end 說出 (字串組合 (音量) 和 [%]) end 說出 (字串組合 (音量) 和 [%]) (2) 秒


 * Loops that must stop once the volume is at a certain amount

重複直到 <(音量) = [0]> 音量改變 (-10) end


 * Sensing how loud something is being played

當 @greenflag 被點擊 重複無限次 說出 (音量) end

应用
This block can be simply replicated with the following code:

([音量 v] \( [角色 v] \)) where "sprite" is replaced by the sprite you are finding the volume of.

参见

 * 音量改变
 * 音量设为 %
 * 音量（值）