From 627ed50d989a2bb00df96083ae7dcf0513115825 Mon Sep 17 00:00:00 2001 From: James Lowe Date: Tue, 24 Dec 2013 06:52:22 +0000 Subject: [PATCH] Doc: NR Updated Delayed Turn Snippet 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). (cherry picked from commit c9acfc85c7c2b0a434d1c563aba014294aab8559) --- .../snippets/creating-a-delayed-turn.ly | 36 ------------------ .../snippets/new/creating-a-delayed-turn.ly | 38 +++++++++++++++++++ 2 files changed, 38 insertions(+), 36 deletions(-) delete mode 100644 Documentation/snippets/creating-a-delayed-turn.ly create mode 100644 Documentation/snippets/new/creating-a-delayed-turn.ly diff --git a/Documentation/snippets/creating-a-delayed-turn.ly b/Documentation/snippets/creating-a-delayed-turn.ly deleted file mode 100644 index dba460587b..0000000000 --- a/Documentation/snippets/creating-a-delayed-turn.ly +++ /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 index 0000000000..52558e13d6 --- /dev/null +++ b/Documentation/snippets/new/creating-a-delayed-turn.ly @@ -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 + } + >> +} -- 2.39.2