Lesson 5 Music.

Slides:



Advertisements
Similar presentations
Why is so hard to tune my guitar? A look at the mathematics behind the music Charlie Burrus Rice University School Mathematics Project November 2007 This.
Advertisements

How Can You Name That Tune? Identifying Pitch Direction Visually By Dawn Doughty.
Early Years Literacy Lesson 2
BBC Microbit Getting set up and making your first program.
Why is so hard to tune my guitar? A look at the mathematics behind the music Charlie Burrus Rice University School Mathematics Project November 2007 This.
Lesson 1 Sequencing.
BBC MICRO:BIT Lesson 6 Networking. Digital devices can be networked together to exchange data. You are going to create a very simple network using two.
BBC MICRO:BIT Lesson 2 Variables and Lists. Variables When programming it is often necessary to store a value for use later on in the program. A variable.
Lesson 4 Accelerometer.
Notes of the keyboard and Stave
Starter What is BBC micro:bit?
Bbc microbit Lesson 3 – Temperature hot medium.
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
Sound Effects with Arduino
Iteration and Selection
BBC Microbit.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
BBC Microbit.
micro:bit for primary schools – mb4ps.co.uk
BBC Microbit.
Music Cards Music Cards
Music Cards Music Cards
Music Cards Music Cards
Dance Cards Dance Cards
BBC Microbit.
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
Learning to Code with the MicroBit
micro:bit: External Inputs & Outputs
Music Cards Music Cards
BBC Microbit.
Dance Cards Dance Cards
Game Controller Lesson Three.
Dance Cards Dance Cards
Telling the time..
Lesson 4 Accelerometer.
Dance Cards Dance Cards
Dance Cards Dance Cards
BBC Microbit.
BBC Microbit.
BBC Microbit.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
BBC Microbit.
Music Cards Music Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Dance Cards Dance Cards
Music Cards Music Cards
Dance Cards Dance Cards
Lesson 2.
English – Foundation Phase Lesson 1
BBC Microbit.
Music Cards Music Cards
Dance Cards Dance Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
BBC Microbit.
Music Cards Music Cards
Dance Cards Dance Cards
Dance Cards Dance Cards
Early Years Literacy Lesson 2
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Errors.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Music Cards Music Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Music Cards Music Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Dance Cards Dance Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Music Cards Music Cards
Dance Cards Dance Cards
Presentation transcript:

Lesson 5 Music

Music The micro:bit can generate music if it is connected to a speaker or headphones. Connect your headphones to the micro:bit using crocodile clips as shown in the diagram.

This is a list of all the built-in melodies, try some of them out. Example Here is an example program that makes the micro:bit play music. Try it for yourself: music.DADADADUM music.ENTERTAINER music.PRELUDE music.ODE music.NYAN music.RINGTONE music.FUNK music.BLUES music.BIRTHDAY music.WEDDING music.FUNERAL music.PUNCHLINE music.PYTHON music.BADDY music.CHASE music.BA_DING music.WAWAWAWAA music.JUMP_UP music.JUMP_DOWN music.POWER_UP music.POWER_DOWN WARNING: Do not put the headphones in your ears as the music will be very loud. This is a list of all the built-in melodies, try some of them out.

Place a screenshot of your code here. Activity 5.1 Creature a program that makes the micro:bit play different melodies when buttons A and B are pressed. Use this program for displaying different images as a starting point: Place a screenshot of your code here.

Writing Your Own Melodies You can also write your own melodies for the micro:bit to play. Each note has a name like C or C#, an octave (how high or low the note should be played) and a duration. For example “A1:4” refers to note A in octave 4 played for a duration of 4. Notes can be placed in a list to create a melody as shown in the example below: Try it for yourself.

Place a screenshot of your code here. Activity 5.2 Here are the notes that make up the melody for Twinkle Twinkle Little Star. Create a program to play the melody on the micro:bit. Use 4 as the octave and duration of each note. C C G G A A G F F E E D D C G G F F E E D Place a screenshot of your code here.

Place a screenshot of your code here. Activity 5.3 There are only three unique sets of notes in the Twinkle Twinkle Little Star melody. Make your program more efficient by creating a separate list for each unique set of notes and playing each list when needed. C C G G A A G F F E E D D C G G F F E E D Place a screenshot of your code here.

Accelerometer You can make use of the accelerometer to play random notes as the micro:bit moves. This program uses the reading from the y axis as the pitch. Try it for yourself.

Place a screenshot of your code here. Extension Find the notes for another song on the internet and create a program to play it. Place a screenshot of your code here.