From 7c4171990a3838ca387866e9a6c7e42439653004 Mon Sep 17 00:00:00 2001 From: Trevor Daniels Date: Mon, 29 Dec 2008 11:19:17 +0000 Subject: [PATCH] Docs: NR 1.3 Expressive: TextScript and Slur - 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 | 7 +++++++ input/new/creating-a-delayed-turn.ly | 26 ++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 input/new/creating-a-delayed-turn.ly diff --git a/Documentation/user/expressive.itely b/Documentation/user/expressive.itely index 17bc053ee0..7f1fd966e0 100644 --- a/Documentation/user/expressive.itely +++ b/Documentation/user/expressive.itely @@ -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 index 0000000000..971657874b --- /dev/null +++ b/input/new/creating-a-delayed-turn.ly @@ -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 +} -- 2.39.2