]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/clefs-commonly-tweaked-properties.ly
LSR: update.
[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 \version "2.11.38"
4
5 \header {
6   lsrtags = "pitches, staff-notation, editorial-and-educational-use, tweaks-and-overrides"
7  texidoc = "
8 The command @code{\\clef \"treble_8\"} is equivalent to setting
9 @code{clefGlyph}, @code{clefPosition} (which controls the Y position of
10 the clef), @code{middleCPosition} and @code{clefOctavation}.  A clef is
11 printed when any of these properties are changed.
12
13
14 Note that changing the glyph, the position of the clef, or the
15 octavation, does not in itself change the position of subsequent notes
16 on the staff: the position of middle C must also be specified to do
17 this. The positional parameters are relative to the staff centre line,
18 positive numbers displacing upwards, counting 1 for each line and
19 space. The clefOctavation value would normally be set to 7, -7, 15 or
20 -15, but other values are not invalid.
21
22
23 When a clef change takes place at a line break the new clef symbol is
24 printed at both the end of the previous line and the beginning of the
25 new line by default. If the warning clef at the end of the previous
26 line is not required it can be suppressed by setting the
27 explicitClefVisibility Staff property to the value 
28 @code{end-of-line-invisible}. The default behaviour can be recovered
29 with  @code{\\unset Staff.explicitClefVisibility}.
30
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 % begin verbatim
38 {
39   % The default treble clef
40   c'1
41   % The standard bass clef
42   \set Staff.clefGlyph = #"clefs.F"
43   \set Staff.clefPosition = #2
44   \set Staff.middleCPosition = #6
45   c'
46   % The baritone clef
47   \set Staff.clefGlyph = #"clefs.C"
48   \set Staff.clefPosition = #4
49   \set Staff.middleCPosition = #4
50   c'
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'
57   % A non-standard clef
58   \set Staff.clefPosition = #0
59   \set Staff.clefOctavation = #0
60   \set Staff.middleCPosition = #-4
61   c' \break
62   
63   
64   % The following clef changes do not preserve
65   % the normal relationship between notes and clefs:
66   
67   \set Staff.clefGlyph = #"clefs.F"
68   \set Staff.clefPosition = #2
69   c'
70   \set Staff.clefGlyph = #"clefs.G"
71   c'
72   \set Staff.clefGlyph = #"clefs.C"
73   c'
74   \set Staff.clefOctavation = #7
75   c'
76   \set Staff.clefOctavation = #0
77   \set Staff.clefPosition = #0
78   c'
79   
80   % Here we go back to the normal clef:
81   
82   \set Staff.middleCPosition = #4
83   c'
84 }