]> git.donarmstrong.com Git - lilypond.git/commitdiff
Docs: NR 1.3 Expressive: TextScript and Slur
authorTrevor Daniels <t.daniels@treda.co.uk>
Mon, 29 Dec 2008 11:19:17 +0000 (11:19 +0000)
committerTrevor Daniels <t.daniels@treda.co.uk>
Mon, 29 Dec 2008 11:31:43 +0000 (11:31 +0000)
 - add snippet showing how to position TextScript inside
   a Slur (tbc after LSR update)

 - add snippet showing how this is used to create a
   delayed turn

Documentation/user/expressive.itely
input/new/creating-a-delayed-turn.ly [new file with mode: 0644]

index 17bc053ee089f7f54c45d0f4c0cda36fdd402f51..7f1fd966e0c163736b16bac53287715546d6fcb6 100644 (file)
@@ -119,6 +119,8 @@ may be manually placed above or below the staff, see
 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
 {controlling-the-vertical-ordering-of-scripts.ly}
 
+@lilypondfile[verbatim,lilyquote,texidoc,doctitle]
+{creating-a-delayed-turn.ly}
 
 @seealso
 Music Glossary:
@@ -583,6 +585,11 @@ g4( e c2)
 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
 {using-double-slurs-for-legato-chords.ly}
 
+@c TODO remove ignores after LSR update
+@ignore
+@lilypondfile[verbatim,lilyquote,texidoc,doctitle]
+{positioning-text-markups-inside-slurs}
+@end ignore
 
 @seealso
 Music Glossary:
diff --git a/input/new/creating-a-delayed-turn.ly b/input/new/creating-a-delayed-turn.ly
new file mode 100644 (file)
index 0000000..9716578
--- /dev/null
@@ -0,0 +1,26 @@
+\version "2.12.0"
+
+\header {
+  lsrtags = "expressive-marks, editorial-annotations, tweaks-and-overrides,
+  symbols-and-glyphs"
+  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 #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"
+}
+
+\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 {
+      \musicglyph #"accidentals.sharp"
+      \musicglyph #"scripts.turn"
+    }
+  }
+  d4.) c8
+}