I’ve always loved the maths behind tone benders and synthesisers, despite not being musically minded at all. Recently I got my hands on a BBC Microbit and decided to see what I could make it do in terms of tone generation.
Upon start up it selects a series of random notes and repeatedly loops through them. The potentiometers on the front allow you to change the pitch as well as the length of some of the notes in the loop.
In addition to the potentiometers on the front, there are also two buttons at the back that allow you to adjust the temp of all the notes as well as add more notes to the loop.
It’s still very much a work in progress but the current Micro Python code ever can be found here.