]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scripts/convert-ly.py (FatalConversionError.conv): add rule for
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 6 Oct 2002 13:59:21 +0000 (13:59 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 6 Oct 2002 13:59:21 +0000 (13:59 +0000)
(ly-make-music "Foo_bar") -> (make-music-by-name 'FooBarEvent).

* mf/feta-din.mf (test): add x-height and space.

ChangeLog
Documentation/user/refman.itely
input/test/music-creation.ly
input/test/note-chords.ly
mf/feta-din-code.mf
mf/feta-din.mf
scm/clef.scm
scm/to-xml.scm
scripts/convert-ly.py
stepmake/bin/package-diff.py

index 13b7cfdc74faea35c39f1e88efd4b0b1938d85b3..126b284bd87a48fada22010689ae26ad72fb5b9c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2002-10-06  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
 
+       * scripts/convert-ly.py (FatalConversionError.conv): add rule for
+       (ly-make-music "Foo_bar") -> (make-music-by-name 'FooBarEvent).
+
+       * mf/feta-din.mf (test): add x-height and space.
+
        * lily/dynamic-engraver.cc (process_music): take dynamic direction
        from ^_ for crescendi. Idem for slurs and phrasing slurs.
 
index 9868e182877f8b6f7315cfc51ac13ed25c11c9f4..a4724a34bf5d8a402cbfa1f33a2db4dc3a4eb807 100644 (file)
@@ -2727,6 +2727,7 @@ sometimes voices can cross between the two staves.  The
 behavior.  In this section we discuss the @internalsref{PianoStaff} and some
 other pianistic peculiarities.
 
+
 @menu
 * Automatic staff changes::     
 * Manual staff switches::       
@@ -2735,6 +2736,21 @@ other pianistic peculiarities.
 * Voice follower lines::        
 @end menu 
 
+@refbugs
+
+There is no support for putting chords across staves.  You can get
+this result by increasing the length of the stem in the lower stave so
+it reaches the stem in the upper stave, or vice versa. An example is
+included with the distribution as @file{input/test/stem-cross-staff.ly}.
+
+@cindex cross staff stem
+@cindex stem, cross staff
+
+
+@c fixme: should have hyperlinks as well.
+
+
+
 
 @c .   {Automatic staff changes}
 @node Automatic staff changes
@@ -2842,32 +2858,6 @@ c''4 \sostenutoDown d''4 e''4 c'4
 f'4 g'4 a'4 \sostenutoUp
 @end lilypond
 
-@node Cross staff stems
-@subsection Cross staff stems
-@cindex  Cross staff stems
-@cindex Stems, cross staff
-
-Unfortunately, there is no support for putting chords across staves.
-You can get this result by increasing the length of the stem in the
-lower stave so it reaches the stem in the upper stave, or vice versa.
-
-@lilypond
-
-sUp = \translator Staff = "up"
-sDown = \translator Staff = "down"
-
-stemExtend = \property Voice.Stem \set #'length = #22
-stemNormal = \property Voice.Slur \revert #'length
-
-
-        < { \stemDown \sDown s4.             a, } \\
-          { \stemDown \sUp   f4. \stemExtend f  }> |
-
-        \stemNormal
-
-        [...]
-@end lilypond
-
 @node Arpeggio
 @subsection Arpeggio
 @cindex Arpeggio
@@ -4219,8 +4209,6 @@ object, and set a object property in that object.
 
 @cindex object description
 
-
-
 A object definition is a Scheme association list, that is stored in a
 context property.  By assigning to that property (using plain
 @code{\property}), you can change the resulting objects.
index 647005b7dbf7ab8ce26ba6dfe374f2d9267f4b1e..df76133dfea843a4b638887c52815f40acbcca65 100644 (file)
@@ -7,15 +7,13 @@
  }
 
 #(define (make-note-req p d)
-   ;; huh? lily-guile: Could not find music type `Note_req' 
-   ;;(let* ((ml (make-music-by-name "Note_req")))
    (let* ((ml (make-music-by-name 'NoteEvent)))
    (ly-set-mus-property! ml 'duration d)
    (ly-set-mus-property! ml 'pitch p)
    ml))
 
 #(define (make-note elts)
-   (let* ((ml (make-music-by-name 'RequestChord)))
+   (let* ((ml (make-music-by-name 'EventChord)))
    (ly-set-mus-property! ml 'elements elts)
    ml))
 
index 25286f8168c79c978d562c1029100c6739c30ea3..39158bcb57060f767ba57b9e8a71b3af68196405 100644 (file)
@@ -1,3 +1,8 @@
+\header {
+
+    texidoc= "Chord names don't attempt to find inversions and
+bass notes."  }
+
 \version "1.5.68"
 
 scheme = \notes {
@@ -8,7 +13,7 @@ scheme = \notes {
 
 \score {
   <
-    \context ChordNamesVoice \scheme
+    \context ChordNames \scheme
     \context Staff \scheme
   >
   \paper { linewidth = -1. }
index e457b64ad2cedb7af31b1a741bb32cc35c0265d7..0523d2189a1dc17f939fc932256ea43e7999d2a5 100644 (file)
@@ -6,6 +6,11 @@ med_thick = round (1.5 stafflinethickness);
 bottom_blot = 1.3 serif_thick;
 
 
+code := 32;
+fet_beginchar("Space", "space", "space")
+       set_char_box(0, horizontal_space#,  0, ex#);
+fet_endchar;
+
 
 %
 % Couldn't find many z examples. This one is losely inspired 
index 00d7211031f18499dd01bbaf96d086e6a0115a93..861959b9e2352ae6c4310001081c98f5c215c69d 100644 (file)
@@ -14,6 +14,11 @@ ascender# := 0.72 ex#;
 staffspace# := 1.75 / 2.0 * ex#;
 stafflinethickness# := staffspace# / 10;
 
+horizontal_space# :=  .66 ex#;
+
+font_x_height ex#;
+font_normal_space horizontal_space#;
+
 define_pixels (staffspace, stafflinethickness, ex, descender, ascender);
 
 fet_beginfont("feta-din", design_size);
index ba2d3bc54c9f8349ef17c1a3cdc4733a5ec93934..e0aae19639f3384933a7df8dbaf5148b17ad6d3d 100644 (file)
@@ -93,7 +93,7 @@
   (define (make-prop-set props)
     (let*
        (
-        (m     (make-music-by-name 'PropertySet))
+        (m (make-music-by-name 'PropertySet))
         )
 
       (map (lambda (x) (ly-set-mus-property! m (car x) (cdr x))) props)
          )
        (begin
          (ly-warn (format "Unknown clef type `~a'
-See scm/lily.scm for supported clefs"))
+See scm/lily.scm for supported clefs" cl))
          (make-music-by-name 'Music)
          
        )
index 3bc7a8068aec60676d143b16c9d181e7b50a76fe..67f607e8f275d8d462864ebd47b91fede1d17da9 100644 (file)
@@ -1,4 +1,8 @@
 (use-modules (ice-9 regex))
+
+
+;; should make module?
+
 "
 
 
@@ -185,11 +189,15 @@ is then separated.
         (begin
           (music-to-xml-helper e port)))
      (display (close-tag 'music) port)
-   ))
+     ))
 
 (define-public (music-to-xml music port)
   "Dump XML-ish stuff to PORT."
-  (display (dtd-header) port)
+
+  ;; dtd contains # -- This confuses tex during make web.
+  ;;
+  ;;  (display (dtd-header) port)
+  
   (display (open-tag 'music '((type . score)) '()) port)
   (music-to-xml-helper music port)
   (display (close-tag 'music) port))
index 8f24f130ed2e0110aece505151ebce3aa4e44e30..25bb3e215be139b7e714b446a2a6ed45cc3c4783 100644 (file)
@@ -965,13 +965,6 @@ if 1:
        
        conversions.append (((1,5,72), conv, 'set! point-and-click -> set-point-and-click!'))
 
-if 1:
-       def conv (str):
-               str = re.sub ('ly-make-music', 'make-music-by-name', str)
-               return str
-       
-       conversions.append (((1,7,1), conv, 'ly-make-music -> make-music-by-name'))
-
 
 if 1:
        def conv (str):
@@ -983,6 +976,17 @@ if 1:
        conversions.append (((1,6,5), conv, 'Stems: flag-style -> stroke-style; style -> flag-style'))
 
 
+if 1:
+       def subst_req_name (match):
+               return "(make-music-by-name \'%sEvent)" % regularize_id (match.group(1))
+
+       def conv (str):
+               str = re.sub ('\\(ly-make-music *\"([A-Z][a-z_]+)_req\"\\)', subst_req_name, str)
+               str = re.sub ('Request_chord', 'EventChord', str)
+               return str
+       
+       conversions.append (((1,7,1), conv, 'ly-make-music foo_bar_req -> make-music-by-name FooBarEvent'))
+
 ################################
 #      END OF CONVERSIONS      
 ################################
index 977ae337b313d280fe4f4f50a0f8a83ae509d1b7..284e2c6e8eda60c4f9526a97331150204f1c7021 100644 (file)
@@ -135,8 +135,6 @@ def remove_automatic (dirnames):
                        sys.stderr.write ("can't remove: `" + f + "'\n'")
 
 def dirname (v):
-       # urg, again?
-       from packagepython import *
        return flags.package.name + '-' + version_tuple_to_str (v)
 
 def tarball(v):
@@ -181,9 +179,6 @@ i.e., you should run
 
 
 def makediff (fromdir, todir, patch_name):
-       # urg, again?
-       from packagepython import *
-
        remove_automatic ([fromdir, todir])
        
        # ugh