(Semi-automated edit: de-1st/2nd-personified.)
m (Add Japanese Interwiki) (canned edit summary)
Line 57: Line 57:
[[Category:Sound Blocks]]
[[Category:Sound Blocks]]
[[de:Lautstärke (Klang Block)]]
[[de:Lautstärke (Klang Block)]]
[[ja:音量 (音ブロック)]]

Revision as of 00:16, 6 January 2018

This article is about the block. For more information about the value this block reports, see Volume (value).
2.0 Volume.png
Category Sound
Type Reporter
Introduced in 1.2

The Volume block is a Sound block and a Reporter block. The block holds a sprite's or the Stage's volume. This block can be displayed as a Stage monitor.

Example Uses

As this block holds how loud sounds, 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
when this sprite clicked
repeat until <not <mouse down?>>
point towards [mouse-pointer v]
if <(direction) < [0]> then
point in direction (0 v)
if <(direction) > [100]> then
point in direction (100 v)
set volume to (direction)%
say (join (volume) [%])
say (join (volume) [%]) for (2) secs
  • Loops that must stop once the volume is at a certain amount
repeat until <(volume) = [0]>
change volume by (-10)
  • Sensing how loud something is being played
when gf clicked
say (volume)


Main article: List of Block Workarounds

This block can be simply replicated with the following code:

([volume v] of [sprite v])

where "sprite" the name of the wanted sprite.

See Also