Midi Music analysis tools and code collection, including statistical music models.
Requirements Python 2.7 Use pip install -r requirements.txt to install packages.
-
play midi
Run:
python tools.py midi_file.mid --play
For example:
python tools.py anjing.mid --play -
plot midi
Run:
python tools.py midi_file.mid --play
For example:
python tools.py anjing.mid --play -
Basic music analysis
Extract music inforamtion including Unigrams and Bigrams.
Run:
python midi_analyser.py midi_file.mid
For example:
python midi_analyser.py anjing.mid -
Generate midi music based on statistical language models
Run:
python midi_generator.py midi_file.mid
For example:
python midi_generator.py anjing.mid
I will keep updating this project. Will Do:
- Add chords module.
- Determine music tonality based on statistcal data.
- Generate midi based on chords as well as traning midi files.
- Determine music verse and chorus.
- Music clustering based on melody, tonality and emotion.
I am a music fan as well as a machine learning researcher. I would like to explore music creation, especially using machine learning to genereate melody in the future. I would like to hear about any suggestion or comments. I am also looking for collcaboration oppertunities or working oppertunity. Thank you!
Example based on anjing.mid:
Music link