summaryrefslogtreecommitdiff
path: root/ly/grace-init.ly
blob: a46111e4d91a2a62d36c6595b7a9e88da3047738 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
\version "2.17.6"

startGraceSlur = #(make-music 'SlurEvent 'span-direction START 'spanner-id 'grace)
stopGraceSlur = #(make-music 'SlurEvent 'span-direction STOP 'spanner-id 'grace)


startGraceMusic =  {
}

stopGraceMusic =  {
}

startAppoggiaturaMusic =
{
    <>\startGraceSlur
}

stopAppoggiaturaMusic =  {
    <>\stopGraceSlur
}

startAcciaccaturaMusic =  {
    <>\startGraceSlur
    \temporary \override Flag.stroke-style = #"grace"
}

stopAcciaccaturaMusic =  {
    \revert Flag.stroke-style
    <>\stopGraceSlur
}

startSlashedGraceMusic =  {
  \temporary \override Flag.stroke-style = #"grace"
}

stopSlashedGraceMusic =  {
  \revert Flag.stroke-style
}