lilypond-user
[Top][All Lists]
Advanced

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

Re: Controlling slur engraver


From: Thomas Morley
Subject: Re: Controlling slur engraver
Date: Tue, 1 May 2012 19:24:08 +0200

Hi Helge,

it will work, if you use a function wich selects the slurs regarding
their spanner-id.
(It's not documented in 2.14.2-IR, but you can watch it using \displayMusic)

\version "2.14.2"

keepOnlyGraceSlurs =
\override Voice.Slur #'stencil =
  #(lambda (grob)
    (let* ((stil (ly:slur::print grob))
           (sp-id (ly:grob-property grob 'spanner-id)))
    (if (string=? sp-id "grace")
       stil
       (ly:grob-suicide! grob))))

\score {
 \relative c'  {
         \keepOnlyGraceSlurs
   a'8.( b16) b8.\mordent( a32 b) cis8-. cis, cis4~ | % 40
   cis8 b16 a b8-. b-. \appoggiatura{cis16} b8 a  r4 | % 41

   % more test
   \break
   \appoggiatura d8 c1 \break
   \acciaccatura  d8 c1 \break
   c8 (d e f g f e d \break
   c1)
 }
}

HTH,
  Harm



reply via email to

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