4. Counters

Changing values with += and -=

hits += 1 means "add 1 to hits." Changing a variable inside a loop lets it grow (or shrink) every time the loop goes around.

🔢 Math connection: b += 3 over and over is repeated addition: 1, then 4, then 7. RockBlocks Math: Grade 2 · Repeated Addition & Arrays ↗

🎯 0/4 · 🥁 0 solved · 🏅 0

Challenge A:Make a snare fill that builds: start with hits = 1, loop beats 1-4 playing snare(b, hits), and add 1 to hits each time.

Goal
snare
1234