Federico Bruni <[email protected]> writes:

> I'm trying to use \footnote for the first time.
> Can I attach a footnote to a rest or a rehearsal mark?
>
> I've made some tries with no success:
>
> \relative c' {
>   \footnote #'(0.5 . -2)
>   \markup { This works }
>   a'2 b
>
>   \footnote #'(0.5 . 1)
>   \markup { doesn't work }
>   R1
>
>   \footnote #'(0.5 . 1) #'RehearsalMark
>   \markup { doesn't work either }
>   \mark \markup { Note 2 }
>   c1
>
> }

You need to use time-based footnotes here:

\relative c' {
  \footnote #'(0.5 . -2)
  \markup { This works }
  a'2 b

  \footnote #'(0.5 . 1) #'MultiMeasureRest
  \markup { doesn't work } \default
  R1

 \footnote #'(0.5 . 1) #'RehearsalMark
  \markup { works again } \default
  \mark \markup { Note 2 }
  c1

}

I am not sure how the multi-measure rest manages bypassing the footnote
mechanism.  Removing the specification "#'MultiMeasureRest" makes
footnotes attach to every grob emitted at that time step, but still does
not catch the multimeasure rest.

-- 
David Kastrup


_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to