lilypond-user
[Top][All Lists]
Advanced

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

put footnote in a variable


From: Gianmaria Lari
Subject: put footnote in a variable
Date: Thu, 1 Nov 2018 09:04:14 +0100

I have the following code:

\version "2.19.81"
\fixed c' {
  \time 3/4 
  c c c

  \once \override Score.FootnoteItem.annotation-line = ##f 
  \footnote \markup\huge { * } #'(0 . 5) \markup {\lower #0.8 { \super { * } }
     "The second time play the measure as " \raise #0.5
    \score {
      \new Staff \with {
        \remove "Time_signature_engraver"
        fontSize = #-3
        \override StaffSymbol.staff-space = #(magstep -3)
        \override StaffSymbol.thickness = #(magstep -3)
        firstClef = ##f
      }
      \fixed c' {f2 e4}
      \layout { indent = 0\cm ragged-last = ##t}
    }
  } 
  
  e2 f4
  
  c c c
}

Is there any way to put all the code related to the footnote in a variable? For example if possible I would like to write something like this:

\version "2.19.81"
\fixed c' {
  \time 3/4 
  c c c

  \myfootnote e2 f4
  
  c c c
}

and of course 

myfootnote =   {
\once \override Score.FootnoteItem.annotation-line = ##f 
  \footnote \markup\huge { * } #'(0 . 5) \markup {\lower #0.8 { \super { * } }
     "The second time play the measure as " \raise #0.5
    \score {
      \new Staff \with {
        \remove "Time_signature_engraver"
        fontSize = #-3
        \override StaffSymbol.staff-space = #(magstep -3)
        \override StaffSymbol.thickness = #(magstep -3)
        firstClef = ##f
      }
      \fixed c' {f2 e4}
      \layout { indent = 0\cm ragged-last = ##t}
    }
  } 
}

Thank you, g.

reply via email to

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