Polyphonic Microbit!

Introduction: Polyphonic Microbit!

In the 80's, early video game systems had limited chip sets. These chip sets only had 4-6 voices on them, 2 to 3 of them being dedicated to percussion/drums, and 1 for a bass line.

With only 1-2 voices left, how are we going to play chords? This is where 'false polyphony' comes in to play. "False Polyphony" is simply multiple single notes played one right after the other, similar to an arpeggio. With the lengths of the notes being very short, we can get a auditory illusion that sounds kind of like a chord!

Here is a link to more information about "False Polyphony"

https://www.ludomusicology.org/2015/07/16/composit...

Supplies

1 - BBC Microbit, however, if you dont have one yet, you can go to the Make:code website https://makecode.microbit.org/ and you can use their virtual Microbit in your browser.

Youtube Video follow along - https://youtu.be/kCnT8xMeNeA

Step 1: Use Make:Code

First step is to go to https://makecode.microbit.org/ and make a new file and title it "Phony Polyphony."

Step 2: 'on Start' Block

In your 'start' block, place a 'set tempo to (bpm)' block' inside, set to your preferred tempo. This can be found in the MUSIC block section.

120 bpm is a good place to start.

Step 3: 'on Button [A] Pressed'

In our INPUT block section, add a 'on button [A] pressed' block. This block with run any code places inside of this block when Button A is pressed.

Step 4: 'play Tone (X) for (beat)'

For this step, we are going to make a C Major Chord, the notes are C E G.

In our MUSIC block sections, use a 'play tone (note) for (beat)' and place it inside the 'on button [A] pressed' block. Set this first one to the note C and the beat to 1/16th (16th note). Then, duplicate it (copy/paste) and set this new one to E, and do the same for the third note, G.

So now we should have three 'play tone (note) for (1/16th)' and it should look like the second picture above.

Now go over to the virtual Microbit and press the A button and you should hear a short chord!

...it only played once. How do we get it to play more than once?....

On to the next step to use LOOPS!

Step 5: Using 'Loops'

Loops are handy because they will execute lines of code repeatedly for you.

In our LOOPS block area, grab and place a 'repeat (1) times do' block. Inside this LOOP block, place your three 'play tone (X) for (beat)' blocks, use image above if needed.

Now, change your number of times the LOOP runs to 6. Any number will work, but lets keep it simple, right?

Now go over to your virtual Microbit and press A and you should hear your beautiful C Major Chord playing before your very ears!

Now lets program another chord to play AFTER the C Major chord...

Step 6: Second Chord

Select your 'repeat 6 times do' block (which also contains three 'play tone (X) for (beat)' blocks) and duplicate it (copy/paste).

Now place this new group of blocks UNDERNEATH the first group of blocks. This second group will play AFTER the first group.

In this new group, lets change the notes to "D F A (D Minor)" and keep the 'repeat' to 6.

Now press A in the virtual microbit and you should hear your first chord progression using the Micro:bit Microcontoller.

Step 7: Now What?!

What are some other chord progression you could program into the Micro:bit? Maybe a favorite song or a song you wrote?

Feel free to share what you've made by commenting below!

Be the First to Share

    Recommendations

    • Arduino Contest

      Arduino Contest
    • Colors of the Rainbow Contest

      Colors of the Rainbow Contest
    • Toys & Games Contest

      Toys & Games Contest

    2 Comments

    0
    Penolopy Bulnick
    Penolopy Bulnick

    8 months ago

    Thanks for sharing your Microbit project :)

    0
    Stinkynoiseman
    Stinkynoiseman

    Reply 8 months ago

    You're welcome! Thanks for my first comment!