MusicTalk-Midi is used to map midi file notes to color, and then use IoTTalk to push these color information to other output device.
Make sure you install the python dependency mido
To install mido
, use the following command:
pip install mido
Also, make sure you have DAN.py
, csmapy.py
in the same directory with midi_IDF.py
.
Change the music_file
in the code ( in main ) to the midi file you want.
For example: (in main function)
music_file = "BEYER003-VK.mid"
Finally, run the program using the following command:
python midi_IDF.py