Full lesson preview

Robot Loop Beats: Code a Body Percussion Song with Repeat Blocks

Music35 minutesGrades: 3rd, 4th, 5th
Robot Loop Beats: Code a Body Percussion Song with Repeat Blocks

Overview

Write a rhythm with repeat loops and perform it like a robot.

Description

Your child writes a body-percussion song as robot code using sound cards (clap, pat, stomp, snap, rest) and repeat blocks, then performs it like a robot. They compare a long code written out step by step with a short code that uses loops.

Objective

Your child will compose a 16-beat body-percussion pattern, rewrite it using repeat (loop) blocks, perform it steadily, and explain why loops make code shorter.

Materials

ItemQuantity
Index cards or paper squaresabout 20
Markers2-3 colors
Yarn or string to make loop circles2 pieces, about 3 feet each
Phone metronome app or a ticking clock (optional)1
Open floor or table space1

Vocabulary

Loop
Code that repeats a set of steps a certain number of times.
Beat
The steady pulse you can tap your foot to.
Body percussion
Making music by clapping, patting, stomping and snapping.
Rest
A beat of silence.

Preparation

Introduction

Lay out 12 cards in a row: pat, pat, clap, pat, pat, clap, pat, pat, clap, pat, pat, clap. Perform it robot-style. Ask: 'Is there a shorter way to tell a robot to do this?'
Where do you hear repeating patterns in songs you know?
Why might a programmer want to avoid writing the same step many times?

Steps

1Step 1
Find the beat
(5 min) Set a steady beat with the metronome or by tapping. Your child performs each sound card on the beat, including a silent rest, keeping robot-steady timing.
2Step 2
Long code
(8 min) Your child builds a 16-card rhythm in a long row and performs it. Count the cards together.
3Step 3
Loop it
(10 min) Your child looks for a chunk that repeats, places that chunk inside a yarn circle, and puts a REPEAT card in front, like REPEAT 4 around stomp, clap, clap, rest. Perform the loop version and check that it sounds exactly like the long version.
4Step 4
Layer and perform
(8 min) Add a second loop for a different person, such as REPEAT 8 around stomp, rest, so two robots perform together. Perform for the family, then switch parts.

Conclusion

Ask: how many cards did the long code use, and how many did the loop code use? Loops make code shorter and easier to fix, which is why programmers use them constantly.

Make your own lesson plan in minutes

Describe a topic and Resource Portal AI writes the objectives, materials and steps for your group.

Try Resource Portal AI