PianoFingering.jl is an automatic fingering generator for piano scores, written in the Julia language.
There is no "best fingering", the fingerings generated by PianoFingering.jl are for reference only.
THIS PACKAGE ONLY TESTED ON LINUX.
Future Works:
-
Support input of recorded MIDI. (This requires training neural networks to split notes for the left hand and right hand.)
-
Replace the annotation algorithm to combine data-driven and rule-based methods.
-
Remove the music21. (Maintain MusicXML.jl)
Prompt: You can copy all following commands start with ❯
Install Python (>3.11) and Julia (>1.9).
Make sure:
❯ python -V
Python 3.11.3
❯ julia -v
julia version 1.9.0Install music21 (>9.1.0):
❯ pip3 install music21Clone this project to your computer and change directory to PianoFingering.jl folder, then:
❯ julia
❯ using Pkg
❯ Pkg.activate(".")
❯ Pkg.instantiate()Now you have installed all the dependency. Close your terminal.
-
Put your
.musicxmlfile tomusicxmlfolder, suppose we have anexample.musicxmlfile right now. -
Change directory to
PianoFingering.jlfolder:
❯ julia -t auto
❯ using Pkg
❯ Pkg.activate(".")
❯ using PianoFingering
❯ fingering("example.musicxml")Wait for the program to complete, annotated piano score example_output.musicxml will be stored in output folder, this may take a few minutes.
PIG is publicly available data for academic research on piano fingering.
If you want to fingering a PIG format .txt file, just put .txt in pig folder. Then after using PianoFingering:
❯ fingering("pig_example.txt")Fingering a .musicxml file to PIG format:
❯ xml_to_pig("example.musicxml")If you encounter error, or musicxml file can't fingering correctly. Please open a issue and upload your musicxml file.
