Hi,

 the following code snippet typesets a fermata in parentheses by
defining a custom articulation definition which modifies the default
fermata articulation:

%<-----------------------------------------------------------------
\version "2.19.5"

parenfermata =
#(let ((m (make-music 'ArticulationEvent 'articulation-type "fermata")))
  (ly:music-set-property! m 'parenthesize #t)
  (ly:music-set-property! m 'tweaks
   (acons 'font-size -1 (ly:music-property m 'tweaks)))
  m)

\relative c' {
  \once\override ParenthesesItem.font-size = #0
  c \parenfermata }


%<-----------------------------------------------------------------

There remain 2 questions:

1. Is there a way to move the override for the font-size in the into
the definition of "parenfermata" or should this get achieved with a
markup command definition instead? I'd like to keep the syntax as
close to the original definition of a fermata as possible
(e.g. without directional signs before the \parenfermata).

2. Can this be achieved that it applies to multimeasure rest fermatas
as well?

--
Orm


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to