🧠Concept
Pick the right answer.
(loudness) return?(loudness) value immediately after a loud clap?👀Code Reading
Look at the blocks. Predict what happens.
sounds hold at the end?when flag clicked
delete all of [sounds v]
repeat (10)
add (loudness) to [sounds v]
if <(length of [sounds v]) > (5)> then
delete (1) of [sounds v]
end
endwait (0.5) secs block in this clap counter?when flag clicked
set [claps v] to (0)
forever
if <(loudness) > (50)> then
change [claps v] by (1)
wait (0.5) secs
end
endwhen flag clicked if <(loudness) > (50)> then say [Loud!] for (2) secs end
🐛Find the Bug
Something is broken. Pick the fix.
This clap counter is supposed to count one clap per loud sound. Instead it adds hundreds of counts for a single clap. What is wrong?
when flag clicked
set [claps v] to (0)
forever
if <(loudness) > (5)> then
change [claps v] by (1)
end
end🛠️Build It
Pick a level. Build it. Check the boxes.
Grow when it is loud.
More
Build a sound-reactive sprite. In a forever loop, set the sprite's size to (loudness) * 2 percent. When you speak or clap near the microphone, the sprite should grow and shrink in real time.
Done when
The sprite changes size visibly when sound is detected. Size is proportional to loudness — louder = bigger. Size returns to small when quiet.
Count each loud clap.
More
Build a clap counter. Create a variable claps. In a forever loop, if loudness exceeds 50, add 1 to claps and wait 0.5 seconds (cooldown). Have the sprite say the count each time. Test: one clap should add exactly 1.
Done when
Single clap adds exactly 1. Cooldown prevents multi-counting. The threshold correctly ignores background room noise. The sprite announces each new count.
Show calm, warning, or alarm.
More
Build a three-level sound meter. In a forever loop, read (loudness) every frame and set the sprite's size to (loudness) * 3 percent so it grows continuously with sound. Then add a multi-threshold color signal using plain if blocks: when loudness is below 30 set the color effect to a low value (calm), when loudness is 30–70 set a medium color value (warning), and when loudness is above 70 set a high color value (alarm). Show the live loudness value on the stage.
Done when
Size updates continuously and is proportional to loudness. Three loudness thresholds map to three distinct color states (calm / warning / alarm). The correct threshold band is chosen each frame. The loudness value displays on screen.
Review the student's project, then check each thing they did.
Project Evaluation
0 of 4 ticked
💬Talk About It
Present your project to your teacher or a classmate.
- 1️⃣Show your clap counter.
- 2️⃣Point to the threshold number and the cooldown
wait. - 3️⃣Clap to show it counting.
Watch the student present, then check each thing they did.
Presentation Checklist
0 of 6 ticked
📤Submit
Send your results to your teacher and parent.
0 of 0 answered