]> git.donarmstrong.com Git - lilypond.git/commitdiff
Doc: NR Updated Delayed Turn Snippet
authorJames Lowe <pkx166h@gmail.com>
Tue, 24 Dec 2013 06:52:22 +0000 (06:52 +0000)
committerJames Lowe <pkx166h@gmail.com>
Tue, 31 Dec 2013 07:15:11 +0000 (07:15 +0000)
Issue 3369

Suggestion from Arno Waschk

Simplification of original snippet

Note: This snippet will only work since 2.17 versions (where the /single
command has been implemented) and does not work on the 'current' LSR
(which is still at 2.14 as of this patch).

Documentation/snippets/creating-a-delayed-turn.ly [deleted file]
Documentation/snippets/new/creating-a-delayed-turn.ly [new file with mode: 0644]

diff --git a/Documentation/snippets/creating-a-delayed-turn.ly b/Documentation/snippets/creating-a-delayed-turn.ly
deleted file mode 100644 (file)
index dba4605..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-%% DO NOT EDIT this file manually; it is automatically
-%% generated from LSR http://lsr.dsi.unimi.it
-%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
-%% and then run scripts/auxiliar/makelsr.py
-%%
-%% This file is in the public domain.
-\version "2.17.6"
-
-\header {
-  lsrtags = "editorial-annotations, expressive-marks, tweaks-and-overrides"
-
-  texidoc = "
-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}.  The value of @code{halign} is used to position the turn
-horizontally.
-
-"
-  doctitle = "Creating a delayed turn"
-} % begin verbatim
-
-
-\relative c'' {
-  \once \override TextScript.avoid-slur = #'inside
-  \once \override TextScript.outside-staff-priority = ##f
-  c2(^\markup \tiny \override #'(baseline-skip . 1) {
-    \halign #-4
-    \center-column {
-      \sharp
-      \musicglyph #"scripts.turn"
-    }
-  }
-  d4.) c8
-}
diff --git a/Documentation/snippets/new/creating-a-delayed-turn.ly b/Documentation/snippets/new/creating-a-delayed-turn.ly
new file mode 100644 (file)
index 0000000..52558e1
--- /dev/null
@@ -0,0 +1,38 @@
+\version "2.17.97"
+
+\header {
+  lsrtags = "editorial-annotations, expressive-marks, tweaks-and-overrides"
+
+  texidoc = "
+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.
+"
+  doctitle = "Creating a delayed turn"
+} % begin verbatim
+
+
+\relative c'' {
+  c2*2/3 ( s2*1/3\turn d4) r
+  <<
+    { c4.( d8) }
+    { s4 s\turn }
+  >>
+  \transpose c d \relative c'' <<
+    { c4.( d8) }
+    {
+      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
+      \single \hideNotes
+      b8-\turn \noBeam
+      s8
+    }
+  >>
+}