Lesson 2
Programming & debugging music
Introduction
Pupils explore using the BBC micro:bit to play musical phrases. They write programs using the MakeCode editor, extending their understanding of repetition and inputs from previous unit and connect speakers/headphones to their micro:bit to play their music.
Learning objectives
- To use existing knowledge to improve programs
- To write and debug musical programs
- To experiment (tinker) with the micro:bit to make music
You will need
Downloadable resources:
- Lesson plan
- Lesson slides
- HEX files
- starter
- example
- support
Other resources:
MakeCode editor, student work from previous lesson, printouts of slides, micro:bits (optional), micro:bit battery packs (optional), alligator / crocodile clip leads (optional), headphones (optional), speakers (optional)
Quick links
Lesson plan
Introduction: Represent that tune (10 mins)
Introducing musical programming (20 minutes)
From programs to algorithms (20 minutes)
Making the micro:bit musical (10 minutes)
Extension ideas
Differentiation
Opportunities for assessment
This content is published under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) licence.