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