MIDI renderer written in Python
First, you need the main.py file, the requirements.txt file , a .sf2(soundfont) file and a MIDI file to render
Second, you need to install some dependencies using pip, you can use python3.10 -m pip install -r requirements.txt
for that
- mido
- numpy
- subprocess
- cv2
- alive_progress
- midi2audio
You will also need to install FluidSynth and ffmpeg but you can't install them just using pip
sudo apt upgrade fluidsynth ffmpeg -y
(If you are using homebrew)
brew install fluidsynth ffmpeg
Run it by using python3 main.py
You will be prompted to input the name and the extension of the MIDI file, for example example.mid
. After that you will be prompted to input the name and the extension of the SoundFont file, for example example.sf2
. Then it will render the MIDI file. The time depends on the size of the MIDI file and the processing power of your CPU
The 2 output files are named output.mp4
(Only video) movie.mp4
(Video and Audio)
If you have some problems or opinions, feel free to open an issue