I had need of printing marks on several staves, so I moved the
Mark_engraver to the Staff context, all according to LilyPond NR, see
snippet below. Then I noticed, that I could not control the contents of
Rehearsal marks any more, except for the first one. All successors were
follow in sequence from the start id just as were they all defined as
\default. Hence the hash mark has no influence contrary to when the
Mark_engraver resides in Score. The only possibility to get another id
is to define it as a text mark.
Try:
A = {
\mark #3 a'4 a' |
\set Staff.rehearsalMark = #6
\mark \default a' a'
} %etc....
|\version "2.18.2" A = { \mark #3 a'4 a' | \mark #6 a' a' | \mark
\markup "Z" a' \mark \default a' | a' } \score { << \new Staff \with {
\consists "Mark_engraver" \consists "Staff_collecting_engraver" } {
\time 2/4 \new Voice { \A } } >> \layout { indent = #0 \context { \Score
\remove "Mark_engraver" \remove "Staff_collecting_engraver" } } }|
Toine Schreurs