|This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective.|
The Loud? block was a Sensing block and a Boolean block that has been removed from Scratch. The block checked the loudness value that the microphone received — if the loudness was above 30, the block returned true; otherwise, it returned false.
To use this block, a microphone had to be connected and active on your computer. This block did not work on the Java Player but did work on the Flash Player, though you had to give it permission manually each time you run the project.
- Main article: List of Block Workarounds
Because of this block's straightforward function, it can be replicated with the following code:
if <(loudness) > > then end
As the block checked if there is any loud noise, it was useful in projects that analyzed sound input.
Some common uses for the Loud? block:
- Projects that measure a Scratcher's voice
forever say (join (loudness) (join [ ] <loud? :: sensing>))
- Controlling things in projects with your voice
forever wait (0.05) secs if <loud? :: sensing> then move (10) steps if on edge, bounce
- Voice activated speeches
forever if <loud? :: sensing> then say [BE QUIET!] else say  end
- Voice analyzers
wait until <key [space v] pressed?> if <loud? :: sensing> then say [You are a very loud and outgoing person. You like to speak up when there is the need.] for (5) secs else say [You are a timid person, but one to be weary of. There is more than meets the eye.] for (5) secs end
- Making a sprite getting frightened
When gf clicked forever if <loud? :: sensing> :: control switch costume to [holding ears v] end