Closed dliessi closed 5 years ago
Reading again the documentation, I think that the following code should do what I want (I overlooked the "Score" line in the annotation because it was always empty...), but I cannot compile it.
file:
\version "2.19.80"
\include "oll-core/package.ily"
\loadModule scholarly.editorial-markup
\loadModule scholarly.annotate
\setOption scholarly.annotate.export-targets #'(plaintext)
\setOption scholarly.annotate.sort-by #'(score rhythmic-location)
\book {
\score {
\new Score = "scoreA" {
\new Staff {
\editorialMarkup correction \with {
message = "test1"
ann-type = critical-remark
type = substitution
} {
a'1
}
}
}
}
\score {
\new Score = "scoreB" {
\new Staff {
\editorialMarkup unclear \with {
message = "test2a"
ann-type = critical-remark
} {
c'1
}
\editorialMarkup correction \with {
message = "test2b"
ann-type = critical-remark
type = substitution
} {
b'1
}
}
}
}
\score {
\new Score = "scoreC" {
\new Staff {
\editorialMarkup regularization \with {
message = "test3"
ann-type = critical-remark
} {
f'1
}
}
}
}
}
error:
GNU LilyPond 2.19.83
Processing `test.ly'
Parsing...
Interpreting music...
writing 'test.annotations.log' ...
Preprocessing graphical objects...
Interpreting music.../usr/share/lilypond/2.19.83/scm/lily-library.scm:948:13: In procedure symbol->string in expression (symbol->string lst):
/usr/share/lilypond/2.19.83/scm/lily-library.scm:948:13: Wrong type argument in position 1 (expecting symbol): "scoreA"
Should be fixed, thank you for reporting
Compiling the following file
results in the following annotation file
Apparently annotations are not kept separated by score, but are sorted together by moment. I would like the annotation file to look like
or
or maybe it would be even better to output one file per score.