]> git.donarmstrong.com Git - lilypond.git/commitdiff
patch::: 1.3.133.jcn2
authorJan Nieuwenhuizen <janneke@gnu.org>
Wed, 28 Feb 2001 15:28:06 +0000 (16:28 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Wed, 28 Feb 2001 15:28:06 +0000 (16:28 +0100)
1.3.133.jcn2
============

* Easy-play bugfixes: don't do showpage for each notehead, output
staff-symbol first, moved to lily.ps.

* Bugfix: don't print so many decimals in ps output.

* Bugfix for refman example.

CHANGES
Documentation/user/refman.itely
VERSION
lily/include/lily-guile.hh
lily/line-of-score.cc
lily/midi-walker.cc
ps/lily.ps
scm/ps.scm
scm/tex.scm

diff --git a/CHANGES b/CHANGES
index cae7ddb46c6f9bb46a51c91a6b62d3acff9dfc0c..b3416049fd473016336bede5db2c2b0175e2cd57 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,13 @@
+1.3.133.jcn2
+============
+
+* Easy-play bugfixes: don't do showpage for each notehead, output
+staff-symbol first, moved to lily.ps.
+
+* Bugfix: don't print so many decimals in ps output.
+
+* Bugfix for refman example.
+
 1.3.133.jcn1
 ============
 
index 363985a0c726f25fe39ded92d14bacae158d1e77..cca14f14a8ec2695b3164022405665a153b80351 100644 (file)
@@ -2525,6 +2525,7 @@ If you just want the splitting of Threads and setting of directions, and
 not the textual markings, you may set the property @var{soloADue} to false:
 
 @lilypond[verbatim,singleline]
+\score {
   \context Staff <
     \context Voice=one \partcombine Voice
       \context Thread=one \notes\relative c'' {
@@ -2540,6 +2541,7 @@ not the textual markings, you may set the property @var{soloADue} to false:
       soloADue = ##f
     }
   }
+}
 @end lilypond
 
 There are a number of other properties that you can use to tweak the
diff --git a/VERSION b/VERSION
index 922f0005d031d7f407b2ebe12115d2dec3db2fc0..67f82fc622033f0d8eb78a4ab4270930e35e8931 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -2,7 +2,7 @@ PACKAGE_NAME=LilyPond
 MAJOR_VERSION=1
 MINOR_VERSION=3
 PATCH_LEVEL=133
-MY_PATCH_LEVEL=jcn1
+MY_PATCH_LEVEL=jcn2
 
 # use the above to send patches: MY_PATCH_LEVEL is always empty for a
 # released version.
index ebb7e70c3fc44ebd05b1e2b98ed1267a5b28b812..d2cf5074eec1a7ed38cca1b560e9dfc9cc56e4e8 100644 (file)
@@ -49,6 +49,7 @@ SCM ly_parse_scm (char const* s, int* n);
 SCM ly_quote_scm (SCM s);
 SCM ly_type (SCM);
 bool type_check_assignment (SCM val, SCM sym,  SCM type_symbol) ;
+SCM ly_number2string (SCM s);
 
 /*
   display and print newline.
index 3a1222d833a5f2fc805dcf1e8e2923c3ab2250b0..924b2c9ec4c793e87e806d920c61175d0a6b1cd1 100644 (file)
@@ -323,8 +323,18 @@ Line_of_score::post_processing (bool last_line)
   
   /*
     all elements.
-   */ 
+   */
+#if 0
   for (SCM s = get_grob_property ("all-elements"); gh_pair_p (s); s = gh_cdr (s))
+#else
+    /*
+      Output the staff-symbol (the last element in this list) first,
+      this fixes easy-play.
+      Maybe scm_reverse () is too inefficient, we could cache/remove
+      last element from list traversal above.
+     */
+  for (SCM s = scm_reverse (get_grob_property ("all-elements")); gh_pair_p (s); s = gh_cdr (s))
+#endif
     {
       Grob *sc = unsmob_grob (gh_car (s));
       Molecule *m = sc->get_molecule ();
index fe67eaf0fa714d46f41f3978cef6559bf80303f8..c63e046fde7337afd7fa55658540c76dbf2f43ca 100644 (file)
@@ -61,7 +61,7 @@ Midi_walker::do_start_note (Midi_note* note_p)
               new stop note wins */
              stop_note_queue[i].ignore_b_ = true;
              
-#if 0  // Ugh: this fixes stuck notes bug, but breaks most everything else?
+#if 1
              /* don't replay start note, */
              play_start = false;
              break;
index c94a3706f7ae80f3dbfd2b99574bb5e61540f80d..5956635e65a84257bf09f92c1653d846e39c0925 100644 (file)
        stroke 
 } bind def 
 
+/draw_ez_ball % ch letter_col ball_col font
+{
+       % font
+       findfont 0.7 scalefont setfont 
+       0.1 setlinewidth
+       0 0 moveto
+       0 setgray
+       0.5 0 0.5 0 360 arc closepath fill stroke
+       % ball_col
+       1 eq {
+               0.01 setlinewidth
+               1 setgray
+               0.5 0 0.4 0 360 arc closepath
+               fill stroke
+       } if 
+       % letter_col
+       setgray
+       % 0.25 is empiric centering. Change to taste
+       0.25 -0.25 moveto
+       % ch
+       show
+} bind def
+
 /draw_volta % h w thick vert_start vert_end 
 { 
        /vert_end exch def 
index d4442ecb39176ef2320d77399a105af4c018b4d8..d17843731e1ae15371cef24c0f2658d18e842233 100644 (file)
@@ -35,7 +35,7 @@
            (ly-warn (string-append
                      "Programming error: No such font known "
                      (car name-mag-pair) " "
-                     (number->string (cdr name-mag-pair))
+                     (ly-number->string (cdr name-mag-pair))
                      ))
            
            "") ; issue no command        
@@ -48,7 +48,7 @@
        " { /"
        (car name-mag)
        " findfont "
-       "12 " (number->string (cdr name-mag)) " mul "
+       "12 " (ly-number->string (cdr name-mag)) " mul "
        "lilypondpaperoutputscale div scalefont setfont } bind def "
        "\n"))
 
   (define (dashed-slur thick dash l)
     (string-append 
      (apply string-append (map control->string l)) 
-     (number->string thick) 
+     (ly-number->string thick) 
      " [ "
-     (number->string dash)
+     (ly-number->string dash)
      " "
-     (number->string (* 10 thick))     ;UGH.  10 ?
+     (ly-number->string (* 10 thick))  ;UGH.  10 ?
      " ] 0 draw_dashed_slur"))
 
   (define (dashed-line thick on off dx dy)
     (string-append 
-     (number->string dx)
+     (ly-number->string dx)
      " "
-     (number->string dy)
+     (ly-number->string dy)
      " "
-     (number->string thick) 
+     (ly-number->string thick) 
      " [ "
-     (number->string on)
+     (ly-number->string on)
      " "
-     (number->string off)
+     (ly-number->string off)
      " ] 0 draw_dashed_line"))
 
   (define (decrescendo thick w h cont)
   
   (define (invoke-dim1 s d) 
     (string-append
-     (number->string (* d  (/ 72.27 72))) " " s ))
+     (ly-number->string (* d  (/ 72.27 72))) " " s ))
 
   (define (placebox x y s) 
     (string-append 
-     (number->string x) " " (number->string y) " {" s "} placebox "))
+     (ly-number->string x) " " (ly-number->string y) " {" s "} placebox\n"))
 
   (define (bezier-sandwich l thick)
     (string-append 
      (apply string-append (map control->string l))
-     (number->string  thick)
+     (ly-number->string  thick)
      " draw_bezier_sandwich"))
 
   (define (start-line height)
@@ -191,26 +191,12 @@ lilypondpaperoutputscale lilypondpaperoutputscale scale
   (define (unknown) 
     "\n unknown\n")
 
-;; note heads with letters.
   (define (ez-ball ch letter-col ball-col)
-    (string-append "
-/Helvetica-Bold findfont
-0.7 scalefont 
-setfont 
-0.1 setlinewidth  
- 0 0 moveto
-0 setgray
-0.5 0 0.5 0 360  arc
-closepath "
-                  (if (equal? ball-col 0) " fill " " stroke ")
-                  (number->string letter-col)
-                  "
-setgray
-% 0.25 is empiric centering. Change to taste
-0.25 -0.25 moveto
- (" ch ") show
-showpage ")
-    )
+    (string-append
+     " (" ch ") "
+     (numbers->string (list letter-col ball-col))
+     " /Helvetica-Bold " ;; ugh
+     " draw_ez_ball"))
 
   (define (define-origin a b c ) "")
   (define (no-origin) "")
index 499b2efdd3545d1486ffe259189896a51669e686..bbb45d455026f2d376e221e1a1ec274c1d7320bf 100644 (file)
@@ -30,7 +30,7 @@
            (ly-warn (string-append
                      "Programming error: No such font known "
                      (car name-mag-pair) " "
-                     (number->string (cdr name-mag-pair))
+                     (ly-number->string (cdr name-mag-pair))
                      ))
            "") ; issue no command
          (string-append "\\" (cddr c)))
@@ -64,7 +64,7 @@
      "\\font\\" command "="
      (car name-mag)
      " scaled "
-     (number->string (inexact->exact (* 1000  (cdr name-mag))))
+     (ly-number->string (inexact->exact (* 1000  (cdr name-mag))))
      "\n"))
 
   (define (ez-ball c l b)
   (define (define-origin file line col)
     ; use this for column positions
     (if point-and-click
-     (string-append "\\special{src:" (number->string line) ":"
-        (number->string col) " " file "}"
+     (string-append "\\special{src:" (ly-number->string line) ":"
+        (ly-number->string col) " " file "}"
         ;; arg, the clueless take over the mailing list...
 ;       "\\special{-****-These-warnings-are-harmless-***}"
 ;       "\\special{-****-PLEASE-read-http://appel.lilypond.org/wiki/index.php3?PostProcessing-****}"