]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/adding-an-ottava-marking-to-a-single-voice.ly
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[lilypond.git] / Documentation / snippets / adding-an-ottava-marking-to-a-single-voice.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.18.0"
8
9 \header {
10   lsrtags = "pitches, tweaks-and-overrides"
11
12   texidoc = "
13 If you have more than one voice on the staff, setting octavation in one
14 voice will transpose the position of notes in all voices for the
15 duration of the ottava bracket. If the ottavation is only intended to
16 apply to one voice, the middleCPosition and ottava bracket may be set
17 explicitly.  In this snippet, the bass clef usually has middleCPosition
18 set to 6, six positions above the center  line, so in the 8va portion
19 middleCPosition is 7 positions (one octave) higher still.
20
21 "
22   doctitle = "Adding an ottava marking to a single voice"
23 } % begin verbatim
24
25 {
26   \clef bass
27   << { <g d'>1~ q2 <c' e'> }
28   \\
29     {
30       r2.
31       \set Staff.ottavation = #"8vb"
32       \once \override Staff.OttavaBracket.direction = #DOWN
33       \set Voice.middleCPosition = #(+ 6 7)
34       <b,,, b,,>4 ~ |
35       q2
36       \unset Staff.ottavation
37       \unset Voice.middleCPosition
38       <c e>2
39     }
40   >>
41 }