(See also)
Line 9: Line 9:
  
 
The loudest the volume can reach is 100, and the minimum is 0.
 
The loudest the volume can reach is 100, and the minimum is 0.
 +
==Workaround==
 +
This block can be replicated with the following code:
  
 +
[[File:Volume block workaround.gif]]
 
==Example Uses==
 
==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.
 
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.

Revision as of 19:20, 26 February 2011

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.

The loudest the volume can reach is 100, and the minimum is 0.

Workaround

This block can be replicated with the following code:

File:Volume block workaround.gif

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