Hi there,

> I want to create footnotes which attach to a specified bar or just a 
> particular time

Did you try attaching it to a mark? e.g.

%%%  SNIPPET BEGINS
\version "2.25.11"

\paper {
  tagline = ##f
}

fn_ossia =
#(define-music-function (os music) (pair? ly:music?)
  #{
  \once \override Score.Footnote.annotation-line = ##f
  \footnote \default #os \markup {
    \italic "Ossia:"
    \score {
      \new Staff \with {
        %% Magnification, removing unnecessary elements, ...
      } { #music }
      \layout {
        %% If any of those were set in a higher-level \layout
        ragged-right = ##t
        ragged-last = ##t
        ragged-bottom = ##t
        ragged-last-bottom = ##t
        indent = 0
      }
    }
  } Score.RehearsalMark
  #})

{
  \fn_ossia #'(1 . 3) { c'1 } \mark \markup \null
  c''1
  \fn_ossia #'(1 . 3) { d'1 } \mark \markup \null
  f'1
}
%%%  SNIPPET ENDS

Hope this helps!
Kieren.
______________________________________________

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.


Reply via email to