- This article is about the block. For more information on the value this block reports, see Loudness (value).
Loudness | |
loudness | |
Category | Sensing |
Type | Reporter |
Introduced in | 26Jun06 (0.x) |
The Loudness block is a Sensing block and a Reporter block. The block reports how loud the noise is that a microphone receives, on a scale of 0 to 100.
To use this block, a microphone must be connected. Later, a message will appear on the screen, asking for permission to use the microphone. If permission is denied, the block will report a loudness of 0 or -1. If the user does not have a microphone, earbuds inserted into the microphone port will work too.
This block can be displayed as a Stage Monitor.
Example Uses
Some common uses for the Loudness block are:
- Voice analyzers
wait until <key (space v) pressed?> if <(loudness) > (30)> then say [You are a very loud and outgoing person. You like to speak up when there is the need.] for (5) seconds else say [You are a timid person, but one to be wary of. There is more than meets the eye.] for (5) seconds end
- Projects that detect changes in volume
- Depending on how loud a noise is, the greater response
forever turn cw (loudness) degrees end
- Setting a microphone's size to a noise's loudness
forever set size to ((loudness) + (100))% end