/PianoFingering.jl

Advanced automatic fingering generator for piano scores, determining optimal fingering using Model-Based Reinforcement Learning, written in the Julia language.

Primary LanguageJuliaGNU General Public License v3.0GPL-3.0

PianoFingering.jl

PianoFingering.jl is an automatic fingering generator for piano scores, written in the Julia language.

image

There is no "best fingering", the fingerings generated by PianoFingering.jl are for reference only.

THIS PACKAGE ONLY TESTED ON LINUX.

How to use it

Pre-requirement

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.0

Install music21 (>8.1.0):

❯ pip3 install music21

Clone 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.

Run Programe

  1. Put your .musicxml file to musicxml folder, suppose we have an example.musicxml file right now.

  2. Change directory to PianoFingering.jl folder:

❯ 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 Dataset

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")

Feedback

If you encounter error, or musicxml file can't fingering correctly. Please open a issue and upload your musicxml file.