]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/creating-a-delayed-turn.ly
6df9883bfa2e0c895a098c11db1a1e1299fb4527
[lilypond.git] / Documentation / snippets / new / creating-a-delayed-turn.ly
1 \version "2.18.0"
2
3 \header {
4   lsrtags = "editorial-annotations, expressive-marks, tweaks-and-overrides"
5
6   texidoc = "
7 Creating a delayed turn, where the lower note of the turn uses the
8 accidental, requires several overrides.  The
9 @code{outside-staff-priority} property must be set to @code{#f}, as
10 otherwise this would take precedence over the
11 @code{avoid-slur property}.  Changing the fractions @code{2/3} and
12 @code{1/3} adjusts the horizontal position.
13 "
14   doctitle = "Creating a delayed turn"
15 }
16
17 \relative c'' {
18   c2*2/3 ( s2*1/3\turn d4) r
19   <<
20     { c4.( d8) }
21     { s4 s\turn }
22   >>
23   \transpose c d \relative c'' <<
24     { c4.( d8) }
25     {
26       s4
27       \once \set suggestAccidentals = ##t
28       \once \override AccidentalSuggestion.outside-staff-priority = ##f
29       \once \override AccidentalSuggestion.avoid-slur = #'inside
30       \once \override AccidentalSuggestion.font-size = -3
31       \once \override AccidentalSuggestion.script-priority = -1
32       \single \hideNotes
33       b8-\turn \noBeam
34       s8
35     }
36   >>
37 }