python midi2arduino.py MIDIFILE
e.g. python midi2arduino.py ./pacman.mid
3 separate arrays are generated containing notes (frequencies), velocities (on and off) and note durations (in ms) for the given midi file. The generated velocity only indicate note on and off due to the buzzer limitations. The midi file is expected to contain only one track. Only track 0 is processed.
- Arduino UNO (or similar)
- Buzzer
- R100 reststor (optional)
Buzzer | Arduino |
---|---|
GND | GND |
+ | PIN9 (with optional R100) |
Python: mido >= 1.2.9