]> git.donarmstrong.com Git - lilypond.git/commitdiff
* GNUmakefile.in: bugfix: encapsulate mkdir && cd in parens.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 2 Nov 2005 22:30:43 +0000 (22:30 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 2 Nov 2005 22:30:43 +0000 (22:30 +0000)
* lily/staff-performer.cc (process_music): add audio
elements. This makes MIDI instrument changes work once again.

ChangeLog
GNUmakefile.in
input/GNUmakefile
lily/side-position-interface.cc
lily/staff-performer.cc
scm/script.scm

index 3c5e3926e7edb70a7c0835bbd8e8144837d4fba6..df964a27c59f010b77db912dc33a5283ff1bde77 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2005-11-02  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+       * GNUmakefile.in: bugfix: encapsulate mkdir && cd in parens.   
+
+       * lily/staff-performer.cc (process_music): add audio
+       elements. This makes MIDI instrument changes work once again.
+
        * lily/main.cc (LY_DEFINE): add gmane address.
 
        * lily/beam.cc: remove calc_positions()
index c81a76af8f90560384cce6f2d44a40edc32af943..afa22bd7397d8a8f57f0d903e663c191fee54eb1 100644 (file)
@@ -154,9 +154,9 @@ $(tree-share-prefix)/lilypond-force link-tree: GNUmakefile
                ln -sf ../../../../../../elisp/$(outconfbase)/lilypond-words.el . && \
                ln -s $(top-src-dir)/elisp/*.el .
        $(foreach i,$(CATALOGS), \
-               mkdir -p $(tree-share)/locale/$i/LC_MESSAGES && \
+               (mkdir -p $(tree-share)/locale/$i/LC_MESSAGES && \
                cd $(tree-share)/locale/$i/LC_MESSAGES && \
-               ln -sf ../../../../../po/$(outconfbase)/$i.mo lilypond.mo &&) true
+               ln -sf ../../../../../po/$(outconfbase)/$i.mo lilypond.mo) &&) true
 #      touch $@
        touch $(tree-share-prefix)/lilypond-force
 
index 3de1c77c97aa5ef5786a19102176f7bfb7e328b9..0bdb55a4787e8f5debe7334506ea6b7b7ba7b119 100644 (file)
@@ -2,7 +2,7 @@ depth = ..
 
 SUBDIRS = test regression tutorial no-notation mutopia 
 
-examples = typography-demo les-nereides puer-fragment wilhelmus sakura-sakura proportional
+examples = typography-demo les-nereides wilhelmus sakura-sakura proportional
 #xiao-haizi-guai-guai
 
 LOCALSTEPMAKE_TEMPLATES=ly mutopia
index 454333156877c61ee763243259defa03472a7869..b5844859f1df0fee4a069a9a6f826fbd0deed33f 100644 (file)
@@ -57,14 +57,11 @@ Side_position_interface::general_side_position (Grob *me, Axis a, bool use_exten
 
   Grob *common = common_refpoint_of_array (support, me->get_parent (a), a);
   Grob *staff_symbol = Staff_symbol_referencer::get_staff_symbol (me);
-  bool include_staff = false;
-
-  if (staff_symbol
-      && a == Y_AXIS)
-    {
-      if (scm_is_number (me->get_property ("staff-padding")))
-       include_staff = true;
-    }
+  bool include_staff = 
+    staff_symbol
+    && a == Y_AXIS
+    && scm_is_number (me->get_property ("staff-padding"))
+    && !to_boolean (me->get_property ("quantize-position"));
 
   Interval dim;
   Interval staff_extents;
@@ -173,19 +170,6 @@ Side_position_interface::aligned_side (Grob*me, Axis a)
   Grob *staff = Staff_symbol_referencer::get_staff_symbol (me);
   if (staff && a == Y_AXIS)
     {
-      if (scm_is_number (me->get_property ("staff-padding")))
-       {
-         Real padding
-           = Staff_symbol_referencer::staff_space (me)
-           * scm_to_double (me->get_property ("staff-padding"));
-
-         Grob *common = me->common_refpoint (staff, Y_AXIS);
-
-         Interval staff_size = staff->extent (common, Y_AXIS);
-         Real diff = dir*staff_size[dir] + padding - dir * (o + iv[-dir]);
-         o += dir * max (diff, 0.0);
-       }
-      
       if (to_boolean (me->get_property ("quantize-position")))
        {
          Grob *common = me->common_refpoint (staff, Y_AXIS);
@@ -205,6 +189,18 @@ Side_position_interface::aligned_side (Grob*me, Axis a)
                o += dir * 0.5 * ss;
            }
        }
+      else if (scm_is_number (me->get_property ("staff-padding")))
+       {
+         Real padding
+           = Staff_symbol_referencer::staff_space (me)
+           * scm_to_double (me->get_property ("staff-padding"));
+
+         Grob *common = me->common_refpoint (staff, Y_AXIS);
+
+         Interval staff_size = staff->extent (common, Y_AXIS);
+         Real diff = dir*staff_size[dir] + padding - dir * (o + iv[-dir]);
+         o += dir * max (diff, 0.0);
+       }
     }
   return scm_from_double (o);
 }
index c560e5b135e722f708cf9192f9f5bf45c31f4334..3e04c006bf84d39e4088029e1e0e94903e39c43f 100644 (file)
@@ -85,6 +85,9 @@ Staff_performer::process_music ()
       instrument_ = new Audio_instrument (str);
       announce_element (Audio_element_info (instrument_, 0));
 
+      audio_staff_->add_audio_item (instrument_);
+      audio_staff_->add_audio_item (instrument_name_);
+     
       /*
        Have to be here before notes arrive into the staff.
       */
index c6af502c763c7793bf1c2e022b434fa580ee2b74..2ca17b7998ec415bf79221a880848dbd63da680f 100644 (file)
           (direction . 1)))
          ("accent" .
          ((avoid-slur . around)
-          (staff-padding . #f) (quantize-position . #t)
+          (quantize-position . #t)
           (script-stencil . (feta . ("sforzato" .  "sforzato")))
           (side-relative-direction . -1)))      
          ("espressivo" .
          ((avoid-slur . around)
-          (staff-padding . #f) (quantize-position . #t)
+          (quantize-position . #t)
           (script-stencil . (feta . ("espr" .  "espr")))
           (side-relative-direction . -1)))      
         ("marcato" .
          ((script-stencil . (feta . ("dmarcato" . "umarcato")))
-          (staff-padding . #f) (quantize-position . #t)
+          (quantize-position . #t)
           (side-relative-direction .  -1)))
         ("staccatissimo" .
          ((avoid-slur . inside) 
         ("staccato" .
          ((script-stencil . (feta . ("staccato" . "staccato")))
           (side-relative-direction .  -1)
-          (follow-into-staff  . #t)
+          
+          (quantize-position . #t)
           (avoid-slur . inside) 
           (script-priority . -100)))
         ("tenuto" .
          ((script-stencil . (feta . ("tenuto" . "tenuto")))
-          (staff-padding . #f) (quantize-position . #t)
+          (quantize-position . #t)
           (avoid-slur . inside)
           (side-relative-direction . -1)))
         ("comma" .
          ((script-stencil . (feta . ("lcomma" . "rcomma")))
-          (staff-padding . #f) (quantize-position . #t)
+          (quantize-position . #t)
           (direction . 1)))
         ("varcomma" .
          ((script-stencil . (feta . ("lvarcomma" . "rvarcomma")))
-          (staff-padding . #f) (quantize-position . #t)
+          (quantize-position . #t)
           (direction . 1)))
         ("upbow" .
          ((script-stencil . (feta . ("upbow" . "upbow")))