]> git.donarmstrong.com Git - lilypond.git/blobdiff - ly/params.ly
release: 1.1.54
[lilypond.git] / ly / params.ly
index 8762d5bb878e7e60394f7eaafd75490be499c30f..c224318fba209b4370c8c950b943bf56d34171fe 100644 (file)
@@ -12,6 +12,7 @@ interline = \staffheight / 4.0;
 % thickness of stafflines
 staffline = \interline / 10.0;
 
+% urg, need grace_ versions of these too?
 beam_thickness = 0.52 * (\interline - \staffline);
 interbeam = (2.0 * \interline + \staffline - \beam_thickness) / 2.0;
 interbeam4 = (3.0 * \interline - \beam_thickness) / 3.0;
@@ -27,12 +28,26 @@ stem_length1 = 5.;
 stem_length2 = 4.;
 stem_length3 = 3.;
 
+% urg.
+% if only these ugly arrays were scm,
+% we could override them in the Grace context
+grace_factor = 0.8;
+grace_stem_length0 = \stem_length0 * \grace_factor;
+grace_stem_length1 = \stem_length1 * \grace_factor;
+grace_stem_length2 = \stem_length2 * \grace_factor;
+grace_stem_length3 = \stem_length3 * \grace_factor;
+
 % only used for beams
 minimum_stem_length0 = 0.0 ; % not used
 minimum_stem_length1 = 3. ;
 minimum_stem_length2 = 2.5;
 minimum_stem_length3 = 2.0;
 
+grace_minimum_stem_length0 = 0.0 ; % not used
+grace_minimum_stem_length1 = \minimum_stem_length1 * \grace_factor;
+grace_minimum_stem_length2 = \minimum_stem_length2 * \grace_factor;
+grace_minimum_stem_length3 = \minimum_stem_length3 * \grace_factor;
+
 % stems in unnatural (forced) direction should be shortened,
 % according to [Roush & Gourlay].  Their suggestion to knock off
 % a whole staffspace seems a bit drastical: we'll do half.
@@ -42,6 +57,12 @@ forced_stem_shorten1 = \forced_stem_shorten0;
 forced_stem_shorten2 = \forced_stem_shorten1;
 forced_stem_shorten3 = \forced_stem_shorten2;
 
+% don't shorten grace stems, always up
+grace_forced_stem_shorten0 = 0.;
+grace_forced_stem_shorten1 = \grace_forced_stem_shorten0;
+grace_forced_stem_shorten2 = \grace_forced_stem_shorten1;
+grace_forced_stem_shorten3 = \grace_forced_stem_shorten2;
+
 % there are several ways to calculate the direction of a beam
 % 
 % * MAJORITY : number count of up or down notes
@@ -95,7 +116,6 @@ slur_rc_factor = 2.4;
 notewidth = (\quartwidth + \wholewidth) / 2.0;
 
 % ugh
-barsize = \staffheight;
 rulethickness = \staffline;
 
 gourlay_energybound = 100000.;
@@ -123,8 +143,10 @@ barthick_thick = 6.0* \staffline;
 barthick_thin = 1.6*\staffline;
 barthick_score = 1.6*\staffline;
 
+tuplet_spanner_gap = 2.0 * \interline;
 tuplet_thick = 1.0*\staffline;
 volta_thick = 1.6*\staffline;
+volta_spanner_height = 2.0 *\interline;
 
 % relative thickness of thin lines  1.6 : 1 : 0.8
 stemthickness = 0.8*\staffline;
@@ -133,6 +155,10 @@ rulethickness = \staffline;
 
 extender_height = 0.8*\staffline;
 
+hyphen_thickness = 0.05*\font_normal;
+hyphen_height = 0.2*\font_normal;
+hyphen_minimum_length = 0.25*\font_normal;
+
 % Multi-measure rests
 mmrest_x_minimum = 2.0*\staffheight;
 
@@ -147,8 +173,13 @@ restcollision_minimum_beamdist = 1.5;
 % deprecated!
 postBreakPadding = 0.0;
 
+% optical correction amount.
 stemSpacingCorrection = 0.5*\interline;
 
+
+
+
+
 \include "engraver.ly";