Hi Werner,
What I imagine is a possibility to specify `front matter' and
`back matter' that gets processed but not displayed, for example

   \relative c' {
     \frontmatter { f4( }
     g a b c
     \backmatter { d) }
   }

which should be handled as

   \relative c' {
     \partial 4 f4( \break
     g a b c \break
     d)
   }

with the first and third line thrown away.

Something like that would be extremely helpful for chords with many
ties, like in piano music.

A truly ugly hack:

\version "2.19.81"

frontmatter =
#(define-music-function (mus) (ly:music?)
   #{
     \omit Score.Clef
     \omit Score.TimeSignature
     \stopStaff
     \hideNotes
     #mus
     \bar "|"
     \set Timing.measurePosition = #(ly:make-moment 0)
     \unHideNotes
     \startStaff
   #}
   )

backmatter =
#(define-music-function (mus) (ly:music?)
   #{
     \stopStaff
     \hideNotes
     #mus
   #}
   )


\relative c' {
  \frontmatter { <f a>4~( }
  <f a> g a b c~
  \backmatter { c) }
}

One of the many drawbacks being that the hidden music takes up space. (Which, funnily enough, is in fact no problem in _my_ workflow, since I always use Frescobaldi's auto-trim feature for copying the music examples into my LibreOffice documents.)

Best
Lukas


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

Reply via email to