+1.5.3.hwn1
+==========
+
+* midi2ly bugfixes: don't print ';' in .ly output.
+
+* small cleanup of input/bugs/
+
+* bugfix: nested grace notes; added input/regression/grace-nest.ly
+
+* Bugfix: add double alterations to keyAccidentalOrder (Mats)
+
+* Fixes for PostScript beams and stems.
+
1.5.2.hwn1
==========
--- /dev/null
+\header{
+texidoc="stripped version of trip.ly. upper staff is too short, lower too long"
+}
+\score{
+ \context PianoStaff \notes <
+ \context Staff = treble {
+ r1
+ r1
+ \bar "|."
+ }
+ \context Staff = bass {
+ r1
+ \context Staff {
+ \grace { c16 } c1
+ }
+ }
+ >
+ \paper { }
+}
Real stem_y = calc_stem_y_f (me, s, y, dy);
-#if 0 // doesn't play well with dvips
- if (Stem::get_direction (s) == Directional_element_interface::get (me))
- stem_y += Stem::get_direction (s)
- * gh_scm2double (me->get_grob_property ("thickness")) / 2;
-#endif
+ // doesn't play well with dvips
+ if (scm_definedp (ly_symbol2scm ("ps-testing"), SCM_UNDEFINED)
+ == SCM_BOOL_T)
+ if (Stem::get_direction (s) == Directional_element_interface::get (me))
+ stem_y += Stem::get_direction (s)
+ * gh_scm2double (me->get_grob_property ("thickness")) / 2;
/* caution: stem measures in staff-positions */
Real id = me->relative_coordinate (common, Y_AXIS)
% FIXME. translate to middle of box.
% Nice rectangle with rounded corners
-% FIXME: linewidth hardcoded. check: too round?
/draw_box % breapth width depth height
{
- %% FIXME: hardcoded
currentdict /testing known {
%% real thin lines for testing
/blot 0.005 def
blot 2 div sub /h exch def
blot 2 div sub /d exch def
-
- %% UGH huh?
- %% Where does this correction come from?
- %% Why don't we need this in x direction?
- h blot 2 div sub /h exch def
- d blot 2 div sub /d exch def
-
blot 2 div sub /w exch def
blot 2 div sub /b exch def
} bind def
% Nice beam with rounded corners
-% FIXME: linewidth hardcoded. check: too round?
/draw_beam % slope width thick
{
- %% FIXME: hardcoded
currentdict /testing known {
%% real thin lines for testing
/blot 0.005 def
0 setlinecap
1 setlinejoin
- blot 2 mul sub /t exch def
- blot 2 mul sub /w exch def
+ blot sub /t exch def
+ blot sub /w exch def
w mul /h exch def
- blot t 2 div neg moveto
+ blot 2 div t 2 div neg moveto
w h rlineto
0 t rlineto
w neg h neg rlineto