]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/clefs-commonly-tweaked-properties.ly
Fix makelsr.py and update LSR
[lilypond.git] / input / lsr / clefs-commonly-tweaked-properties.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 %% Tags: pitches, staff-notation, editorial-and-educational-use, tweaks-and-overrides
4 \version "2.11.35"
5
6 \header { texidoc = "
7 The command @code{\\clef \"treble_8\"} is equivalent to setting
8 @code{clefGlyph}, @code{clefPosition} (which controls the Y position of
9 the clef), @code{middleCPosition} and @code{clefOctavation}.  A clef is
10 printed when any of these properties are changed.
11
12
13 Note that changing the glyph, the position of the clef, or the
14 octavation, does not in itself change the position of subsequent notes
15 on the staff: the position of middle C must also be specified to do
16 this. The positional parameters are relative to the staff centre line,
17 positive numbers displacing upwards, counting 1 for each line and
18 space. The clefOctavation value would normally be set to 7, -7, 15 or
19 -15, but other values are not invalid.
20
21
22 When a clef change takes place at a line break the new clef symbol is
23 printed at both the end of the previous line and the beginning of the
24 new line by default. If the warning clef at the end of the previous
25 line in not required it can be suppressed by setting the
26 explicitClefVisibility Staff property to the value  @code{
27 end-of-line-invisible: \\set Staff.explicitClefVisibility =
28 #end-of-line-invisible  } The default behaviour can be recovered with 
29 @code{\\unset Staff.explicitClefVisibility}
30 % begin verbatim
31
32 The following examples show the possibilities when setting these
33 properties manually. On the first line, the manual changes preserve the
34 standard relative positioning of clefs and notes, whereas on the second
35 line, they do not. 
36 " }
37
38 {
39            % The default treble clef
40            c'4
41            % The standard bass clef
42            \set Staff.clefGlyph = #"clefs.F"
43            \set Staff.clefPosition = #2
44            \set Staff.middleCPosition = #6
45            c'4
46            % The baritone clef
47            \set Staff.clefGlyph = #"clefs.C"
48            \set Staff.clefPosition = #4
49            \set Staff.middleCPosition = #4
50            c'4
51            % The standard choral tenor clef
52            \set Staff.clefGlyph = #"clefs.G"
53            \set Staff.clefPosition = #-2
54            \set Staff.clefOctavation = #-7
55            \set Staff.middleCPosition = #1
56            c'4
57            % A non-standard clef
58            \set Staff.clefPosition = #0
59            \set Staff.clefOctavation = #0
60            \set Staff.middleCPosition = #-4
61            c'4 \break
62
63            % The following clef changes do not preserve
64            % the normal relationship between notes and clefs:
65
66            \set Staff.clefGlyph = #"clefs.F"
67            \set Staff.clefPosition = #2
68            c'4
69            \set Staff.clefGlyph = #"clefs.G"
70            c'4
71            \set Staff.clefGlyph = #"clefs.C"
72            c'4
73            \set Staff.clefOctavation = #7
74            c'4
75            \set Staff.clefOctavation = #0
76            \set Staff.clefPosition = #0
77            c'4
78            \set Staff.middleCPosition = #4
79            c'4
80          }