This digital tone generator turns binary inputs into musical notes through the ancient art of frequency division:
Really it's just a binary counter that gets impatient at musically-appropriate intervals. Seemed simple enought since time sort of ran out from this project.
Note selection: Set ui_in[3:0] to pick your poison:
Octave selection: ui_in[5:4] lets you choose your pitch range:
Master switch: ui_in[6] = 1 turns it on. Set to 0 for silence.
Tremolo: ui_in[7] = 1 adds cool effects.
The main square wave output comes out from uo_out[7], while uo_out[6:0] provides visual confirmation that yes, you are indeed making noise, while also letting you know which kind. Solder jumpers to all pins except the DP since that one is the audio (uo_out[7]) I think it should be able to control the inputs from the Pi Pico, and maybe I could make a small keyboard for attaching also to control it.
you'll need:
# | Input | Output | Bidirectional |
---|---|---|---|
0 | Note select bit 0 | Audio out | |
1 | Note select bit 1 | Note LED 1 | |
2 | Note select bit 2 | Note LED 2 | |
3 | Note select bit 3 | Note LED 3 | |
4 | Octave select bit 0 | Note LED 4 | |
5 | Octave select bit 1 | Note LED 5 | |
6 | Enable tone | Note LED 6 | |
7 | Enable tremolo | Note LED 7 |