ABC import fails when using `%%partsfont` and/or `%%annotationfont`
Reported version
3.6
Type
Plugins
Frequency
Once
Severity
S5 - Suggestion
Reproducibility
Always
Status
closed
Regression
No
Workaround
Yes
Project
Importing the abc file with the content below only displays a single empty bar in MusScore:
%%partsfont Times 16 box bold
%%annotationfont Times 14
X: 0
T: Dixieland Delight
M: C
Q: 104
K: C perc
Z8 ||
P: A1
Z16 | \
P: B
Z11 ||
P: C
F2 c2 F2 c2 | x8 | x8 | x8 | x8 | x8 | x8 | "^(8)" x8 | x8 | x8 | x8 | x8 | x8 | x8 | x8 | "^(8)" x8 ||
P: A2
"_White-tail buck deer" x8 | x8 | x8 | x8 | x8 | x8 | x8 | "^(8)" x8 | x8 | x8 | x8 | x8 | x8 | x8 | x8 | "^(8)" x8 ||
P: B
x8 | x8 | x8 | x "^(4)" x7 | x8 | x8 | x8 | x "^(4)" x7 | x8 | x8 | x "^(3)" x7 ||
P: C
x8 | x8 | x8 | x "^(4)" x7 | x8 | x8 | x8 | F2 "^(4)" z6 ||
%O
x [Q: 125] F2 F2 F2 F2 | x8 | x8 | x "^(4)" x7 ||
P: C
FcFc FcFc | x8 | x8 | "^(4)" x8 | x8 | x8 | x8 | "^(4)" x8 | x8 | x8 | x8 | "^(4)" x8 | x8 | x8 | x8 | "^(4)" x8 ||
P: B
F2 F2 F2 F2 | x8 | x8 | x "^(4)" x7 | x8 | x8 | x8 | x "^(4)" x7 | x8 | x8 | x "^(3)" x7 |
P: C
FcFc FcFc | x8 | x8 | "^(4)" x8 | x8 | x8 | x8 | "^(4)" x8 | x8 | x8 | x8 | "^(4)" x8 | x8 | x8 | x8 | F2 "^(4)" F2 F2 z2 |]
Comments
Drop the 1st two lines and it'll import the "real" ABC part.
It doesn't block you from using ABC import all together and doesn't crash either -> Major
This may even be by design, or get turned into a feature request, as far as I can tell using
%%partsfont
and/or%%annotationfont
are just not implementedSee https://wim.vree.org/svgParse/abc2xml.html :
Most elements from ABC are translated, but some translations are only partially implemented. In general %%commands are not implemented except:
So indeed a feature request. And one that isn't for MuseScore's plugin, but rather for that web service named above.
I guess it should at least just ignore those
%%
things it doesn't yet support.Maybe you could contact the author via the email address mentioned at the bottom of https://wim.vree.org/svgParse/abc2xml.html
Seems https://abc2xml.appspot.com/ is not using the latest version (231, from 2021-05-28, so pretty new) but 218, from 2018-09-27 (so quite a few revisions and years behind).
But the change logs don't indicate this issue here to have been fixed.
In reply to Seems http://abc2xml.appspot… by Jojo-Schmitz
Yes, I thought it would just ignore the feature it doesn't support and was about to test without the annotations.
However, I spent time playing around with abcjs' print options and have managed to render the sheet into PDF in the abcjs editor using Firefox's Print to PDF option.
Installed Edwin font and set the annotations to
%%titlefont Edwin 25
%%partsfont Times-Bold 18 box
%%tempofont Georgia 18
%%annotationfont Georgia 14
Using Georgia for numbers instead of MScoreBC (can't get that to be recognized and not worth the time since Georgia is ok).
I suggest this as a workaround for the case when a PDF output is required. Of course, it doesn't help if the notes are required for editing in MuseScore.
MScoreBC is a font specialized on Figured Bass IIRC, so no wonder it doesn't work
Fixed in the workaround for #304539: ABC import fails
because the new location runs v 237
Yes, I guess so
Automatically closed -- issue fixed for 2 weeks with no activity.