lilypond-user
[Top][All Lists]
Advanced

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

Re: smaller grace notes


From: Thomas Morley
Subject: Re: smaller grace notes
Date: Sat, 31 Oct 2015 01:05:10 +0100

2015-10-31 0:14 GMT+01:00 Gilberto Agostinho <address@hidden>:
> Hi all,
>
> Can someone please explain to me why these changes to the grace note sizes
> are not applied when a second voice is used?
>
> \version "2.19.28"
> \layout {
>   \context {
>     \Score
>     \with{
>       $(add-grace-property 'Voice 'NoteHead 'font-size '-5)
>       $(add-grace-property 'Voice 'Slur 'height-limit '0.9)
>       $(add-grace-property 'Voice 'Flag 'font-size '-5)
>       $(add-grace-property 'Voice 'Stem 'length '4)
>       $(add-grace-property 'Voice 'Stem 'length-fraction '0.8)
>       $(add-grace-property 'Voice 'Beam 'beam-thickness '0.3)
>       $(add-grace-property 'Voice 'Beam 'length-fraction '0.5)
>     }
>   }
> }
> {
>   \grace c'8 c'1
>   <<{\grace c'8 c'1}\\{a2 g2}>>
> }
>
> Producing:
> <http://lilypond.1069038.n5.nabble.com/file/n182997/22.png>
>
> Thanks,
> Gilberto
>


Hi Gilberto,

the <<{ } \\ { }>> - construct inherits voiceOne/Two.
voiceOne/Two modifies 'graceSettings based on the _default_ settings
not the ones you tried to insert.

As a (not tested) workaround you may try:

\layout {
  \context {
    \Score
      $(add-grace-property 'Score 'NoteHead 'font-size -5)
      $(add-grace-property 'Score 'Slur 'height-limit 0.9)
      $(add-grace-property 'Score 'Flag 'font-size -5)
      $(add-grace-property 'Score 'Stem 'length 4)
      $(add-grace-property 'Score 'Stem 'length-fraction 0.8)
      $(add-grace-property 'Score 'Beam 'beam-thickness 0.3)
      $(add-grace-property 'Score 'Beam 'length-fraction 0.5)
  }
}

{
  \grace c'8 c'1
  <<{\grace c'8 c'1}\\{\grace s8 a2 g2}>>
  %% \grace s8 is inserted to workaround another instance of issue 34
}

HTH,
  Harm



reply via email to

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