m (Example Uses)
(Workaround)
Line 10: Line 10:
 
This block can be simply replicated with the following code:
 
This block can be simply replicated with the following code:
  
[[File:Volume block workaround.gif]]
+
<!--[[File:Volume block workaround.gif]]-->
 +
<scratchblocks>([volume v] of [sprite v])</scratchblocks>
 +
where "sprite" is replaced by the sprite you are finding the volume of.
  
 
==Example Uses==
 
==Example Uses==

Revision as of 09:06, 4 May 2012

Volume
Volume.png
Category Sound
Type Reporter

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

Workaround

This block can be simply replicated with the following code:

([volume v] of [sprite v])

where "sprite" is replaced by the sprite you are finding the volume of.

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
  • Loops that must stop once the volume is at a certain amount
  • Sensing how loud something is being played

See Also