%
% Functions for direct and embedded PostScript
-/blot-diameter { lilypondpaperblotdiameter } bind def
-% fucking redhat xdvi patch.
-/skeel { scale } bind def
+/blot-diameter { lilypondpaperblotdiameter } bind def
/set_tex_dimen {
cvr def
} bind def
+
+
/euclidean_length
{
1 copy mul exch 1 copy mul add sqrt
} ifelse
} bind def
+
+/draw_symmetric_x_triangle % h w th
+{
+ setlinewidth
+ 0 0 moveto
+ dup 0 lineto
+ 2 div
+ exch lineto
+ 0 0 lineto
+ stroke
+} bind def
+
/draw_round_box % breapth width depth height blot
{
/blot exch def
} ifelse
} bind def
+/draw_polygon % x(n) y(n) x(n-1) y(n-1) ... x(1) y(1) n blot
+{
+ /blot exch def
+
+ 0 setlinecap
+ blot setlinewidth
+ 1 setlinejoin
+
+ /points exch def
+ 2 copy
+ moveto
+ 1 1 points {pop lineto} for
+ currentdict /testing known {
+ %% outline only, for testing:
+ stroke
+ }{
+ closepath gsave stroke grestore fill
+ } ifelse
+} bind def
+
/draw_repeat_slash % width slope thick
{
1 setlinecap
% this is for drawing slurs.
/draw_bezier_sandwich % thickness controls
-{
+{
+ % round ending and round beginning
+ 1 setlinejoin 1 setlinecap
setlinewidth
moveto
curveto
lineto
- curveto
+ curveto
+ closepath
gsave
fill
grestore