]> git.donarmstrong.com Git - lilypond.git/commitdiff
Snippet: Update 'Create Delayed Turn' snippet from old syntax
authorJames Lowe <pkx166h@gmail.com>
Thu, 26 Jun 2014 19:46:40 +0000 (20:46 +0100)
committerJames Lowe <pkx166h@gmail.com>
Wed, 2 Jul 2014 17:54:29 +0000 (18:54 +0100)
Issue 3970

Updated all the ovverride AccidentalSuggestion settings so that they
now use the later accepted syntax supported by the parser.

font.size and script.size overrides will work with or without the '#'
symbol, so I have removed it in this example just to illustrate this.

Documentation/snippets/new/creating-a-delayed-turn.ly

index 87223e9442f504591f9ce95f2a6f592932b2c281..6df9883bfa2e0c895a098c11db1a1e1299fb4527 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.17.97"
+\version "2.18.0"
 
 \header {
   lsrtags = "editorial-annotations, expressive-marks, tweaks-and-overrides"
@@ -7,14 +7,13 @@
 Creating a delayed turn, where the lower note of the turn uses the
 accidental, requires several overrides.  The
 @code{outside-staff-priority} property must be set to @code{#f}, as
-otherwise this would take precedence over the @code{avoid-slur
-property}.  Changing the fractions @code{2/3} and @code{1/3} adjusts the
-horizontal position.
+otherwise this would take precedence over the
+@code{avoid-slur property}.  Changing the fractions @code{2/3} and
+@code{1/3} adjusts the horizontal position.
 "
   doctitle = "Creating a delayed turn"
 }
 
-
 \relative c'' {
   c2*2/3 ( s2*1/3\turn d4) r
   <<
@@ -26,10 +25,10 @@ horizontal position.
     {
       s4
       \once \set suggestAccidentals = ##t
-      \once \override AccidentalSuggestion #'outside-staff-priority = ##f
-      \once \override AccidentalSuggestion #'avoid-slur = #'inside
-      \once \override AccidentalSuggestion #'font-size = #-3
-      \once \override AccidentalSuggestion #'script-priority = #-1
+      \once \override AccidentalSuggestion.outside-staff-priority = ##f
+      \once \override AccidentalSuggestion.avoid-slur = #'inside
+      \once \override AccidentalSuggestion.font-size = -3
+      \once \override AccidentalSuggestion.script-priority = -1
       \single \hideNotes
       b8-\turn \noBeam
       s8