On Thu, 1 Nov 2018 at 09:33, Aaron Hill <[email protected]> wrote:
> On 2018-11-01 1:04 am, Gianmaria Lari wrote:
> > 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}
> > }
> > }
> > }
>
> Does this work for you?
>
> %%%%
> \version "2.19.81"
>
> myfootnote = #(define-music-function (m) (ly:music?) #{
> \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}
> }
> } $m
> #} )
>
> \fixed c' {
> \time 3/4
> c c c
> \myfootnote e2 f4
> c c c
> }
> %%%%
>
> -- Aaron Hill
>
> _______________________________________________
> lilypond-user mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/lilypond-user
Yes Aaron, to me it looks a good solution. Thanks a lot!
g.
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user