X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Fottava.ly;h=548d5b74c8cb5a7a33d3cf86227e03b0919c34aa;hb=e90f0536f9be39ada0bef0aeb0d275dec3b2fb5b;hp=0a32a084ec32eaafa3d6bada2b823e70e68f7302;hpb=70048d99398924e7ca0eb481925145ec243700c5;p=lilypond.git diff --git a/input/regression/ottava.ly b/input/regression/ottava.ly index 0a32a084ec..548d5b74c8 100644 --- a/input/regression/ottava.ly +++ b/input/regression/ottava.ly @@ -1,25 +1,71 @@ \header { -texidoc = "Ottava brackets are supported, through the -use of the scheme function @code{set-octavation}. + texidoc = "Ottava brackets are supported, through the +use of the music function @code{\\ottava}. + +The spanner should go below a staff for 8va bassa, and the ottavation +markup can be tuned with @code{Staff.ottavation}. + " } -\version "1.9.4" +\version "2.14.0" + +%% . There must be a minimum distance between the octavation line and the +%% topmost staff line, taking into account the height of the closing +%% vertical dashed line. + % +%% . Octavation lines broken across staves must always start with `8va' +%% (or something similar). + % +%% . The `8va' should be slightly offset to the left. + % +%% . The final vertical dashed line of the octavation line should be offset +%% to the right. + % +%% . Octavation lines for `8va bassa' must be below the staff, not above. + % +%% . The `8va bassa' string is far too long for short octavation lines. +%% LilyPond should select between `8va bassa', `8ba', and `8', depending +%% on the available horizontal space (and the octavation style selected +%% by the user). The same holds for `8va' and `15ma'. + + +\layout { ragged-right = ##t} -\paper { raggedright = ##t} -\score { - \notes\relative c''' \notes { +\relative c''' { a b c a - #(set-octavation 1) + \ottava #1 a b c a - #(set-octavation 0) - - a #(set-octavation 1) b - #(set-octavation 0) + \ottava #0 + \ottava #2 + a b c a + \ottava #0 + \ottava #-1 + a b c a + \ottava #0 + \break + a, + \ottava #1 + \set Staff.ottavation = #"8" + b + \ottava #0 c a + \ottava #-1 + \set Staff.ottavation = \markup { \concat { 8 \tiny \raise #0.8 vb }} + b a g + \ottava #0 + c + \ottava #-1 + \set Staff.ottavation = #"8" + c,,16 + \ottava #0 + c'16 + \ottava #-1 + \set Staff.ottavation = #"8" + g,,16 } -} +