]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scm/define-markup-commands.scm (note-by-number): add "s" to
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 28 Nov 2004 00:47:15 +0000 (00:47 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 28 Nov 2004 00:47:15 +0000 (00:47 +0000)
"noteheads-" glyphname.

* lily/parser.yy (Generic_prefix_music): supply parser argument to
music function as well.

14 files changed:
ChangeLog
Documentation/topdocs/NEWS.texi
Documentation/user/programming-interface.itely
VERSION
lily/include/paper-system.hh
lily/lily-parser.cc
lily/multi-measure-rest-engraver.cc
lily/parser.yy
ly/music-functions-init.ly
mf/feta-test-generic.mf
scm/define-markup-commands.scm
scm/framework-ps.scm
scm/page-layout.scm
stepmake/stepmake/generic-targets.make

index ae8e10b5059eebe4b67af0197d63e5e164ce2599..7ab7307e708f1cea8f028ebb5594f6b6b2df8289 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2004-11-28  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * scm/define-markup-commands.scm (note-by-number): add "s" to
+       "noteheads-" glyphname.
+       * lily/parser.yy (Generic_prefix_music): supply parser argument to
+       music function as well.
+       
 2004-11-26  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
        * Documentation/user/changing-defaults.itely (Creating titles):
index b7219377bbf09fc052042e12591ffa735ca266e6..49616d8988aa631f1d6f05d1ac5b48898f27d152 100644 (file)
@@ -7,6 +7,11 @@
 @unnumbered New features in 2.5 since 2.4
 
 @itemize @bullet
+@item
+Pagebreaks can now be forced or forbidden after title blocks. This is
+achieved by setting @code{breakbefore} in the @code{\header} block to
+true or false.
+
 @item
 Shaped note heads. This feature has been sponsored by Jonathan Walther.
 
index 4bf22d5d03278f0c03582e3e68606775ef8d0c97..0f1c4280e03c35a731abc68791c65120def58481 100644 (file)
@@ -412,7 +412,7 @@ withPadding =
 @node Markup programmer interface
 @section Markup programmer interface
 
-@c Please rewrite the second sentence; I don't unÑ\95erstand its meaning. AS
+@c Please rewrite the second sentence; I don't unÃ\91Â\95erstand its meaning. AS
 Markups are implemented as special Scheme functions.  When applied with as
 arguments an output definition (@code{\layout} or @code{\paper}),
 and a list of properties and other arguments, produce a Stencil
@@ -506,7 +506,7 @@ In this case, @code{latin1} is the input encoding, which is set with
 the @code{\encoding} command.
 
 When the markup is converted to printable objects (Stencils), the
-raise markup is called as
+@code{raise-markup} function is called as
 
 @example
 (apply raise-markup
diff --git a/VERSION b/VERSION
index eaee5216d67e8a92e25b7979d7c3f17228b7447d..5935b6cb1153d984f8b2f9b1efbe64c5321ba85f 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1,6 +1,6 @@
 PACKAGE_NAME=LilyPond
 MAJOR_VERSION=2
 MINOR_VERSION=5
-PATCH_LEVEL=1
+PATCH_LEVEL=2
 MY_PATCH_LEVEL=
 
index 50b4b4404b5770decdbd2b7e01bb82c2744bc639..ca6b535eece2db123ab6ba3103572b9a41d8e579 100644 (file)
@@ -35,7 +35,7 @@ public:
   bool is_title () const;
   Real break_before_penalty () const;
 };
-
+//
 DECLARE_UNSMOB (Paper_system, paper_system);
 
 #endif /* PAPER_SYSTEM_HH */
index e401761ef3cf6fdb150a46cc96c807af0a5009cc..11bdf7fa6d4c93257d5781a2ad5cbaceb99ef4c9 100644 (file)
@@ -146,8 +146,9 @@ Lily_parser::parse_string (String ly_code)
   
   if (!define_spots_.is_empty ())
     {
-      define_spots_.top ().warning (_ ("Braces don't match"));
-      error_level_ = 1;
+      if (define_spots_.is_empty()
+         && !error_level_ )
+       programming_error ("Braces don't match, but error_level_ not set.");
     }
 
   error_level_ = error_level_ | lexer_->error_level_;
index 1e89a14eccc626f1654c54327833112daffb9d80..a1557679c7d6f9b429af72c9f3166ecca2e4d299 100644 (file)
@@ -152,7 +152,6 @@ Multi_measure_rest_engraver::stop_translation_timestep ()
 
   if (last_command_item_ &&  (mmrest_ || last_rest_))
     {
-          
       if (last_rest_)
        {
          add_bound_item (last_rest_, last_command_item_);
@@ -170,10 +169,7 @@ Multi_measure_rest_engraver::stop_translation_timestep ()
        }
     }
   
-  
-  
   Moment mp(robust_scm2moment (get_property ("measurePosition"),  Moment (0)));
-
   if (last_rest_)
     {
       last_rest_ = 0;
index d3f044b0344a36be860597fe01818736c0f871bf..7743e1bdc6e1bb3266c599750d0a99edd3e11cf3 100644 (file)
@@ -1102,7 +1102,8 @@ Generic_prefix_music:
 
                SCM m = SCM_EOL;
                if (ok)
-                       m = scm_apply_0 (func, scm_cdr ($1));
+                       m = scm_apply_0 (func, scm_cons (THIS->self_scm(),
+                                                        scm_cdr ($1)));
 
                if (unsmob_music (m))
                        {
index cf2a2745dea400225b9bf3d08f88b5a4347fffe6..c38e5a771c5dc2428ec9546454276cab3a178360 100644 (file)
@@ -1,10 +1,10 @@
 \version "2.4.0"
 
 
-applymusic = #(def-music-function (location func music) (procedure? ly:music?)
+applymusic = #(def-music-function (parser location func music) (procedure? ly:music?)
                (func music))
 
-oldaddlyrics = #(def-music-function (location music lyrics) (ly:music? ly:music?)
+oldaddlyrics = #(def-music-function (parser location music lyrics) (ly:music? ly:music?)
 
               (make-music 'LyricCombineMusic 
                           'origin location
@@ -14,46 +14,46 @@ grace = #(def-grace-function startGraceMusic stopGraceMusic)
 acciaccatura = #(def-grace-function startAcciaccaturaMusic stopAcciaccaturaMusic)
 appoggiatura = #(def-grace-function startAppoggiaturaMusic stopAppoggiaturaMusic)
 
-partcombine = #(def-music-function (location part1 part2) (ly:music? ly:music?)
+partcombine = #(def-music-function (parser location part1 part2) (ly:music? ly:music?)
                 (make-part-combine-music (list part1 part2)))
 
-autochange = #(def-music-function (location music) (ly:music?)
+autochange = #(def-music-function (parser location music) (ly:music?)
                (make-autochange-music music))
 
-applycontext = #(def-music-function (location proc) (procedure?)
+applycontext = #(def-music-function (parser location proc) (procedure?)
                  (make-music 'ApplyContext 
                    'origin location
                    'procedure proc))
 
-displayMusic = #(def-music-function (location music) (ly:music?)
+displayMusic = #(def-music-function (parser location music) (ly:music?)
                 (display-music music)
                 music)
-applyoutput = #(def-music-function (location proc) (procedure?)
+applyoutput = #(def-music-function (parser location proc) (procedure?)
                 (make-music 'ApplyOutputEvent 
                   'origin location
                   'procedure proc))
 
-breathe = #(def-music-function (location) ()
+breathe = #(def-music-function (parser location) ()
             (make-music 'EventChord 
               'origin location
               'elements (list (make-music 'BreathingSignEvent))))
 
 
-unfoldrepeats = #(def-music-function (location music) (ly:music?)
+unfoldrepeats = #(def-music-function (parser location music) (ly:music?)
                  (unfold-repeats music))
 
 compressmusic = #(def-music-function
-                 (location fraction music) (number-pair? ly:music?)
+                 (parser location fraction music) (number-pair? ly:music?)
                  (ly:music-compress music (ly:make-moment (car fraction) (cdr fraction))))
 
 makeClusters = #(def-music-function
-               (location arg) (ly:music?)
+               (parser location arg) (ly:music?)
                (music-map note-to-cluster arg))
 
 
 removeWithTag = 
 #(def-music-function
-  (location tag music) (symbol? ly:music?)
+  (parser location tag music) (symbol? ly:music?)
   (music-filter
    (lambda (m)
     (let* ((tags (ly:music-property m 'tags))
@@ -62,7 +62,7 @@ removeWithTag =
              
 keepWithTag =
 #(def-music-function
-  (location tag music) (symbol? ly:music?)
+  (parser location tag music) (symbol? ly:music?)
   (music-filter
    (lambda (m)
     (let* ((tags (ly:music-property m 'tags))
@@ -79,7 +79,7 @@ keepWithTag =
 
 cueDuring = 
 #(def-music-function
-  (location what dir main-music)
+  (parser location what dir main-music)
   (string? ly:dir? ly:music?)
   (make-music 'QuoteMusic
              'element main-music 
@@ -92,7 +92,7 @@ cueDuring =
 
 quoteDuring = #
 (def-music-function
-  (location what main-music)
+  (parser location what main-music)
   (string? ly:music?)
   (make-music 'QuoteMusic
              'element main-music
@@ -104,7 +104,7 @@ quoteDuring = #
 
 killCues =
 #(def-music-function
-   (location music)
+   (parser location music)
    (ly:music?)
    (music-map
     (lambda (mus)
index 4c656d8e59209db4f06e924307bef7005c2e6f26..e14b4e6cc3d4a6da977a3935db29e6c53ab3adfc 100644 (file)
@@ -4,6 +4,43 @@
 %
 %
 
+
+fet_beginchar("espr", "espr", "espressivo")
+       set_char_box(.9 staff_space#, .9 staff_space#, .5 staff_space#, .5 staff_space#);
+       save thickness, diminish;
+       thickness = 0.05 staff_space + linethickness;
+       pickup pencircle scaled thickness;
+       t = thickness;
+       diminish = .75;
+       top z1 =(0.2 staff_space,h);
+       rt z3 =(w*2,0);
+       bot y5 =-h;
+       x5 = x1;
+       x2 = .5[x1,x3];
+       x4 = .5[x5,x3];
+       z2 = whatever[z1,z3];
+       z4 = whatever[z5,z3];
+       penpos1(t,90);
+       penpos2(t,90);
+       penpos5(t,90);
+       penpos4(t,90);
+       penpos3(diminish*t,90);
+       draw z1 .. z2;
+       draw z5 .. z4;
+       penstroke z4e .. z3e;
+       penstroke z2e .. z3e;
+       draw (z1 .. z2) xscaled -1;
+       draw (z5 .. z4) xscaled -1;
+       penstroke (z4e .. z3e) xscaled -1;
+       penstroke (z2e .. z3e) xscaled -1;
+       penlabels(1,2,3,4,5);
+       pickup pencircle scaled (diminish* thickness);
+       draw z3;
+       draw z3 xscaled -1;
+
+fet_endchar;
+
+
 input feta-bolletjes;  
 %input feta-banier;
 %input feta-slag;
index 36886996d68057d12cff771f615ac4bf208386bf..fd1dfb5c27a3fcf3349dcd630eca572bfa83b259 100644 (file)
@@ -451,7 +451,7 @@ and/or @code{extra-offset} properties. "
          (stem-length (* (magstep size) (max 3 (- log 1))))
          (head-glyph (ly:find-glyph-by-name
                   font
-                  (string-append "noteheads-" (number->string (min log 2)))))
+                  (string-append "noteheads-s" (number->string (min log 2)))))
          (stem-thickness 0.13)
          (stemy (* dir stem-length))
          (attachx (if (> dir 0)
index 9068ce553987819e6e935d0eda05f1cf4eb9396e..626ecfca65cf3b6c76988035772c5b1d8c79d7a3 100644 (file)
   (string-append "%!PS-Adobe-2.0 EPSF-2.0\n"
                 "%%Creator: creator time-stamp\n"
                 "%%BoundingBox: "
-                (string-join (map number->string bbox) " ") "\n"
+                (string-join (map ly:number->string bbox) " ") "\n"
                 "%%Orientation: "
                 (if (eq? (ly:output-def-lookup paper 'landscape) #t)
                     "Landscape\n"
                          (map ly:paper-system-stencil
                               (append titles (list non-title)))))
         (xext (ly:stencil-extent dump-me X))
-        (yext (ly:stencil-extent dump-me Y)))
+        (yext (ly:stencil-extent dump-me Y))
+        (bbox
+         (map
+          (lambda (x)
+            (if (or (nan? x) (inf? x))
+                0.0 x))
+          (list (car xext) (car yext)
+                (cdr xext) (cdr yext)))               
+        ))
     
   (for-each
    (lambda (x)
                 (lambda (x)
                   (inexact->exact
                    (round (* x scale mm-to-bigpoint))))
-                (list (car xext) (car yext)
-                      (cdr xext) (cdr yext))))
+                bbox))
     (preamble paper)))
 
 
index 89ef9a7d8d04c86de4a4f0f50f474619dc0ed750..1c23ce46c2ace7919c2a1a1b9146137aa8f80f7d 100644 (file)
@@ -372,7 +372,7 @@ CURRENT-BEST is the best result sofar, or #f."
                           #:penalty total-penalty)
                          current-best)))
       
-      (if #t ;; debug
+      (if #f ;; debug
           (display
            (list
             "\nuser pen " user-penalty
index a152e28e0bc04e5c28e7c80365a1b8c974ac388a..22cfdc3500ae2c955295064a68637bdfda148208 100644 (file)
@@ -139,7 +139,6 @@ installextradoc:
        $(foreach i, $(EXTRA_DOC_FILES),\
                cp -r $(i) $(prefix)/doc/$(package) &&) true
 
-
 include $(outdir)/dummy.dep $(wildcard $(outdir)/*.dep) # expect a warning here
 
 $(outdir)/dummy.dep: