]> git.donarmstrong.com Git - lilypond.git/commitdiff
* lily/ligature-engraver.cc, lily/include/ligature-engraver.hh,
authorJürgen Reuter <j@web.de>
Tue, 15 Nov 2005 23:21:17 +0000 (23:21 +0000)
committerJürgen Reuter <j@web.de>
Tue, 15 Nov 2005 23:21:17 +0000 (23:21 +0000)
scm/define-context-properties.scm: Maintenance bugfix: make
ligature brackets work again by removing obsolete ligature
primitive callback push/pop.

ChangeLog
lily/include/ligature-engraver.hh
lily/ligature-engraver.cc
scm/define-context-properties.scm

index e158173489036874a88ffeba2d558c430ef2e563..84cd1bc3a86e6890f8fb02d3afb3dd5313504c04 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-11-16  Jürgen Reuter  <reuter@ipd.uka.de>
+
+       * lily/ligature-engraver.cc, lily/include/ligature-engraver.hh,
+       scm/define-context-properties.scm: Maintenance bugfix: make
+       ligature brackets work again by removing obsolete ligature
+       primitive callback push/pop.
+
 2005-11-15  Jan Nieuwenhuizen  <janneke@gnu.org>
 
        * stepmake/aclocal.m4 (depth): Explain why absolute directory is
index d1a12e6be9b7897134778c1c01734fb354d99894..aa36a0596dab01042ea4114cfa9cbfde75c07dc8 100644 (file)
@@ -47,9 +47,6 @@ private:
   Moment ligature_start_mom_;
 
   Grob *last_bound_;
-
-  void override_stencil_callback ();
-  void revert_stencil_callback ();
 };
 
 #endif // LIGATURE_ENGRAVER_HH
index ce6e8a8c2b14ff872ad7e64b451f91ea5c93a857..cb04b67abee9a6113c4a3a0b805e9eaaa8b82201 100644 (file)
@@ -89,48 +89,6 @@ Ligature_engraver::try_music (Music *m)
   return false;
 }
 
-/*
- * This method should do something that comes close to the following
- * .ly snippet:
- *
- * \property Voice.NoteHead \override #'print-function =
- *     < value of noteHeadLigaturePrimitive
- *
- * TODO: What we are doing here on the c++ level, should actually be
- * performed on the SCM level.  However, I do not know how to teach
- * lilypond to apply an \override and \revert on #'print-function,
- * whenever lily encounters a \[ and \] in an .ly file, respectively.
- * Also encounter, that lily should not crash if a user erronously
- * nests \[ and \].
- */
-void
-Ligature_engraver::override_stencil_callback ()
-{
-  execute_pushpop_property (context (), ly_symbol2scm ("NoteHead"),
-                           ly_symbol2scm ("stencil"),
-                           get_property ("noteHeadLigaturePrimitive"));
-}
-
-/*
- * This method should do something that comes close to the following
- * .ly snippet:
- *
- * \property Voice.NoteHead \revert #'print-function
- *
- * TODO: What we are doing here on the c++ level, should actually be
- * performed on the SCM level.  However, I do not know how to teach
- * lilypond to apply an \override and \revert on #'print-function,
- * whenever lily encounters a \[ and \] in an .ly file, respectively.
- * Also encounter, that lily should not crash if a user erronously
- * nests \[ and \].
- */
-void
-Ligature_engraver::revert_stencil_callback ()
-{
-  execute_pushpop_property (context (), ly_symbol2scm ("NoteHead"),
-                           ly_symbol2scm ("stencil"), SCM_UNDEFINED);
-}
-
 void
 Ligature_engraver::process_music ()
 {
@@ -152,7 +110,6 @@ Ligature_engraver::process_music ()
       finished_ligature_ = ligature_;
       primitives_.clear ();
       ligature_ = 0;
-      revert_stencil_callback ();
     }
   last_bound_ = unsmob_grob (get_property ("currentMusicalColumn"));
 
@@ -183,7 +140,6 @@ Ligature_engraver::process_music ()
 
       // TODO: dump cause into make_item/spanner. 
       // announce_grob (ligature_, events_drul_[START]->self_scm ());
-      override_stencil_callback ();
     }
 }
 
@@ -237,10 +193,9 @@ Ligature_engraver::acknowledge_note_head (Grob_info info)
   if (ligature_)
     {
       primitives_.push (info);
-      if (info.grob ())
+      if (info.grob () && (brew_ligature_primitive_proc != SCM_EOL))
        {
-         info.grob ()->set_property ("stencil",
-                                     brew_ligature_primitive_proc);
+         info.grob ()->set_property ("stencil", brew_ligature_primitive_proc);
        }
     }
 }
index aa6f8e7757051204a3569b3f1afc9e8bdf895c13..deecf7ba7b4f5c50638cd134745aaa32e3b4174a 100644 (file)
@@ -302,7 +302,6 @@ markup.  Called with 2 arguments, event and context.")
 selects the highest string with a fret at least @code{minimumFret}")
      (minimumVerticalExtent ,number-pair? "minimum vertical extent, same
 format as @var{verticalExtent}")
-     (noteHeadLigaturePrimitive ,procedure? "Callback for generating stencil of ligature.")
      (ottavation ,string? "If set, the text for an ottava spanner. Changing
 this creates a new text spanner. ")
      (pedalSustainStrings ,list? "List of string to print for