Skip to content

daT7F4/TMIDI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

TMIDI

MIDI renderer written in Python

Setup

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

Linux:

sudo apt upgrade fluidsynth ffmpeg -y

Mac:

(If you are using homebrew)

brew install fluidsynth ffmpeg

Windows:

FFMPEG FluidSynth

Running

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

About

MIDI renderer written in Python

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages