lilypond-user
[Top][All Lists]
Advanced

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

Re: Footnote problem with \default


From: Nick Payne
Subject: Re: Footnote problem with \default
Date: Sun, 01 Jul 2012 16:55:20 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1

On 01/07/12 14:31, David Kastrup wrote:
David Kastrup <address@hidden> writes:

Nick Payne <address@hidden> writes:
\relative c'' {
     \footnote #'(-1.5 . 1.5) \markup { Footnote } \default
     c c c c
}
music

     This is the item, a music event or chord constituent or post-event,
     that is being annotated. While it cannot be omitted, it can be
     replaced by \default in which case the footnote is not attached to a
     music expression in particular, but rather to a moment of time. It
     is mandatory in this case to use the grob-name argument for
     selecting an affected grob type, like ‘#'TimeSignature’.

I think the last sentence is rather clear.  See also
<URL:http://code.google.com/p/lilypond/issues/detail?id=2547> which has
been orphaned at the moment.
See also <URL:http://code.google.com/p/lilypond/issues/detail?id=2559>
for more background.

Thanks. I hadn't read the doco properly. Adding the grob name fixes it. On a somewhat related matter, if I have a StaffGroup with a time-related footnote in one staff, then the footnote indication gets attached to all staves at the same time moment, which would seem the desired behaviour, but that also results in the identical footnote text being duplicated as many times in the footer as there are staves in the StaffGroup.

Shouldn't the correct behaviour in this situation be for the footnote indication to appear in each stave (without incrementing the footnote number), and the footnote text to appear only once in the footer.

\version "2.15.40"

\paper {
    #(set-paper-size "a6")
}

notesa = \relative c'' {
    \footnote #'(-1.5 . 1.5) #'NoteHead \markup { Footnote } \default
    c c c c
}

notesb = \relative c'' {
    c c c c
}

notesc = \relative c'' {
    c c c c
}
\score {
    \new StaffGroup <<
        \new Staff {
            \clef treble
            \notesa
        }
        \new Staff {
            \clef treble
            \notesb
        }
        \new Staff {
            \clef treble
            \notesc
        }
    >>
    \layout { }
}

Attachment: test.png
Description: PNG image


reply via email to

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