Before the lesson
Download classroom resources
- To program a soundtrack
Pupils should be taught to:
- Design, write and debug programs that accomplish specific goals
- Use sequence, selection, and repetition in programs
Pupils needing extra support: Should continue with the coding commands from last time. No need to add live_loops or samples.
Pupils working at greater depth: Introduce them to the rrand(a, b) command, which chooses a random number between two parameters.
play rrand(60, 70)
Will pick a random note to play between 60 and 70. This means every time your code loops around, it will be a different note played.
sleep rrand(0.1, 1)
You can also use it for sleep duration.