]> git.donarmstrong.com Git - lilypond.git/blob - ly/params.ly
release: 1.3.92
[lilypond.git] / ly / params.ly
1 % params.ly
2 % generic paper parameters
3
4 %{
5
6 TODO:
7
8 * cleanup
9 * use elt properties, iso. paper variables.
10
11 %}
12
13
14 papersizename = \papersize ;
15
16 paperfile = \papersize + ".ly";
17 % paperfile = "a4.ly";
18 \include \paperfile;
19 \include "paper.ly";
20
21 staffspace = \staffheight / 4.0;
22 stafflinethickness = \staffspace / 10.0;
23
24 %{
25 The space taken by a note is determined by the formula 
26
27    SPACE = arithmetic_multiplier * ( C + log2 (TIME) ))
28
29 where TIME is the amount of time a note occupies.  The value of C is
30 chosen such that the smallest space within a measure is
31 arithmetic_basicspace:
32
33   C = arithmetic_basicspace - log2 (mininum (SHORTEST, 1/8)) 
34
35 The smallest space is the one following the shortest note in the
36 measure, or the space following a hypothetical 1/8 note.  Typically
37 arithmetic_basicspace is set to a value so that the shortest note
38 takes about two noteheads of space (ie, is followed by a notehead of
39 space):
40
41    2*quartwidth = arithmetic_multiplier * ( C + log2 (SHORTEST) ))
42
43    { using: C = arithmetic_basicspace - log2 (mininum (SHORTEST, 1/8)) }
44    { assuming: SHORTEST <= 1/8 }
45
46                = arithmetic_multiplier *
47                ( arithmetic_basicspace - log2 (SHORTEST) + log2 (SHORTEST) )
48
49                = arithmetic_multiplier * arithmetic_basicspace
50
51    { choose: arithmetic_multiplier = 1.0*quartwidth (why?)}
52
53                = quartwidth * arithmetic_basicspace
54
55    =>          
56
57    arithmetic_basicspace = 2/1 = 2
58
59 If you want to space your music wider, use something like:
60
61    arithmetic_basicspace = 4.;
62
63 %}
64 % We use 0.9*\quartwidth, because 1.0 seems to wide.
65 % quartwidth == 1.32 * staffspace
66 % We don't adjust arithmetic_basicspace accordingly (why not?)
67 arithmetic_multiplier = 0.9 * 1.32 * \staffspace ;
68 arithmetic_basicspace = 2.0;
69
70
71
72 % URG: the magic constants for area asymmetry
73 bezier_pct_c0 = -0.2;
74 bezier_pct_c3 = 0.000006;
75 bezier_pct_out_max = 0.8;
76 bezier_pct_in_max = 1.2;
77 bezier_area_steps = 1.0;
78
79
80 % vertical space between lines of text.
81 line_kern = \staffspace;
82
83
84 % optical correction amount.
85 stemSpacingCorrection = 0.5*\staffspace;
86
87
88 %{
89  relative strength of space following breakable columns (eg. prefatory matter)
90  %}
91 breakable_column_space_strength = 2.0; 
92
93 % space after inline clefs and such get this much stretched
94 decrease_nonmus_spacing_factor = 1.0 ;
95
96 %{
97  space before musical columns (eg. taken by accidentals) get this much
98  stretched when they follow a musical column, in absence of grace notes.
99
100  0.0 means no extra space (accidentals are ignored)
101 %}
102 musical_to_musical_left_spacing_factor = 0.4;
103
104 %{
105  stretch space this much if there are grace notes before the column
106 %}
107 before_grace_spacing_factor = 1.2;
108
109 %{
110 If columns do not have spacing information set, set it to this much
111 %}
112 loose_column_distance = 2.0 * \staffspace;
113
114 %{
115 Relative cost of compressing (vs. stretching).  Increasing this
116 will cause scores to be set looser
117 .
118 %}
119
120 compression_energy_factor = 0.6;
121
122 \translator { \NoteNamesContext }
123 \translator { \ScoreContext }
124 \translator { \ChoirStaffContext}
125 \translator { \GraceContext}
126 \translator { \RhythmicStaffContext}
127 \translator { \StaffContext }
128 \translator { \VoiceContext}
129 \translator { \StaffGroupContext }
130 \translator { \ChordNameContext }
131 \translator { \ChordNameVoiceContext}
132 \translator { \GrandStaffContext}
133 \translator { \LyricsContext }
134 \translator { \ThreadContext}
135 \translator { \PianoStaffContext}
136 \translator { \LyricsVoiceContext }
137
138
139
140
141
142