You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MEI Encoding job has harcoded the value of the lines to be equal to 4 (@lines=4) for the <staffDef> element, which makes it impossible to have staves of any other number of lines.
The number of lines should be taken from the MEI Encoding's input port that receives the JSOMR file coming from the Heuristic Pitch Fiding (which in turn comes from the Miyao Staff Finding job, where one can use the job's settings to set the number of staff lines). This is an example of the JSOMR information (coming out of the Heuristic Pitch Finding) that is received by the MEI Encoding job. See the lines that read "num_lines": 5,, this parameter is the one that should be used to fix the @lines attribute in the MEI Encoding job. Right now, this number of lines is overwritten to four.
I am including the whole file here too in case you want to use it eventually to test the fix in the MEI Encoding (together with the CSV file that goes in the other input port of the job).
It looks like the generate_base_document function which has code for staffDef.set("lines", "4") only currently has the parameter column_split_info, and I'm not sure if it contains the data for the number of lines. It looks like if you pass in the staff data and extract that, the number of lines can be extracted from the JSOMR file.
I have a local copy where I've altered lines 170, 212, and 584 from the original code to the following which adds in staves, and it seems to do the trick with the files provided.
Output (file was originally .mei but changed it to .txt so it could be attached here): MEI Encoding - MEI.txt
MEI Encoding job has harcoded the value of the lines to be equal to 4 (
@lines=4
) for the<staffDef>
element, which makes it impossible to have staves of any other number of lines.Rodan/rodan-main/code/rodan/jobs/MEI_encoding/build_mei_file.py
Line 212 in 245db99
The number of lines should be taken from the MEI Encoding's input port that receives the JSOMR file coming from the Heuristic Pitch Fiding (which in turn comes from the Miyao Staff Finding job, where one can use the job's settings to set the number of staff lines). This is an example of the JSOMR information (coming out of the Heuristic Pitch Finding) that is received by the MEI Encoding job. See the lines that read
"num_lines": 5,
, this parameter is the one that should be used to fix the@lines
attribute in the MEI Encoding job. Right now, this number of lines is overwritten to four.I am including the whole file here too in case you want to use it eventually to test the fix in the MEI Encoding (together with the CSV file that goes in the other input port of the job).
Heuristic Pitch Finding - JSOMR of glyphs, staves, and page properties.json
SQUAREnotation-NClevel.csv
The text was updated successfully, but these errors were encountered: