Trash Can.svg The block documented in this article is a hidden block, meaning that while it technically still exists in the latest version of Scratch (3.0), it is not available in the palette.
Loud?
<loud?:: sensing>
Category Sensing
Type Boolean
Introduced in 26Jun06 (0.x)
Removed in v177 (2.0 alpha)

The loud? block was a boolean block and a Sensing block. The block returned whether or not the loudness value from the connected microphone was above 30 in Scratch 1.4 and earlier, above 35 in pre-2011 Scratch 2.0 prealpha versions, or above 10 in later versions[1]. The block's removal is unknown, but it may be because of the existence of an easy workaround.[citation needed]

The block did not function properly in the Java player.[citation needed]

Workaround

Main article: List of Block Workarounds

The block can be replicated by checking the loudness value manually:[note 1]

<(loudness) > [30]>

Example Uses

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 are:

forever
say (join (loudness) (join [ ] <loud?:: sensing>))
  • Controlling things in projects with the microphone:
forever
wait (0.05) secs
if <loud?:: sensing>::control
move (10) steps
if on edge, bounce
  • Voice activated speeches:
forever
if <loud?:: sensing>::control
 say [BE QUIET!]
else
 say []
end
  • Voice analyzers:
wait until <key [space v] pressed?>
if <loud?:: sensing>::control
  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 green flag clicked::control
forever if <loud?:: sensing> {
switch to costume [holding ears v]:: looks
}@loopArrow ::control cap

As a Stage Monitor

A monitor for the loud? block that has been imported into Scratch 3.0

This was one of only two boolean blocks that can be displayed as a Stage Monitor. The other was Sensor ()?.

A project which is imported into Scratch 3.0 with this Stage Monitor will still function correctly, but will cause the Stage Monitor to become green (a color usually reserved for Extension blocks) rather than light blue.

Notes

  1. The loudness value this block checks for being greater than differs from version to version, see starting paragraph.

See Also

References

Cookies help us deliver our services. By using our services, you agree to our use of cookies.