Events
The on loud sound
event detects a peak in the sound level, for example when someone claps. You can change the loud threshold using set loud sound threshold
.
Live Data
The sound level
block returns the current sound intensity from 0
(silent) to 255
(very loud).
Example
The example plays a power up sound when a loud sound is detected. In a forever
loop, it continuously charts the sound level using the chart
block.