%
% Functions for direct and embedded PostScript
+
/blot-diameter { lilypondpaperblotdiameter } bind def
/set_tex_dimen {
cvr def
} bind def
+
+
/euclidean_length
{
1 copy mul exch 1 copy mul add sqrt
} bind def
% Nice beam with rounded corners
-/draw_beam % slope width thick
+/draw_beam % slope width thick blot
{
- currentdict /testing known {
- %% real thin lines for testing
- /blot 0.005 def
- }{
- /blot blot-diameter def
- } ifelse
+ /blot exch def
blot setlinewidth
0 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
stroke
} bind def
+%end music-drawing-routines.ps