AI with note length and velocity prediction
Clone the project
git clone https://github.com/alexybaddie/MIDI-Humanization-AI.git
Go to the project directory
cd MIDI-Humanization-AI
Install dependencies
pip install -r requirements.txt
- Place your MIDI file in the
mid
folder (you may find it easier to rename the file). - Open
midi_file_path.txt
in any text editor of your choice. - Update the path with the name of your MIDI file (e.g.,
midi.mid
).
Important
Ensure your file has a .mid
or .midi
extension.
Warning
If the MIDI file contains longer notes, the program might retain them. You may need to adjust the note lengths manually afterwards to achieve the desired effect. This precaution helps preserve the melody.
py humanize.py
- Open up
humanize.py
in a text editor - Play around with these values at the very top of the code.
# Fine-tuning parameters
PREDICTION_MULTIPLIER = 0.5
DURATION_LIMIT = 1.25