Lesson 2: Using loops

Using Scratch, children create musical instruments using either the 'sound' blocks, real musical notes or by selecting sounds from the library, using 'loops' to create the repetition found in most music pieces

Before the lesson

Download classroom resources

Learning objective

  • To use repetition (a loop) in a program

National curriculum

Pupils should be taught to:

  • Design, write and debug programs that accomplish specific goals, including controlling or simulating physical systems; solve problems by decomposing them into smaller parts
  • Use sequence, selection, and repetition in programs; work with variables and various forms of input and output

Success criteria

Cross-curricular links

Attention grabber

Main event


Pupils needing extra support: Reduce the number of sprites they’re working with. Focus on one loop such as ‘repeat forever’.

Pupils working at greater depth: Add visual effects to how a sprite looks when it’s playing, so we know which have and haven’t been clicked.

Wrapping up

Assessing pupils' progress and understanding


Created by:
Sway Grantham,  
Computing specialist
Sway Grantham (@SwayGrantham) is a Primary School Teacher, a CAS Master Teacher and Specialist Leader in Education for Primary ICT. She also has a BCS Certificate in Computer Science Teaching (Primary). She has written several curricula and conducted research into the…
Find out more