]> git.donarmstrong.com Git - lilypond.git/commitdiff
patch::: 1.1.5.jcn1: pl5 fixes
authorJan Nieuwenhuizen <janneke@gnu.org>
Fri, 13 Nov 1998 20:06:32 +0000 (21:06 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Fri, 13 Nov 1998 20:06:32 +0000 (21:06 +0100)
pl5.jcn1
- tex/lily-ps-defs.tex fixes
- lily.ps

********
1.1.5

NEWS
VERSION
buildscripts/set-lily.sh
ps/lily.ps [new file with mode: 0644]
tex/lily-ps-defs.tex

diff --git a/NEWS b/NEWS
index 7c1e93e25395120e63ee4fec015e6eee6a780bbf..8758586337e5ea1a4e88599c81c2057bb9fa857f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,10 @@
+pl5.jcn1
+       - tex/lily-ps-defs.tex fixes
+       - lily.ps 
+
+********
+1.1.5
+
 pl4.jcn4
        - fixes; preludes, finger
 
diff --git a/VERSION b/VERSION
index b7f6e05badfa8bed77fc0dfcb3faf26e6b3bcdd7..112493228421c8ebf667fcf8720c1e1124aa9af0 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -2,7 +2,7 @@ PACKAGE_NAME=LilyPond
 MAJOR_VERSION=1
 MINOR_VERSION=1
 PATCH_LEVEL=5
-MY_PATCH_LEVEL=
+MY_PATCH_LEVEL=jcn1
 
 # use the above to send patches: MY_PATCH_LEVEL is always empty for a
 # released version.
index c1db5b84086059528bd21556453bdb46ab7e035a..c4ce39554622968bd62789d33fa66c82a029fd9e 100755 (executable)
@@ -25,7 +25,7 @@ if [ "x$LILYINCLUDE" = "x" ]; then
        fi
        LILYINCLUDE=$LILYPOND_SOURCEDIR/init:$LILYPOND_SOURCEDIR/input:$LILYPOND_SOURCEDIR/mf/out
        MFINPUTS=$MFINPUTS:$LILYPOND_SOURCEDIR/mf
-       TEXINPUTS=$TEXINPUTS:$LILYPOND_SOURCEDIR/mf/out
+       TEXINPUTS=$TEXINPUTS:$LILYPOND_SOURCEDIR/mf/out:$LILYPOND_SOURCEDIR/ps:$LILYPOND_SOURCEDIR/tex
        export LILYINCLUDE MFINPUTS TEXINPUTS
        GS_LIB=$HOME/usr/src/lilypond/ps
        GS_FONTPATH=$HOME/usr/src/lilypond/mf/out
@@ -34,7 +34,7 @@ if [ "x$LILYINCLUDE" = "x" ]; then
        cat <<EOF
        LILYINCLUDE=$LILYPOND_SOURCEDIR/init:$LILYPOND_SOURCEDIR/mf/out
        MFINPUTS=\$MFINPUTS:\$LILYPOND_SOURCEDIR/mf
-       TEXINPUTS=\$TEXINPUTS:\$LILYPOND_SOURCEDIR/mf/out
+       TEXINPUTS=$TEXINPUTS:$LILYPOND_SOURCEDIR/mf/out:$LILYPOND_SOURCEDIR/ps:$LILYPOND_SOURCEDIR/tex
        export LILYINCLUDE MFINPUTS TEXINPUTS
 EOF
 
diff --git a/ps/lily.ps b/ps/lily.ps
new file mode 100644 (file)
index 0000000..c0b92bd
--- /dev/null
@@ -0,0 +1,184 @@
+%!PS-Adobe-1.0: lily.ps
+%
+%staffrulethickness /stafflinethickness exch def
+%
+% round cappings
+1 setlinecap
+%
+/draw_beam % width slope thick
+{
+        2 div /beam_thick exch def
+        /beam_slope exch def
+        /beam_wd exch def
+        beam_slope beam_wd mul /beam_ht exch def
+        0 beam_thick neg moveto 
+        beam_wd beam_ht rlineto 
+        0 beam_thick 2 mul rlineto
+        0 beam_thick lineto
+        closepath fill
+} bind def
+%
+/draw_decresc
+{
+       stafflinethickness setlinewidth
+       /cresc_cont exch def
+       /cresc_ht exch def
+       /cresc_wd exch def
+%
+       cresc_wd cresc_cont moveto
+       0 cresc_ht lineto
+       stroke
+       cresc_wd cresc_cont neg moveto
+       0 cresc_ht neg lineto
+       stroke
+} bind def
+%
+/draw_cresc
+{
+       stafflinethickness setlinewidth
+       /cresc_cont exch def
+       /cresc_ht exch def
+       /cresc_wd exch def
+%
+       0 cresc_cont moveto
+       cresc_wd cresc_ht lineto
+       stroke
+       0 cresc_cont neg moveto
+       cresc_wd cresc_ht neg lineto
+       stroke
+} bind def
+%
+/lily_distance 
+{
+       1 copy mul exch 1 copy mul add sqrt
+} bind def
+%
+stafflinethickness 1.2 mul /plet_t exch def
+/draw_plet
+{
+       plet_t setlinewidth
+% urg: the only Level-2 PS, check effect in print
+%      true setstrokeadjust
+       1 setlinecap
+       1 setlinejoin
+       /dir exch def
+       /plet_dy exch def
+       /plet_dx exch def
+       staffheight 2 div /plet_gapx exch def
+       plet_dy plet_dx div plet_gapx mul /plet_gapy exch def
+       staffheight 4 div dir mul /plet_h exch def
+%
+       0 0 moveto
+       0 plet_h lineto 
+       plet_dx plet_gapx sub 2 div 
+               plet_dy plet_gapy sub 2 div plet_h add lineto
+       plet_dx plet_gapx add 2 div 
+               plet_dy plet_gapy add 2 div plet_h add moveto
+       plet_dx plet_dy plet_h add lineto
+       plet_dx plet_dy lineto
+       stroke
+} bind def
+%
+/draw_slur
+{
+       stafflinethickness setlinewidth
+       moveto
+       curveto
+       lineto
+       curveto
+       gsave
+       fill
+       grestore
+       stroke
+} bind def
+%
+/draw_dashed_slur
+{
+       1 setlinecap
+       1 setlinejoin
+       setdash
+       setlinewidth
+       moveto
+       curveto
+       stroke
+} bind def
+%
+staffheight 4 div /interline exch def
+%
+/bracket_traject
+{
+  /traject_ds exch def
+  /traject_alpha exch def
+  traject_ds traject_alpha sin mul add
+  exch
+  traject_ds traject_alpha cos mul add
+  exch
+} bind def
+%
+interline 3 div /bracket_b exch def
+interline 2 mul /bracket_w exch def
+stafflinethickness 2 mul /bracket_t exch def
+interline 1.5 mul /bracket_v exch def
+bracket_v /bracket_u exch def
+50 /bracket_alpha exch def
+%
+/half_bracket
+{
+%6
+       0 0
+%5a
+       bracket_b bracket_v add bracket_h bracket_t sub bracket_u add
+       bracket_alpha bracket_v -0.15 mul bracket_traject
+%5b
+       1 bracket_h
+       0 bracket_v 0.5 mul bracket_traject
+%5c
+       0 bracket_h
+%4a
+       bracket_b bracket_h bracket_t sub
+       0 bracket_v 0.4 mul bracket_traject
+%4b
+       bracket_b bracket_v add bracket_h bracket_t sub bracket_u add
+       bracket_alpha bracket_v -0.25 mul bracket_traject
+%4c
+       bracket_b bracket_v add bracket_h bracket_t sub bracket_u add
+%3
+       bracket_b bracket_h bracket_t sub
+%2
+       bracket_b 0
+%1
+       0 0
+} bind def
+%
+/draw_half_bracket {
+       moveto
+       lineto
+       lineto
+       curveto
+       curveto
+       lineto
+       gsave
+       fill
+       grestore
+} bind def
+%
+/draw_bracket % height
+{
+       2 div bracket_b add /bracket_h exch def
+       bracket_t setlinewidth
+% urg: the only Level-2 PS, check effect in print
+%      true setstrokeadjust
+       1 setlinecap
+       1 setlinejoin
+       half_bracket
+       20 copy
+       1 -1 scale
+       draw_half_bracket
+       stroke
+       1 -1 scale
+% ugh, ugh:
+       0.05 0 translate
+       draw_half_bracket
+       stroke
+} bind def
+%
index 7ddeda4f7692eba6c235ab89c762a5c6027f7aae..32e3d9bafa521ff1fd55a3ec28ef984868b3cdc3 100644 (file)
 % ``compiles'' operatorname binding in the body of foo, making
 % the code faster, and more reliable (less flexible)
 
+%must come before PSTeXDimen
+\special{!
+% PS helper: convert (0.2pt) to the token 0.2
+/settexdimen
+{
+        /thestring exch def
+        thestring 0 thestring length 2 sub
+        getinterval
+        token
+        pop exch pop 
+} def
+%
+/deftexdimen
+{
+        settexdimen
+        def     
+} def
+}
 % transplant a TeX dimension into the PS output.
 \def\PSsetTeXdimen#1{\expandafter\special{! /#1 (\the\csname #1\endcsname) deftexdimen}}
+% must come before lily.ps
+\PSsetTeXdimen{stafflinethickness}
+\PSsetTeXdimen{staffheight}
 {%
    \def\par{ }%         %Ugh.  Don't try this at home, kids!
    % neat file-include trick by Piet van Oostrum <piet@cs.uu.nl>
 }
 
 
-\special{!
-% PS helper: convert (0.2pt) to the token 0.2
-/settexdimen
-{
-        /thestring exch def
-        thestring 0 thestring length 2 sub
-        getinterval
-        token
-        pop exch pop 
-} def
-%
-/deftexdimen
-{
-        settexdimen
-        def     
-} def
-}
 
 \def\turnOnPostScript{%
         \PSsetTeXdimen{stafflinethickness}