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.
sound level block returns the current sound intensity from
0 (silent) to
255 (very loud).
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