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
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user