lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A notice about \mark when Mark_engraver is moved


From: Kaj
Subject: Re: A notice about \mark when Mark_engraver is moved
Date: Thu, 23 Mar 2017 16:28:24 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.3.0

On 2017-03-23 at 14:28, Toine Schreurs wrote:

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

Yes, it does in fact work. I had seen this variable setting in the Internal Reference manual, but it was noted "(read)" so i did not test it. However, this must be a work around for a bug, isn't it? It should work without it, shouldn't it?

Kaj



reply via email to

[Prev in Thread] Current Thread [Next in Thread]