Extracts melody from provided midi files without harmony notes.
- pypianoroll
- numpy
Place the midi files "midis" directory in the created directory structure
+extracted/
+ extracted/
+ melody/
+ high/
+ low/
+ high_npy/
+ low_npy/
+ midis/
+ src/
+extract_melody.py
+melotract.py
Run extract_melody.py, the melody will appear in the extracted/melody/high directory. To save the melodies as numpy set the save_numpy as true in extract_melody.py