johentsch / ms3

A parser for annotated MuseScore 3 files.
https://ms3.readthedocs.io
GNU General Public License v3.0
42 stars 3 forks source link

Ability to add name particles to instruments #80

Closed johentsch closed 1 year ago

johentsch commented 1 year ago

Working example

Input

The metadata.tsv includes the test instrumentation to be written into the three files.

fname staff_1_instrument staff_2_instrument staff_3_instrument staff_4_instrument
n01op18-1_02 violinI violinII Viola Cello
n03op18-3_01 violin I violin II vla cello
n10op74_01 Violin I Violin II viola violoncello

Desired output

piece staff_1_instrument staff_2_instrument staff_3_instrument staff_4_instrument
n01op18-1_02 Violin Violin Viola Violoncello
n03op18-3_01 Violin I Violin II Viola Violoncello
n10op74_01 Violin I Violin II Viola Violoncello

Explanation

The arbitrary suffixes are also to be written into these other fields (but, of course, not to the standardized instrument IDs such as keyboard.piano):

image

Current output

piece staff_1_instrument staff_2_instrument staff_3_instrument staff_4_instrument
n01op18-1_02 Violin Violin Viola Cello
n03op18-3_01 Violin Violin Viola Čelo
n10op74_01 Violin Violin Viola Violoncello

Explanation

Please note that the new version of ms3 automatically renames the fname column to piece.

johentsch commented 1 year ago

Sorry @arinaLozhkina, of course this did not work: The ZIP file did not include the .mscx files. I've updated it, now after unpacking it you should get this tree:

│   metadata.tsv
│
└───MS3
        n01op18-1_02.mscx
        n03op18-3_01.mscx
        n10op74_01.mscx