]> git.donarmstrong.com Git - lilypond.git/commitdiff
release: 1.3.33 release/1.3.33
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 14 Mar 2000 19:56:02 +0000 (20:56 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 14 Mar 2000 19:56:02 +0000 (20:56 +0100)
======

1.3.32.h

153 files changed:
CHANGES
Documentation/user/properties.itely
VERSION
flower/include/hash-table.hh
input/test/GNUmakefile
input/test/bar-lines.ly [new file with mode: 0644]
input/test/font-body.ly
input/test/repeat-volta.ly
lily/align-element.cc
lily/all-font-metrics.cc
lily/auto-beam-engraver.cc
lily/bar-engraver.cc
lily/bar-number-engraver.cc
lily/bar.cc
lily/beam-engraver.cc
lily/beam.cc
lily/break-align-item.cc
lily/breathing-sign-engraver.cc
lily/breathing-sign.cc
lily/chord-name-engraver.cc
lily/chord-tremolo-engraver.cc
lily/clef-engraver.cc
lily/clef-item.cc
lily/collision.cc
lily/dot-column.cc
lily/dots.cc
lily/dynamic-engraver.cc
lily/extender-engraver.cc
lily/extender-spanner.cc
lily/grace-align-item.cc
lily/hara-kiri-vertical-group-spanner.cc
lily/hyphen-engraver.cc
lily/hyphen-spanner.cc
lily/include/align-element.hh
lily/include/all-font-metrics.hh
lily/include/auto-beam-engraver.hh
lily/include/bar-engraver.hh
lily/include/bar-number-engraver.hh
lily/include/bar.hh
lily/include/beam-engraver.hh
lily/include/beam.hh
lily/include/break-align-item.hh
lily/include/breathing-sign-engraver.hh
lily/include/breathing-sign.hh
lily/include/chord-name-engraver.hh
lily/include/chord-tremolo-engraver.hh [deleted file]
lily/include/clef-item.hh
lily/include/collision.hh
lily/include/dot-column.hh
lily/include/dots.hh
lily/include/extender-engraver.hh
lily/include/extender-spanner.hh
lily/include/font-size-engraver.hh
lily/include/grace-align-item.hh
lily/include/hara-kiri-vertical-group-spanner.hh
lily/include/hyphen-engraver.hh
lily/include/hyphen-spanner.hh
lily/include/identifier.hh
lily/include/key-engraver.hh
lily/include/key-performer.hh
lily/include/local-key-item.hh
lily/include/lookup.hh
lily/include/lyric-engraver.hh
lily/include/lyric-performer.hh
lily/include/molecule.hh
lily/include/multi-measure-rest.hh
lily/include/note-column.hh
lily/include/note-head.hh
lily/include/note-heads-engraver.hh
lily/include/note-performer.hh
lily/include/repeat-engraver.hh
lily/include/rest-collision.hh
lily/include/rest-engraver.hh
lily/include/rest.hh
lily/include/rhythmic-head.hh
lily/include/scm-hash.hh
lily/include/score-element.hh
lily/include/script-column.hh
lily/include/script.hh
lily/include/slur-engraver.hh
lily/include/slur.hh
lily/include/span-bar.hh
lily/include/staff-performer.hh
lily/include/stem-engraver.hh [deleted file]
lily/include/stem.hh
lily/include/super-element.hh
lily/include/tempo-performer.hh
lily/include/tie-column.hh
lily/include/tie-performer.hh
lily/include/tie.hh
lily/include/time-signature-engraver.hh
lily/include/time-signature-performer.hh
lily/include/timing-translator.hh
lily/include/translator-group.hh
lily/include/translator.hh
lily/include/tuplet-spanner.hh
lily/include/volta-spanner.hh
lily/key-engraver.cc
lily/key-item.cc
lily/key-performer.cc
lily/lily-guile.cc
lily/local-key-engraver.cc
lily/local-key-item.cc
lily/lookup.cc
lily/lyric-engraver.cc
lily/lyric-performer.cc
lily/mark-engraver.cc
lily/molecule.cc
lily/multi-measure-rest-engraver.cc
lily/multi-measure-rest.cc
lily/note-column.cc
lily/note-head.cc
lily/note-heads-engraver.cc
lily/note-name-engraver.cc
lily/note-performer.cc
lily/output-property-engraver.hh [deleted file]
lily/property-engraver.cc
lily/repeat-engraver.cc
lily/rest-collision.cc
lily/rest-engraver.cc
lily/rest.cc
lily/rhythmic-head.cc
lily/scm-hash.cc
lily/score-element.cc
lily/script-column.cc
lily/script-engraver.cc
lily/script.cc
lily/slur-engraver.cc
lily/slur.cc
lily/span-bar.cc
lily/staff-performer.cc
lily/stem.cc
lily/super-element.cc
lily/tempo-performer.cc
lily/text-engraver.cc
lily/tie-column.cc
lily/tie-engraver.cc
lily/tie-performer.cc
lily/tie.cc
lily/time-signature-engraver.cc
lily/time-signature-performer.cc
lily/timing-translator.cc
lily/translator-group.cc
lily/translator.cc
lily/tuplet-engraver.cc
lily/tuplet-spanner.cc
lily/volta-spanner.cc
ly/property.ly
make/out/lilypond.lsm
make/out/lilypond.spec
make/toplevel.make.in
scm/lily.scm
stepmake/stepmake/yolily-toplevel-targets.make

diff --git a/CHANGES b/CHANGES
index f659443b62ee6d3fe7ec68fce3a43a1bee9f872d..5ee74be6f69105a9c61c0421691c320b503eb882 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,18 +1,30 @@
---- ../lilypond-1.3.32.hwn1/CHANGES    Tue Mar 14 12:47:50 2000
-++ b/CHANGES   Tue Mar 14 15:16:52 2000
-@@ -1,3 +1,12 @@
-1.3.32.hwn2
+1.3.33
+======
+
+1.3.32.hwn3
 ===========
 
+* Experiment: use STL map for Scheme_hash_table; Is there a speedup?
+
+* Bugfix: print brace iso. bracket for Piano / GrandStaff
+
+* Change naming: change do_post_processsing into after_line_breaking,
+do_pre_processsing into before_line_breaking and do_process_requests
+into do_process_music.
+
+* Bugfix in hash-table.hh: do quadratic probing, and not cubic probing.
+
+* Display property name for type error.
+
 * Cleanups for Dynamic_engraver and Dynamic_line_spanner.
 
 * Warn if last column in score is musical. Helps catch programming errors.
 
 * Spanner::spanned_drul_ now is private. 
 
- 1.3.32.jcn2
- ===========
- 1.3.32.jcn3
+* Rewrote some bar code: moved molecule functions out of Lookup.
+
+1.3.32.jcn3
 ===========
 
 * Embedded newlines in text items are now allowed.  This helps avoiding
 * Fixed slur/bezier-beautiful name mismatch.  This should fix the steep
   slurs that were apparently reintroduced in 1.3.29.
 
-1.3.32.jcn2
-===========
-
 * Made some small fixes to Coriolan.
 
-1.3.32.jcn1
-===========
-
 * Removed duplicate lily/output-property-engraver.hh.
 
 * Removed optional use of vanilla spanner in Dynamic_engraver.
 * Added *.yy and *.ll to TAGS, to that tags-find-replace doesn't omit
   parser and lexer.
 
+1.3.31.mb1
+=========
+
+* Fixed \specialkey and \normalkey. Updated documentation.
+
+1.3.32
+======
 1.3.31.jcn5
 ===========
 
@@ -57,9 +70,6 @@
 
 * Various fixes to Coriolan, score starts to look acceptable.
 
-1.3.31.jcn3
-===========
-
 * Moved optional text of crescendo into Crescendo spanner.  Fixed horizontal
   and vertical alignment of dynamics.
 
@@ -68,9 +78,6 @@
   stuck.  I'm not sure whose fault this is, Lily's MIDI output may be
   stretching the standard a bit.
 
-1.3.30.jcn4
-===========
-
 * Adjacent dynamic markings are now grouped on a horizontal line, but it's
   not perfect yet: they're always below the staff and no horizontal spacing
   is done.  Also, character metrics of dynamics are still not used.
index ebf2c901b4a805b1aae9fe63af3d9f62e47be3a9..101274a2b8fb6de0b46861c7c2791e639571471d 100644 (file)
@@ -467,16 +467,16 @@ no clef is printed upon creation.
     is used to determine the instrument for MIDI output.
 
   @item @code{keyOctaviation}@indexcode{keyOctaviation} @propertytype{boolean}
-    If set to TRUE, then keys are the same in all octaves.  If set
-    to FALSE then the key signature for different octaves can be
+    If set to false, then keys are the same in all octaves.  If set
+    to true then the key signature for different octaves can be
     different and is specified independently:
 
     @example
       \keysignature bes fis'
     @end example
 
-    The default value is 1.  Can be set to zero with
-    @code{\specialkey} or reset to 1 with @code{\normalkey}.
+    The default value is @code{#f}.  Can be set to @code{#t} with
+    @code{\specialkey} or reset with @code{\normalkey}.
 
   @item @code{timeSignatureStyle}@indexcode{timeSignatureStyle} @propertytype{string}
     Changes the default two-digit layout for time signatures.  The
diff --git a/VERSION b/VERSION
index 4f01f008b7b021c6576dd546503aedce3f8d61ac..0c7ec166467859805a3dfccb00fe9411d32ca06f 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1,8 +1,8 @@
 PACKAGE_NAME=LilyPond
 MAJOR_VERSION=1
 MINOR_VERSION=3
-PATCH_LEVEL=32
-MY_PATCH_LEVEL=hwn2
+PATCH_LEVEL=33
+MY_PATCH_LEVEL=
 
 # use the above to send patches: MY_PATCH_LEVEL is always empty for a
 # released version.
index aec7ae31afa721458f689bfd054702223d8590ab..bd437e6e972d7215f9546fcce539d789cbd809b0 100644 (file)
@@ -61,9 +61,12 @@ public:
   int lookup  (K s, unsigned int initial_hash)
     {
       int sz =dict_arr_.size ();
-      int i = initial_hash % sz;
+      initial_hash = initial_hash % sz; 
+      int i;
       int j = 0;
       while (j <= sz/2) {
+       i = (initial_hash + j*j) % sz;
+       
        if (dict_arr_[i].free_b_)
          return i;
 
@@ -71,7 +74,6 @@ public:
          return i;
 
        j++;
-       i = (i + j*j) % sz;
       }
 
       
index 0923318b9973a52651f3dd0559fa0981bfddc0e7..85f2a1fbca95700769594f23c84ba3d5a725e561 100644 (file)
@@ -1,7 +1,7 @@
 # input/test/Makefile
 
 depth = ../..
-examples=font20  
+examples= # font20  
 LOCALSTEPMAKE_TEMPLATES=mutopia
 
 include $(depth)/make/stepmake.make 
diff --git a/input/test/bar-lines.ly b/input/test/bar-lines.ly
new file mode 100644 (file)
index 0000000..d9e99a3
--- /dev/null
@@ -0,0 +1,14 @@
+
+\score
+{
+\notes \relative c'' {
+c4
+\bar "|."; c
+\bar "|:";c
+\bar "||";c
+\bar ":|" ; c
+\bar ".|"; c
+\bar ".|."; c
+\bar "|";  c
+} 
+}
index c6401107773c795afde48ab899dbcb4cf9e706b4..67bca857792a4c8376810b61003e3cf41b282da8 100644 (file)
@@ -51,8 +51,8 @@ c\longa*1/4 c\breve*1/2 c1 c2 c4 c8
                        a'^\flageolet
                        \property Voice . textStyle =  "roman"
                        \time 1/2; a2 |
-                       \time 3/2; < a1.
-                       { s4 \ppp \< s4 \! s4 \fff  s4 \> s4 \! s4\ppp} >
+               %       \time 3/2; < a1.
+               %       { s4 \ppp \< s4 \! s4 \fff  s4 \> s4 \! s4\ppp} >
                        |
                        \time 2/4; a2 |
                        \time 5/4; a1.. |
index 46cea92205076624ae998fa0ef94e9f14e1f99aa..b64a981a03cd2d2fc7ae8ebd5e2e6533fd8d3aa9 100644 (file)
@@ -2,7 +2,9 @@
 %  no alts.
 \score { \notes
   \relative c'' {
-\repeat volta 3 { c^"3$\\times$ 0alt" d }
+% repeat non aligning with barlines.
+e
+\repeat volta 3 { c^"3$\\times$ 0alt" d e }
 % less alts than body
 \repeat volta 4 { c^"4$\\times$ 2alt" d } \alternative { e f }
 
index 2f5c617ac64fea029aea2ec9438de2ab31824711..c75902783b546eabf421fc36630cb62d60ba288f 100644 (file)
 #include "dimension-cache.hh"
 
 void
-Align_element::do_post_processing()
+Align_element::after_line_breaking()
 {
   if (axis () == Y_AXIS)
     do_side_processing ();
 }
 
 void
-Align_element::do_pre_processing ()
+Align_element::before_line_breaking ()
 {
   if (axis () == X_AXIS)
     do_side_processing ();
index 81a41334301c06b6861c1e46b2137b579bda6f1c..0d6190706975248020e739127faadf070a4fd309 100644 (file)
@@ -147,3 +147,9 @@ All_font_metrics::font_descriptions () const
 }
 
 
+
+Font_metric*
+find_font (String name)
+{
+  return   all_fonts_global_p->find_font (name);
+}
index 95052f5e1dc5577f91c10d613c087c12f0191f4a..779d0781b0c196e0964dd18e59922438425d881f 100644 (file)
@@ -43,7 +43,7 @@ Auto_beam_engraver::do_try_music (Music*)
 } 
 
 void
-Auto_beam_engraver::do_process_requests ()
+Auto_beam_engraver::do_process_music ()
 {
   consider_end_and_begin (shortest_mom_);
 }
index ccc1183b819fadf2f5e982b0cd378b85482f997f..68c8760492952f82f607cd4806943128e87b4bcd 100644 (file)
@@ -107,7 +107,7 @@ Bar_engraver::do_removal_processing ()
 }
 
 void
-Bar_engraver::do_process_requests()
+Bar_engraver::do_process_music()
 {  
   Translator * t = daddy_grav_l  ()->get_simple_translator ("Timing_engraver");
 
index 1715fde5ded9c9eb23640871695f339173dc95d2..c334d087ee791a9cafd8d7811d4b0d2e9b016ed7 100644 (file)
@@ -22,7 +22,7 @@ Bar_number_engraver::Bar_number_engraver()
 
 
 void
-Bar_number_engraver::do_process_requests ()
+Bar_number_engraver::do_process_music ()
 {
   Translator *tr = daddy_grav_l ()->get_simple_translator ("Timing_engraver");
   Timing_translator *time = dynamic_cast<Timing_translator*>(tr);
index e4f66f1d35763b8f488db84228b9a7d0996c3181..7bcccfed32ea20ce9005359bdaa7107ef0d040f7 100644 (file)
@@ -5,7 +5,10 @@
 
   (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
+#include <math.h>
 
+#include "main.hh"
+#include "dimensions.hh"
 #include "dimension-cache.hh"
 #include "bar.hh"
 #include "string.hh"
@@ -13,7 +16,7 @@
 #include "paper-def.hh"
 #include "lookup.hh"
 #include "debug.hh"
-
+#include "all-font-metrics.hh"
 
 Bar::Bar ()
 {
@@ -32,14 +35,151 @@ Bar::get_bar_size () const
 Molecule 
 Bar::do_brew_molecule () const
 {
-  String s = ly_scm2string (get_elt_property ("glyph"));
-  return lookup_l ()->bar (s, get_bar_size (), paper_l ());
+  SCM s = get_elt_property ("glyph");
+  if (gh_string_p (s))
+    {
+      String str  =ly_scm2string (s);
+      if (str == "bracket")
+       return staff_bracket (get_bar_size ());
+      else if  (str == "brace")
+       return staff_brace (get_bar_size ());
+      else
+       return compound_barline (str, get_bar_size ());
+    }
+  return Molecule ();
+}
+
+
+Molecule
+Bar::staff_bracket (Real height) const 
+{
+  Paper_def* p= paper_l ();
+  SCM at = gh_list (ly_symbol2scm ("bracket"),
+                   gh_double2scm (p->get_var("bracket_arch_angle")),
+                   gh_double2scm (p->get_var("bracket_arch_width")),
+                   gh_double2scm (p->get_var("bracket_arch_height")),
+                   gh_double2scm (p->get_var("bracket_width")),
+                   gh_double2scm (height),
+                   gh_double2scm (p->get_var("bracket_arch_thick")),
+                   gh_double2scm (p->get_var("bracket_thick")),
+                   SCM_UNDEFINED);
+
+  Real staff_space = p->get_var ("interline");
+  Box b (Interval (0, 1.5 * staff_space), Interval (-height/2,height/2));
+  Molecule mol (b, at);
+  
+  mol.translate_axis (- mol.dim_[X_AXIS].length () / 2, X_AXIS);
+  return mol;
 }
 
+Molecule
+Bar::compound_barline (String str, Real h) const
+{
+  Real kern = paper_l()->get_var ("bar_kern");
+  Real thinkern = paper_l()->get_var ("bar_thinkern");
+
+  Molecule thin = simple_barline (paper_l()->get_var ("barthick_thin"), h);
+  Molecule thick = simple_barline (paper_l()->get_var ("barthick_thick"), h);
+  Molecule colon = lookup_l ()->afm_find ("dots-repeatcolon");  
+
+  Molecule m;
+  
+  if (str == "")
+    {
+      return lookup_l ()->blank (Box (Interval(0, 0), Interval (-h/2, h/2)));
+    }
+  if (str == "scorepostbreak")
+    {
+      return simple_barline (paper_l ()->get_var ("barthick_score"), h);
+    }
+  else if (str == "|")
+    {
+      return thin;
+    }
+  else if (str == "|.")
+    {
+      m.add_at_edge (X_AXIS, LEFT, thick, 0);      
+      m.add_at_edge (X_AXIS, LEFT, thin, kern);
+    }
+  else if (str == ".|")
+    {
+      m.add_at_edge (X_AXIS, RIGHT, thick, 0);
+      m.add_at_edge (X_AXIS, RIGHT, thin, kern);
+    }
+  else if (str == ":|")
+    {
+      m.add_at_edge (X_AXIS, LEFT, thick, 0);
+      m.add_at_edge (X_AXIS, LEFT, thin, kern);
+      m.add_at_edge (X_AXIS, LEFT, colon, kern);      
+    }
+  else if (str == "|:")
+    {
+      m.add_at_edge (X_AXIS, RIGHT, thick, 0);
+      m.add_at_edge (X_AXIS, RIGHT, thin, kern);
+      m.add_at_edge (X_AXIS, RIGHT, colon, kern);      
+    }
+  else if (str == ":|:")
+    {
+      m.add_at_edge (X_AXIS, LEFT, thick, thinkern);
+      m.add_at_edge (X_AXIS, LEFT, colon, kern);      
+      m.add_at_edge (X_AXIS, RIGHT, thick, kern);
+      m.add_at_edge (X_AXIS, RIGHT, colon, kern);      
+    }
+  else if (str == ".|.")
+    {
+      m.add_at_edge (X_AXIS, LEFT, thick, thinkern);
+      m.add_at_edge (X_AXIS, RIGHT, thick, kern);      
+    }
+  else if (str == "||")
+    {
+      m.add_at_edge (X_AXIS, RIGHT, thin, 0);
+      m.add_at_edge (X_AXIS, RIGHT, thin, thinkern);      
+    }
+
+  return m;
+}
+
+/*
+  ugh. Suck me plenty.
+ */
+Molecule
+Bar::staff_brace (Real y)  const
+{
+  Real staffht  = paper_l ()->get_var ("staffheight");
+  int staff_size  = int (rint (staffht ));
+
+  // URG
+  Real step  = 1.0;
+  int minht  = 2 * staff_size;
+  int maxht = 7 *  minht;
+  int idx = int (((maxht - step) <? y - minht) / step);
+  idx = idx >? 0;
+
+  SCM l = ly_eval_str ("(style-to-cmr \"brace\")");
+  String nm = "feta-braces";
+  if (l != SCM_BOOL_F)
+    nm = ly_scm2string (gh_cdr (l));
+  nm += to_str (staff_size);
+  SCM e =gh_list (ly_symbol2scm ("char"), gh_int2scm (idx), SCM_UNDEFINED);
+  SCM at = (e);
+
+  at = fontify_atom (all_fonts_global_p->find_font (nm), at);
+  
+  Box b ( Interval (-y/2,y/2),
+          Interval (0,0));
+  return Molecule(b, at);
+}
+  
+
+Molecule
+Bar::simple_barline (Real w, Real h) const
+{
+  return lookup_l ()->filledbox (Box (Interval(0,w), Interval(-h/2, h/2)));
+}
 
 
 void
-Bar::do_pre_processing ()
+Bar::before_line_breaking ()
 {
   SCM g = get_elt_property ("glyph");
   Direction bsd = break_status_dir ();
index 392d035808c5225f0b00f95d121fd0076adda549..cb65aa5863789a4c0f08b06f3d165f2088262cb6 100644 (file)
@@ -50,7 +50,7 @@ Beam_engraver::do_try_music (Music *m)
 
 
 void
-Beam_engraver::do_process_requests ()
+Beam_engraver::do_process_music ()
 {
   if (reqs_drul_[STOP])
     {
index 4b875343479d028c7637aa37da3074e53c409254..d641c8912c3443a4f2dd14d9af479c004459b7a8 100644 (file)
@@ -79,7 +79,7 @@ Beam::get_multiplicity () const
    their beam, during 'final-pre-processing'.]
  */
 void
-Beam::do_pre_processing ()
+Beam::before_line_breaking ()
 {
   // Why?
   if (visible_stem_count () < 2)
@@ -263,7 +263,7 @@ Beam::set_stem_shorten ()
   Adjust stem lengths to reach beam.
  */
 void
-Beam::do_post_processing ()
+Beam::after_line_breaking ()
 {
   /* first, calculate y, dy */
   Real y, dy;
index 84fa63071d832348032105f1099edf736c4194f4..dfb91c3845ba2fb870f30a828f1b7107d34799a9 100644 (file)
@@ -24,7 +24,7 @@
 */
 
 void
-Break_align_item::do_pre_processing()
+Break_align_item::before_line_breaking ()
 {
   Direction ad = (break_status_dir() == LEFT) ? RIGHT : LEFT;
   Real interline= paper_l ()->get_var ("interline");   
@@ -103,7 +103,7 @@ Break_align_item::do_pre_processing()
   scm_set_car_x (first_pair, gh_double2scm (-dists[0]));
   elems[0]->set_elt_property ("minimum-space", first_pair);
   
-  Axis_align_item::do_pre_processing();
+  Axis_align_item::before_line_breaking ();
 
 
   Real pre_space = elems[0]->relative_coordinate (column_l (), X_AXIS);
index 46761a934fe27dd60fe37980a180af17614860bc..afa950d618bbd159bf38e1e0838c967c9a2ab2b0 100644 (file)
@@ -42,7 +42,7 @@ Breathing_sign_engraver::do_try_music (Music*r_l)
 }
 
 void
-Breathing_sign_engraver::do_process_requests()
+Breathing_sign_engraver::do_process_music()
 {
   if(breathing_sign_req_l_)
     {
index 54120930f3a3698f020b49addb26f7a7bab2a0f2..0b9758edc38ae7eb035202e489bcae642368927c 100644 (file)
@@ -39,7 +39,7 @@ Breathing_sign::do_brew_molecule () const
 }
 
 void
-Breathing_sign::do_post_processing()
+Breathing_sign::after_line_breaking ()
 {
   Real space = staff_symbol_referencer (this).staff_space();
   Direction d = directional_element (this). get ();
index cf2891b02c3c24c25347c6c9bb9505b9ef701380..eb28971785a01cf8fa2e3a56126ced2cbe61676c 100644 (file)
@@ -61,7 +61,7 @@ Chord_name_engraver::do_try_music (Music* m)
 }
 
 void
-Chord_name_engraver::do_process_requests ()
+Chord_name_engraver::do_process_music ()
 {
   if (chord_name_p_)
     return;
index 154d2734263f50c717ac03c1a1f2af7fbcec5420..769ec5a3fcba7d7bb50500326e0fe75541d14782 100644 (file)
@@ -35,7 +35,7 @@ public:
 
 protected:
   virtual void do_removal_processing();
-  virtual void do_process_requests();
+  virtual void do_process_music();
   virtual bool do_try_music (Music*);
   virtual void acknowledge_element (Score_element_info);
   virtual void do_pre_move_processing();
@@ -92,7 +92,7 @@ Chord_tremolo_engraver::do_try_music (Music* m)
 }
 
 void
-Chord_tremolo_engraver::do_process_requests ()
+Chord_tremolo_engraver::do_process_music ()
 {
   if (reqs_drul_[STOP])
     {
index 162cc06978b3e6bbc72917d050ea9d6d89e4c086..835b2c57604ae4bea51cf02678024d63d41bc810 100644 (file)
@@ -29,7 +29,7 @@ class Clef_engraver : public  Engraver {
   void create_clef();
   bool set_type (String);
 protected:
-  virtual void do_process_requests();
+  virtual void do_process_music();
   virtual void do_pre_move_processing();
   virtual void do_creation_processing();
   virtual void do_post_move_processing();
@@ -183,7 +183,7 @@ Clef_engraver::create_clef()
 
 
 void
-Clef_engraver::do_process_requests()
+Clef_engraver::do_process_music()
 {
   if (clef_req_l_)
     {
index 35f4d46bf377e947cfeb8cc7fc5302d629ebbc1d..d49534d727bcca9a0aecc4d92d40e4786b31c08a 100644 (file)
@@ -19,7 +19,7 @@
 #include "warn.hh"
 
 void
-Clef_item::do_pre_processing()
+Clef_item::before_line_breaking ()
 {
   SCM style_sym =get_elt_property ("style");
   String style;
index 0de6a942f84a66948e38fe427717703bb66b834e..161016104ca00ebf238b4d7c1f8742fbe027cf03 100644 (file)
@@ -28,7 +28,7 @@ Collision::add_column (Note_column* ncol_l)
  */
 
 void
-Collision::do_pre_processing()
+Collision::before_line_breaking ()
 {
   Array<Shift_tup> autos (automatic_shift ());
   Array<Shift_tup> hand (forced_shift ());
index 2e80a913bc1150ace6da548cb0c5043e38fcb204..d9331f89074bc6dddcfc3ded34995ebde9a4ad3e 100644 (file)
@@ -70,7 +70,7 @@ Dot_column::Dot_column ()
    Should be smarter.
  */
 void
-Dot_column::do_post_processing ()
+Dot_column::after_line_breaking ()
 {
   Link_array<Dots> dots = Group_interface__extract_elements (this, (Dots*)0 , "dots"); 
   dots.sort (Dot_column::compare);
index f63f77ddae1e57d08191c2cf3840591aede312a6..7846e2d36769d29204309e970d07b1d6c1054d48 100644 (file)
@@ -19,7 +19,7 @@ Dots::Dots ()
 }
 
 void
-Dots::do_post_processing ()
+Dots::after_line_breaking ()
 {
   SCM d= get_elt_property ("dot-count");
   if (!gh_number_p (d) || !gh_scm2int (d))
@@ -42,7 +42,7 @@ Dots::do_post_processing ()
 Molecule  
 Dots::do_brew_molecule () const
 {
-  Molecule mol (lookup_l ()->fill (Box (Interval (0,0),
+  Molecule mol (lookup_l ()->blank (Box (Interval (0,0),
                                          Interval (0,0))));
   Molecule d = lookup_l ()->afm_find (String ("dots-dot"));
 
index b729de9c6574031d1598ec38e67d7ad8bbe798ea..87ab488ac69d193b33f935a6bb5ac922e6d0e968 100644 (file)
@@ -84,7 +84,7 @@ protected:
   virtual void do_removal_processing ();
   virtual void acknowledge_element (Score_element_info);
   virtual bool do_try_music (Music *req_l);
-  virtual void do_process_requests ();
+  virtual void do_process_music ();
   virtual void do_pre_move_processing ();
   virtual void do_post_move_processing ();
 };
@@ -151,7 +151,7 @@ Dynamic_engraver::do_try_music (Music * m)
 }
 
 void
-Dynamic_engraver::do_process_requests ()
+Dynamic_engraver::do_process_music ()
 {
   if ((span_req_l_drul_[START] || text_req_l_) && !line_spanner_)
     {
index 9cab9a6db5c6c7484ea82b233d28758e1aa8ef06..aba5025d69d2f069c9303c35e4426d5f907f6cab 100644 (file)
@@ -65,7 +65,7 @@ Extender_engraver::do_removal_processing ()
 }
 
 void
-Extender_engraver::do_process_requests ()
+Extender_engraver::do_process_music ()
 {
   if (req_l_)
     {
index a590aa1a242e4286ebebbe9c610e3ff3f49e576c..0f5cbfb5d937a7243fedf4ba8454f6cffa560633 100644 (file)
@@ -50,7 +50,7 @@ Extender_spanner::do_brew_molecule () const
 
 
 void
-Extender_spanner::do_post_processing ()
+Extender_spanner::after_line_breaking ()
 {
   // UGH
   Real gap = paper_l ()->get_var ("interline");
index 3d3df3ca0f17835da6b05043f6e2c1e4f48d2f12..2ae9d267e9146c6cbdd3e0861664b689defdf512 100644 (file)
@@ -19,7 +19,7 @@ Grace_align_item::Grace_align_item ()
 }
   
 void
-Grace_align_item::do_pre_processing ()
+Grace_align_item::before_line_breaking ()
 {
   Real nhw = // lookup_l ()->notehead (2, "").dim_[X_AXIS].length();
     paper_l ()->get_var ("quartwidth");
@@ -28,7 +28,7 @@ Grace_align_item::do_pre_processing ()
   column_l ()->set_elt_property ("contains-grace", SCM_BOOL_T);
 
   
-  Axis_align_item::do_pre_processing ();
+  Axis_align_item::before_line_breaking ();
   //  translate_axis (-0.5* nhw, X_AXIS); // ugh.
 }
 
index f5b1e472949a210d04056b4a79622183867b2c33..3abb6296f2ab93d92c4a5831a7420d6f5169d60c 100644 (file)
@@ -28,7 +28,7 @@ Hara_kiri_group_spanner::add_interesting_item (Item* n)
 }
 
 void 
-Hara_kiri_group_spanner::do_post_processing ()
+Hara_kiri_group_spanner::after_line_breaking ()
 {
   SCM worth = get_elt_property ("items-worth-living");
   if (gh_pair_p (worth))
index b259f296702c3e901cac601535eeddd52359938e..72eb2268fe7974bba01c2b0860a81d3780b797bf 100644 (file)
@@ -63,7 +63,7 @@ Hyphen_engraver::do_removal_processing ()
 }
 
 void
-Hyphen_engraver::do_process_requests ()
+Hyphen_engraver::do_process_music ()
 {
   if (req_l_)
     {
index 3fd4f63bc992c59cd6fa08a3c25fd4125b3a2fcd..5f41e23d531623affc4198969311d9cb65bd794a 100644 (file)
@@ -57,7 +57,7 @@ Hyphen_spanner::do_brew_molecule () const
 
 
 void
-Hyphen_spanner::do_post_processing ()
+Hyphen_spanner::after_line_breaking ()
 {
   // UGH
   Real gap = paper_l ()->get_var ("interline");
index c6e230df5d058e5bc75fa46bdf3c18f44e527ed5..49d4e4bab1039c069efe7bbd5209a0edae45a415 100644 (file)
@@ -50,8 +50,8 @@ public:
   void set_axis (Axis);
   int get_count (Score_element*)const;
 protected:
-  virtual void do_post_processing() ;
-  virtual void do_pre_processing ();
+  virtual void after_line_breaking () ;
+  virtual void before_line_breaking ();
   virtual void do_side_processing ();
 };
 #endif // VERTICAL_ALIGN_ITEM_HH
index fa6eb9097c014468071fe8ea60aa139e643d388b..02d59dae09b4277755d205c8c7bc1dc70d7cdb4b 100644 (file)
@@ -38,5 +38,7 @@ public:
   SCM font_descriptions () const;
 };
 
+Font_metric * find_font (String name);
+
 #endif /* ALL_FONTS_HH */
 
index 6621ecce1ac3c8870a96b63100adc19fee728ac2..2c7575fde4e46934a004f9729e002167c0a80f56 100644 (file)
@@ -24,7 +24,7 @@ protected:
   virtual void do_post_move_processing ();
   virtual void do_removal_processing ();
   virtual void acknowledge_element (Score_element_info);
-  virtual void do_process_requests ();
+  virtual void do_process_music ();
   virtual void process_acknowledged ();
   virtual void do_creation_processing ();
 private:
index 388cc171495b99a113acdf2241113d05631d9586..7f446bcd13d2a54123b185d921f318684104cefb 100644 (file)
@@ -26,7 +26,7 @@ public:
 protected:
   virtual void do_creation_processing ();
   virtual void do_removal_processing ();
-  virtual void do_process_requests();
+  virtual void do_process_music();
   virtual void do_pre_move_processing();
 
 
index eb1c7de7faf907b47bf79d5457f82608ec8eff7b..22c6c3ef22069fa387a416c3241a01c3389fff5f 100644 (file)
@@ -14,7 +14,7 @@
 
 class Bar_number_engraver : public Bar_script_engraver {
 protected:
-  void do_process_requests ();
+  void do_process_music ();
 public:
   VIRTUAL_COPY_CONS(Translator);
   Bar_number_engraver();
index 1e4f8c539a64ae5c4ad64264eccc33cd1237c47d..994f04b5006b7b7c5394329801e0b61509a28167 100644 (file)
@@ -15,8 +15,14 @@ class Bar:public Item {
 public:
   VIRTUAL_COPY_CONS(Score_element);
   Bar();
+
+  Molecule staff_bracket (Real height) const;
+  Molecule staff_brace (Real height) const;
+  Molecule compound_barline (String, Real height) const;
+  Molecule simple_barline (Real wid, Real height) const;      
+
 protected:
-  virtual void do_pre_processing ();
+  virtual void before_line_breaking ();
   virtual Molecule  do_brew_molecule () const;
   virtual Real get_bar_size () const;
 };
index 044cfaddb7f6460c25d63fd35624f9c76997bc38..9393529a111b33017b3ff74dd401443c5848d1bf 100644 (file)
@@ -36,7 +36,7 @@ protected:
   virtual void do_removal_processing ();
   virtual void acknowledge_element (Score_element_info);
   virtual bool do_try_music (Music*);
-  virtual void do_process_requests ();
+  virtual void do_process_music ();
 public:
   Beam_engraver ();
   VIRTUAL_COPY_CONS (Translator);
index aff606c7a99aacbe39b078a22062aefeae2e76ea..54f6d04bdcb86fcf31c9ea38694a00297ae209a6 100644 (file)
@@ -45,8 +45,8 @@ public:
 
 protected:
  
-  virtual void do_pre_processing ();
-  virtual void do_post_processing ();
+  virtual void before_line_breaking ();
+  virtual void after_line_breaking ();
   virtual Molecule do_brew_molecule () const;
 
   Molecule stem_beams (Stem *here, Stem *next, Stem *prev) const;
index 20d5a3f749e8fbf02638869f562bc3767c540182..791e104f0066590309ccbeb4a88efa2992cb942f 100644 (file)
@@ -17,7 +17,7 @@ class Break_align_item : public Axis_align_item {
 
 
 protected:
-  virtual void do_pre_processing();
+  virtual void before_line_breaking ();
 public:
   Break_align_item ();
   VIRTUAL_COPY_CONS(Score_element);
index 3c003081e5f2b5ad4313db3ce330442c9526c502..ef0fa899fa8b1e736729e2cf21742668867055c7 100644 (file)
@@ -21,7 +21,7 @@ public:
   
 protected:
   virtual bool do_try_music (Music *req_l);
-  virtual void do_process_requests();
+  virtual void do_process_music();
 
   virtual void do_pre_move_processing();
   virtual void do_post_move_processing();
index 83cf87e5e8266a38494ba9c0405e07b5f0b09ee3..ca074df3fa1a7bbaed132daa9e153f4cc86c39cd 100644 (file)
@@ -19,7 +19,7 @@ public:
   VIRTUAL_COPY_CONS(Score_element);
   Breathing_sign ();
 protected:
-  virtual void do_post_processing ();
+  virtual void after_line_breaking ();
   virtual Molecule do_brew_molecule () const;
 };
 
index c9a9886f6cef029a63e8f70cc5491bc807bc48f3..e8b780d383e3af61d845a8541285656c4f5bf8ff 100644 (file)
@@ -23,7 +23,7 @@ public:
 protected:
   virtual void do_pre_move_processing ();
   virtual void acknowledge_element (Score_element_info i);
-  virtual void do_process_requests ();
+  virtual void do_process_music ();
   virtual bool do_try_music (Music* m);
 
 private:
diff --git a/lily/include/chord-tremolo-engraver.hh b/lily/include/chord-tremolo-engraver.hh
deleted file mode 100644 (file)
index e69de29..0000000
index a5d5585db387eece4452c2cad96a27c41bda9665..60322e19ed3f59c38c67267b2b78b5f300eb63c6 100644 (file)
@@ -26,7 +26,7 @@
 class Clef_item : public Item
 {
 protected:
-  virtual void do_pre_processing();
+  virtual void before_line_breaking ();
   virtual void do_add_processing ();
 public:
   VIRTUAL_COPY_CONS(Score_element);
index 4fe2de3906551995e5c48691cc5925d2278648c6..f64db66504f06871fd42884481852415bcb219cc 100644 (file)
@@ -29,7 +29,7 @@ protected:
   Array<Shift_tup> automatic_shift ();
   Array<Shift_tup> forced_shift ();
   
-  virtual void do_pre_processing();
+  virtual void before_line_breaking ();
 public:
     
   void add_column (Note_column*ncol_l);
index de7d522f05b1480673368023612f986d93daee53..9679bf32a4a28f325a1bf74d5775ae1c0a7606b2 100644 (file)
@@ -26,6 +26,6 @@ public:
   Dot_column ();
 
 protected:
-  virtual void do_post_processing ();
+  virtual void after_line_breaking ();
 };
 #endif // DOT_COLUMN_HH
index 6a36c9ef06e6e2ce02e6e9be9da9da80781c4d80..4f3ba7200bda74ac93280ecbbfca3add88aca07f 100644 (file)
@@ -22,7 +22,7 @@ class Dots :
 {
 protected:
   virtual Molecule do_brew_molecule () const;
-  virtual void do_post_processing ();
+  virtual void after_line_breaking ();
 public:
   
   Dots ();
index 28e9dadeb90b39d2f71fdf798a0e78a4995d1119..9973f41d319f54a0c7cd20e8d2135dea93967ce5 100644 (file)
@@ -39,7 +39,7 @@ public:
 protected:
   virtual void acknowledge_element (Score_element_info);
   virtual void do_removal_processing();
-  virtual void do_process_requests();
+  virtual void do_process_music();
   virtual bool do_try_music (Music*);
   virtual void do_pre_move_processing();
   virtual void do_post_move_processing ();
index 0fa11e6f5750579305bec02b3feddf94e8992fb9..d2d0b021ef19e2dae63cf2b1937a0020bd114b24 100644 (file)
@@ -35,7 +35,7 @@ public:
 
 protected:
   virtual Molecule do_brew_molecule () const;
-  void do_post_processing ();
+  void after_line_breaking ();
  
   VIRTUAL_COPY_CONS (Score_element);
 
index c0fbb35c04887ccf40d7bada289924c1cd35bdda..5ebc44dd7b3f95d3a58bc0e99521d523594e50d1 100644 (file)
@@ -23,7 +23,7 @@ class Font_size_engraver : public Engraver {
   Protected_scm size_;
 protected:
   virtual void acknowledge_element (Score_element_info);
-  virtual void  do_process_requests ();
+  virtual void  do_process_music ();
 public:
   Font_size_engraver ();
   
index ee8d0ce6f2cee2024c3f5a92b924992f7b39c83c..028ff632552069f8ea6a9b4266e534f565034219 100644 (file)
@@ -20,7 +20,7 @@ public:
   Grace_align_item ();
 protected:
   virtual void do_add_processing ();
-  virtual void do_pre_processing ();
+  virtual void before_line_breaking ();
 };
 #endif /* GRACE_ALIGN_ITEM_HH */
 
index a6245449dd4046e4bda8e763244e7acc9638be80..bba2981777b7b2dee617fa2524750cadd59603fa 100644 (file)
@@ -21,7 +21,7 @@ class Hara_kiri_group_spanner : public Axis_group_spanner
 {
 public:
   Hara_kiri_group_spanner ();
-  virtual void do_post_processing ();
+  virtual void after_line_breaking ();
   void add_interesting_item (Item* n);
 protected:
   VIRTUAL_COPY_CONS(Score_element);
index d8af602c1240e531c230dd0ccc57da38bb700c5f..4db4d25bff238e5ed064daea63fbba3b67ad2f96 100644 (file)
@@ -38,7 +38,7 @@ public:
 protected:
   virtual void acknowledge_element (Score_element_info);
   virtual void do_removal_processing();
-  virtual void do_process_requests();
+  virtual void do_process_music();
   virtual bool do_try_music (Music*);
   virtual void do_pre_move_processing();
   virtual void do_post_move_processing ();
index 2530a5e1161514a9787ddf5b7138335f32097262..ec60dee675302c50d6e7a9e879d73b23a126ebb2 100644 (file)
@@ -28,7 +28,7 @@ protected:
   virtual Molecule do_brew_molecule () const;
   Interval do_height () const;
 
-  void do_post_processing ();
+  void after_line_breaking ();
  
   VIRTUAL_COPY_CONS (Score_element);
 
index c80a28770eea7005105bb2e4bbafc460d3bb5dac..51cc20d2c5fd12add7e52b4c2c0f7050f3a34691 100644 (file)
@@ -37,7 +37,7 @@ virtual Class *  access_content_ ## Class (bool) const { error (#Class  + String
 /**
    A declarable data structure in mudela.
 
-   TODO: use SCM and SMOBS for union datatype.
+   TODO: use SMOBS for the union type, and junk all derived classes.
    */
 struct Identifier : public Input {
   bool init_b_;
index 6e7850290de6ac970acd839793c9f5844538a975..cbd80e8d423fb1ed52a375a33bfee6dee9707940 100644 (file)
@@ -36,7 +36,7 @@ public:
     
 protected:
   virtual bool do_try_music (Music *req_l);
-  virtual void do_process_requests();
+  virtual void do_process_music();
   virtual void do_pre_move_processing();
   virtual void do_post_move_processing();
   virtual void acknowledge_element (Score_element_info);
index 335614b91e8c579a1bea84e8ef4047112f6aa7bf..535cb3e1bdcde6c9996b877233040239f4fc7fab 100644 (file)
@@ -23,7 +23,7 @@ public:
 protected:
   void do_print() const;
   virtual bool do_try_music (Music* req_l);
-  virtual void do_process_requests ();
+  virtual void do_process_music ();
   virtual void do_pre_move_processing ();
 
 private:
index 3e2063167b0e0106af822f7416057b425525a86b..3cfb339ce193e62d316db58b586920dd204c7e4e 100644 (file)
@@ -49,7 +49,7 @@ public:
 
   void add_pitch (Musical_pitch, bool cautionary, bool natural);
 protected:
-  virtual void do_pre_processing();
+  virtual void before_line_breaking ();
   virtual Molecule do_brew_molecule() const;
 };
 #endif // LOCALKEYITEM_HH
index 2a227470fed0d3ed23510f278459e844e8983b8f..4563501eccf5c8b99b1f266cc2955464f8c090ba 100644 (file)
@@ -30,20 +30,16 @@ public:
   Lookup ();
   Lookup (Lookup const&);
 
-  Molecule simple_bar (String s, Real w, Paper_def*) const;
   Molecule afm_find (String, bool warn=true) const;
-  Molecule bar (String, Real height, Paper_def*) const;
   Molecule accordion (SCM arg, Real interline_f) const;
 
   static Molecule frame (Box b, Real thick);
   static Molecule slur (Bezier controls, Real cthick, Real thick) ;
   static Molecule beam (Real, Real, Real) ;
   static Molecule dashed_slur (Bezier, Real thick, Real dash) ;
-  static Molecule fill (Box b) ;
+  static Molecule blank (Box b) ;
   static Molecule filledbox (Box b) ;  
   static Molecule text (String style, String text, Paper_def*) ;
-  static Molecule staff_brace (Real dy, int) ;
-  static Molecule staff_bracket (Real height, Paper_def* paper_l) ;
 };
 
 #endif // LOOKUP_HH
index 7ed599e27560373101f856f78c65e2211d0a0f34..1ef2eb7490c1ea1bdd45bddf27d880452b6626bc 100644 (file)
@@ -23,7 +23,7 @@ class Lyric_engraver : public Engraver
 protected:
   virtual void do_pre_move_processing();
   virtual bool do_try_music (Music*);
-  virtual void do_process_requests();
+  virtual void do_process_music();
   virtual void do_post_move_processing ();
 public:
   Lyric_engraver ();
index 6619ab29ee73745151e00126860cdcd913c6a95e..89890b498231a732555aa2e600e4c1b03e06cbe1 100644 (file)
@@ -22,7 +22,7 @@ public:
 protected:
   void do_print() const;
   virtual bool do_try_music (Music* req_l);
-  virtual void do_process_requests();
+  virtual void do_process_music();
   virtual void do_pre_move_processing ();
 
 private:
index 6992a2fa4241bf5b270153630f283e376061cc33..ec5ed0e409cb407c884ea4faa7e631e20f1ac93a 100644 (file)
@@ -73,9 +73,14 @@ public:
   Box extent() const;
   Interval extent (Axis) const;
   bool empty_b() const;
-  void print ()const;
+
+
+  /*******/
 };
 
 SCM fontify_atom (Font_metric*, SCM atom);
 
+
+
+
 #endif
index 527e93fcd68c20f4e7931648dcc8d247e8b3358c..8dfbba2f5f7b2c4cd3c92f01785dc46dc96ea95c 100644 (file)
@@ -25,7 +25,7 @@ protected:
   VIRTUAL_COPY_CONS (Score_element);
 
   virtual void do_add_processing ();
-  virtual void do_post_processing ();
+  virtual void after_line_breaking ();
   virtual Array<Rod> get_rods () const;
 };
 
index 48f6215d48b5602abd37b3321bee790509f5a29d..df0876b598d7e17f41da28daa0ddd06e673755f7 100644 (file)
@@ -17,7 +17,7 @@
   (chord) and scripts) as a single entity.  */
 class Note_column : public Axis_group_item {
 protected:
-  virtual void do_post_processing () ;
+  virtual void after_line_breaking () ;
 public:
 
   static int shift_compare (Note_column *const &, Note_column*const&);
index fbebc0a4042a58916685a3fbf0434d379fc740e9..dcdeca9ca447689da8c252a889de832fd12c1180 100644 (file)
@@ -23,7 +23,7 @@ public:
   Molecule ledger_line (Interval) const;
 protected:
   
-  virtual void do_pre_processing();
+  virtual void before_line_breaking ();
   virtual Molecule do_brew_molecule() const;
 };
 #endif // NOTEHEAD_HH
index 1d8d667975c9187de70322e92c4288940836ab35..39eb3868fe1fbf927e0698dd3c41db1dfbc2618b 100644 (file)
@@ -24,7 +24,7 @@ public:
   
 protected:
   virtual bool do_try_music (Music *req_l) ;
-  virtual void do_process_requests();
+  virtual void do_process_music();
   virtual void do_pre_move_processing();
 };
 
index beaae306d9055bdcd715ca6d62661f103a588485..f9af35188d72bc03909eb72e5464ba56c695057d 100644 (file)
@@ -21,7 +21,7 @@ public:
   Note_performer();
 
 protected:
-  virtual void do_process_requests ();
+  virtual void do_process_music ();
   virtual bool do_try_music (Music *req_l) ;
   virtual void do_print () const;
   virtual void do_pre_move_processing ();
index f3887077b37528f540583d7a8b1910048a1cbb50..bd8bbd9237abdc3cbbccaaa0a90c0d99aa327e63 100644 (file)
@@ -40,7 +40,7 @@ protected:
   virtual void acknowledge_element (Score_element_info i);
   virtual void do_removal_processing ();
   virtual bool do_try_music (Music *req_l);
-  virtual void do_process_requests();
+  virtual void do_process_music();
   virtual void do_pre_move_processing();
   virtual void do_post_move_processing ();
   void queue_events ();
index 8de616c71dc097f4a7cb3b4f6e27396c027b8e60..eac7a48a0ffe938e3636c073aa0e456812f1ddb4 100644 (file)
@@ -20,6 +20,6 @@ public:
     
   Rest_collision();
 protected:
-  virtual void do_pre_processing();
+  virtual void before_line_breaking ();
 };
 #endif // REST_COLLISION_HH
index a3b6ced3e3190f122c2d6963d70c1546edd284b7..54d5967480f15343ab974d603c8a0c425fc58dde 100644 (file)
@@ -21,7 +21,7 @@ protected:
   virtual bool do_try_music (Music *);
   virtual void do_pre_move_processing ();
   virtual void do_post_move_processing ();
-  virtual void do_process_requests ();
+  virtual void do_process_music ();
 public:
   
   VIRTUAL_COPY_CONS(Translator);
index 56b13441a6a4a5a7bb829fe85d03d031ba525831..21ab46ae038664a0a58600f2fdeff8b22aa869d8 100644 (file)
@@ -15,7 +15,7 @@
 class  Rest : public Rhythmic_head
 {
 protected:
-  virtual void do_post_processing ();
+  virtual void after_line_breaking ();
   virtual Molecule do_brew_molecule () const;
 };
 #endif // REST_HH
index 3de4c87acef1aee084ece70dc06df8837694b920..2435085d57cc27e1fae565d887f84c5c6a9743e8 100644 (file)
@@ -23,7 +23,7 @@ public:
   Dots * dots_l () const;
   int dot_count () const;
 protected:
-  virtual void do_post_processing ();
+  virtual void after_line_breaking ();
 };
 
 #endif // RHYTHMIC_HEAD_HH
index 0a15bfce9a99a67785295249db04bff9d53a20ee..409fc1a3cf050e14e498d47cbd5654df71d28d5f 100644 (file)
 #ifndef SCM_HASH_HH
 #define SCM_HASH_HH
 
+
+#include <map>
+
 #include "lily-guile.hh"
 #include "hash-table.hh"
 #include "smobs.hh"
 
+#define usestl
+
+struct SCM_less
+{
+  bool operator  () (SCM s1, SCM s2) const
+  {
+    return long(s1) < long (s2);
+  }
+};
+
+typedef map<SCM,SCM, SCM_less> Scm_stl_map;
+
 /**
    auto resizing hash table. This should come from GUILE.
  */
-class Scheme_hash_table : private Hash_table<SCM,SCM>
+class Scheme_hash_table :  private Scm_stl_map
 {
 public:
+#ifndef usestl 
   //  bool elem_b (SCM k) const;
   Hash_table<SCM,SCM>::try_retrieve;
   Hash_table<SCM,SCM>::elem_b;  
+#else
+  bool try_retrieve (SCM key, SCM *val);
+  bool elem_b (SCM key) const;
+#endif
+
+
   /**
      WARNING: putting something in assumes responsibility for cleaning
      up.  */
index e3bec466effb37c587f251da14e0711d01fd87b8..8eb39f509bb0adc799303eda1e109c215a8f20c9 100644 (file)
@@ -141,14 +141,14 @@ protected:
   ///executed directly after the item is added to the Paper_score
   virtual void do_add_processing ();
   /// do calculations before determining horizontal spacing
-  virtual void do_pre_processing ();
+  virtual void before_line_breaking ();
 
   /// generate rods & springs
   virtual void do_space_processing ();
 
   virtual void do_breakable_col_processing ();
   /// do calculations after determining horizontal spacing
-  virtual void do_post_processing ();
+  virtual void after_line_breaking ();
     
   virtual Link_array<Score_element> get_extra_dependencies () const;
 
index 4f6e2bca81daedf0a370ead98a2d97a79165e2ad..9e2b9ded5f23a2a16547cc7b671319e9f5fb6012 100644 (file)
@@ -18,7 +18,7 @@ public:
   Script_column();
   void add_staff_sided (Item*);
 protected:
-  virtual void do_pre_processing ();
+  virtual void before_line_breaking ();
 };
 
 
index b9c0be1238116e6f3d7835429fe49dfa3a868133..c6ee25529ec0bf1dc6f2c5d326a0f8b955782e22 100644 (file)
@@ -24,8 +24,8 @@ class Script : public Item
 public:
   
 protected:
-  virtual void do_pre_processing ();
-  virtual void do_post_processing ();
+  virtual void before_line_breaking ();
+  virtual void after_line_breaking ();
   Molecule do_brew_molecule () const;
 };
 
index d82cb95cdb374eb455c54a59ae14a94032d44f2b..f639783421bc095a6ba6cf8f997cec2277ece4d0 100644 (file)
@@ -19,7 +19,7 @@ class Slur_engraver :public Engraver {
   void set_melisma (bool);
 protected:
   virtual bool do_try_music (Music*);
-  virtual void do_process_requests();
+  virtual void do_process_music();
   virtual void acknowledge_element (Score_element_info);
   virtual void do_pre_move_processing();
   virtual void do_post_move_processing();
index 93844719ccc2717f246902c960218ce350d5ce2b..cb202f1e93032f41214176105842a1f9da8af21d 100644 (file)
@@ -30,7 +30,7 @@ protected:
   Drul_array<Real> dx_f_drul_;
 
   virtual Direction get_default_dir () const;
-  virtual void do_post_processing ();
+  virtual void after_line_breaking ();
   virtual void do_add_processing ();
   Array<Rod> get_rods () const;
 
index 8100bbafedec5078ca1dc7c92f2da88e1da6c3ce..bc93e8fe3dbdd9470e48be1edbde299d92e4ca24 100644 (file)
@@ -36,9 +36,9 @@ protected:
   static Interval width_callback(Dimension_cache const*) ;
   static Interval height_callback(Dimension_cache const*) ;  
   
-  virtual void do_pre_processing();
-  virtual void do_post_processing();
-  virtual Molecule do_brew_molecule() const;
+  virtual Real get_bar_size () const;
+  virtual void before_line_breaking ();
+  virtual void after_line_breaking ();
 };
 
 #endif // SPAN_BAR_HH
index 4c552e081f9c86a01bf0c04b29810e87f2eff51d..12abd08cfbff14a6e8dd9df91c19936d64f68d4f 100644 (file)
@@ -30,7 +30,7 @@ protected:
   virtual void play_element (Audio_element* p);
   virtual void do_removal_processing ();
   virtual void do_creation_processing ();
-  virtual void do_process_requests ();
+  virtual void do_process_music ();
   virtual void do_pre_move_processing ();
 
 private:
diff --git a/lily/include/stem-engraver.hh b/lily/include/stem-engraver.hh
deleted file mode 100644 (file)
index e69de29..0000000
index b31627019fa6f5b3850b0e9d01b246c83599917a..8eee7cee7ed13c1176f2c456892abb4a46a7bc1e 100644 (file)
@@ -89,7 +89,7 @@ protected:
 protected:
   Molecule flag () const;
 
-  virtual void do_pre_processing();
+  virtual void before_line_breaking();
   static Interval dim_callback (Dimension_cache const*);
   virtual Molecule do_brew_molecule() const;
 
index cdc121c06eaa5a693a147f19b7479ba959801bfb..8c574bb68330911343baddd4fa1b28ec29320763 100644 (file)
@@ -27,7 +27,6 @@ public:
   void space_processing ();
   void pre_processing();
   void breakable_col_processing();
-  void break_processing();
   void post_processing();
   void output_all ();
 };
index fc7be5139ab009217766c0e9e070c05a8b383b5b..086b731cd3804bbcfa99d3adce3d24faf7c019cc 100644 (file)
@@ -23,7 +23,7 @@ public:
 protected:
   void do_print() const;
   virtual bool do_try_music (Music* req_l);
-  virtual void do_process_requests();
+  virtual void do_process_music();
   virtual void do_pre_move_processing ();
 
 private:
index d4de3697df80441d01aed8c97002c641592f64ec..cdbe522201becfc5d0cb66c7bcb3a1dcffdba3f9 100644 (file)
@@ -20,7 +20,7 @@ public:
   void add_tie (Tie*);
   Tie_column ();
 protected:
-  virtual void do_post_processing ();
+  virtual void after_line_breaking ();
   void set_directions ();
   
 };
index 8e3d9d50e80b03eaa77f215132404e82cfac3ece..6b1f9244702947d4bb3301d76aed5dd66227cd58 100644 (file)
@@ -54,7 +54,7 @@ protected:
   virtual void do_pre_move_processing ();
   virtual void acknowledge_element (Audio_element_info);
   virtual bool do_try_music (Music*);
-  virtual void do_process_requests ();
+  virtual void do_process_music ();
   virtual void process_acknowledged ();
 
 };
index 53dc0733ec0d2c2c8110d6c1683a85d9e877a965..4240193247a4b2017158ebe33547c0bc4bf2ad9b 100644 (file)
@@ -37,7 +37,7 @@ protected:
   Drul_array<Real> dx_f_drul_;
 
   virtual void do_add_processing ();
-  virtual void do_post_processing ();
+  virtual void after_line_breaking ();
 
   virtual Array<Rod> get_rods () const;
 
index aa35e921ee5becd7ddec2112968db8f6cad6d1fd..11959f816f04d34214c91ab1d96c77e82493a14e 100644 (file)
@@ -17,7 +17,7 @@
   */
 class Time_signature_engraver : public Engraver {
 protected:
-  virtual void do_process_requests();
+  virtual void do_process_music();
   virtual void do_pre_move_processing();
 public:
   VIRTUAL_COPY_CONS(Translator);
index c2c8330715805cde845927cac703dccb0c00eb54..7226d1c086897e22a0f17512823d591a7af376fd 100644 (file)
@@ -23,7 +23,7 @@ public:
 protected:
   void do_print() const;
   virtual bool do_try_music (Music* req_l);
-  virtual void do_process_requests();
+  virtual void do_process_music();
   virtual void do_pre_move_processing ();
 
 private:
index 4309878562f4f074529a2648b39de2583be42dee..c60d4de3b5b48f88b592e00dfd771230821935e6 100644 (file)
@@ -26,7 +26,7 @@ public:
 protected: 
   virtual void do_creation_processing ();
   virtual bool do_try_music (Music *req_l);
-  virtual void do_process_requests();
+  virtual void do_process_music();
   virtual void do_pre_move_processing();
   virtual void do_post_move_processing();
 
index 11df320ce8a7bc08cbf9eb105c8689f2d187bf55..b2cba74b19dae4802dbdb1c189fa97a55fc5c469 100644 (file)
@@ -76,7 +76,7 @@ protected:
   bool try_music_on_nongroup_children (Music *m);
   
   virtual void do_print () const;
-  virtual void do_process_requests ();
+  virtual void do_process_music ();
   virtual void do_add_processing ();
   virtual bool do_try_music (Music* req_l);       
   virtual void do_pre_move_processing();
index 7740fc7a9ca050220d150c50ebc5821eb2591997..f7afd50cfa97c55abf827c26b42b8369cca96864 100644 (file)
@@ -91,7 +91,7 @@ protected:
   virtual void do_print () const;
   virtual void do_pre_move_processing();
   virtual void do_post_move_processing();
-  virtual void do_process_requests () ;
+  virtual void do_process_music () ;
   virtual void do_creation_processing() ;
   virtual void do_removal_processing();
 };
index a38a9dcb4c3f7343a4902b0eb77b016bffc66203..b851d1f626c5787e9e6d9844561f347eb64e3a2c 100644 (file)
@@ -31,7 +31,7 @@ protected:
   virtual Molecule do_brew_molecule () const;
   VIRTUAL_COPY_CONS(Score_element);
   virtual void do_add_processing ();
-  virtual void do_post_processing ();
+  virtual void after_line_breaking ();
   virtual Direction get_default_dir () const;
 };
 
index bdc42ffdf43ffe6bec523f0122bf3d93a6505af7..9630477fa8382b6df50c3b65517b632fcc790478 100644 (file)
@@ -27,7 +27,7 @@ protected:
 
   virtual void do_add_processing ();
   static  Interval dim_callback (Dimension_cache const*);
-  virtual void do_post_processing ();
+  virtual void after_line_breaking ();
 };
 
 #endif // VOLTA_SPANNER_HH
index 161f323b0f2e573606b80825e379fb7a31745601..b9f0ec4e29f0f4c528c86548e1977b0015557ac0 100644 (file)
@@ -106,7 +106,7 @@ Key_engraver::acknowledge_element (Score_element_info info)
 }
 
 void
-Key_engraver::do_process_requests ()
+Key_engraver::do_process_music ()
 {
   if (keyreq_l_) 
     {
index 55c594c01cfa03552c204bb07b7960c9edb03e9b..52d76b5769a477ddaeedb8402cb848c7daa74bc8 100644 (file)
@@ -130,7 +130,7 @@ Key_item::do_brew_molecule() const
       Interval x(0, inter);
       Interval y(0,0);
 
-      mol.add_at_edge (X_AXIS, RIGHT, lookup_l()->fill (Box(x,y)),0);
+      mol.add_at_edge (X_AXIS, RIGHT, lookup_l()->blank (Box(x,y)),0);
     }
  
   for (int i =0; i < pitch_arr_.size(); i++) 
index d026cf590de28b1154b8605d79f8222ed652d540..6c4132a451e8e9105bc1c7019c2a85f19a8d507f 100644 (file)
@@ -35,7 +35,7 @@ Key_performer::do_print () const
 }
 
 void
-Key_performer::do_process_requests ()
+Key_performer::do_process_music ()
 {
   if (key_req_l_)
     {
index 09eca147be7af061886b97d7e5fdeafd8ef6d8bd..dd14be84fe8adaa67c58bd2f0073b29a0162b2e7 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <math.h>              // isinf
 
 #include "libc-extension.hh"
 #include "lily-guile.hh"
@@ -217,16 +218,6 @@ ly_isdir_p (SCM s)
 }
 
 
-static void
-init_functions ()
-{
-  scm_make_gsubr ("ly-warn", 1, 0, 0, (SCM(*)(...))ly_warning);
-  scm_make_gsubr ("ly-gulp-file", 1,0, 0, (SCM(*)(...))ly_gulp_file);
-  scm_make_gsubr ("dir?", 1,0, 0, (SCM(*)(...))ly_isdir_p);  
-}
-
-ADD_SCM_INIT_FUNC(funcs, init_functions);
-
 
 typedef void (*Void_fptr)();
 Array<Void_fptr> *scm_init_funcs_;
@@ -367,3 +358,47 @@ ly_type (SCM exp)
 
   return ly_str02scm (cp);
 }
+
+/*
+  convert without too many decimals, and leave  a space at the end.
+ */
+   
+   
+SCM
+ly_number2string (SCM s)
+{
+  assert (gh_number_p (s));
+
+  char str[100];                       // ugh.
+
+  if (scm_integer_p (s))
+    {
+      Real r (gh_scm2double (s));
+
+      if (isinf (r) || isnan (r))
+       {
+         programming_error ("Infinity or NaN encountered while converting Real number; setting to zero.");
+         r = 0.0;
+       }
+
+      sprintf (str, "%8.4f ", r);
+    }
+  else
+    {
+      sprintf (str, "%d ", gh_scm2int (s));
+    }
+
+  return gh_str02scm (str);
+}
+
+
+static void
+init_functions ()
+{
+  scm_make_gsubr ("ly-warn", 1, 0, 0, (SCM(*)(...))ly_warning);
+  scm_make_gsubr ("ly-gulp-file", 1,0, 0, (SCM(*)(...))ly_gulp_file);
+  scm_make_gsubr ("dir?", 1,0, 0, (SCM(*)(...))ly_isdir_p);
+  scm_make_gsubr ("ly-number->string", 1, 0,0, (SCM(*)(...)) ly_number2string);
+}
+
+ADD_SCM_INIT_FUNC(funcs, init_functions);
index 228ec8d1574d044237b5f8e8a52387151451e728..bfd5390b9c20cef1efc6bf52bf1c36fc4638c8f1 100644 (file)
@@ -34,7 +34,7 @@ struct Local_key_engraver : Engraver {
   Local_key_item *key_item_p_;
 protected:
   VIRTUAL_COPY_CONS(Translator);
-  virtual void do_process_requests();
+  virtual void do_process_music();
   virtual void acknowledge_element (Score_element_info);
   virtual void do_pre_move_processing();
   virtual void do_creation_processing ();
@@ -218,7 +218,7 @@ Local_key_engraver::acknowledge_element (Score_element_info info)
 }
 
 void
-Local_key_engraver::do_process_requests()
+Local_key_engraver::do_process_music()
 {
   if (time_trans_l_ && !time_trans_l_->measure_position ())
     {
index 249abd0743389dd843a477ec07924803cff7e359..354e49cd1e92a4603dd3f37109d2f6df80076c20 100644 (file)
@@ -33,7 +33,7 @@ Local_key_item::add_pitch (Musical_pitch p, bool cautionary, bool natural)
 
 
 void
-Local_key_item::do_pre_processing()
+Local_key_item::before_line_breaking ()
 {
   accidental_arr_.sort (Local_key_cautionary_tuple::compare);
 }
@@ -126,7 +126,7 @@ Local_key_item::do_brew_molecule() const
 
        Box b(Interval (0, gh_scm2double (pads[d]) * note_distance),
              Interval (0,0));
-       Molecule m (lookup_l ()->fill (b));
+       Molecule m (lookup_l ()->blank (b));
        mol.add_at_edge (X_AXIS, d, m, 0);
       } while ( flip (&d)!= LEFT);
     }
index 2be2e3909359e3069d3ff14022a1d684b8a7e83e..0f422458eea29ee76480df753352c08e08e63fa6 100644 (file)
 */
 #include <math.h>
 #include <ctype.h>
+
 #include "lookup.hh"
 #include "debug.hh"
 #include "dimensions.hh"
-
 #include "bezier.hh"
 #include "paper-def.hh"
 #include "string-convert.hh"
@@ -75,98 +75,8 @@ Lookup::afm_find (String s, bool warn) const
   return Molecule ( afm_bbox_to_box (cm->charBBox), at);
 }
 
-Molecule
-Lookup::simple_bar (String type, Real h, Paper_def* paper_l) const
-{
-  SCM thick = ly_symbol2scm (("barthick_" + type).ch_C());
-  Real w = 0.0;
-  
-  if (paper_l->scope_p_->elem_b (thick))
-    {
-      w = paper_l->get_realvar (thick);
-    }
-  else
-    {
-      programming_error ("No bar thickness set ! ");
-      w = 1 PT;
-    }
-  return filledbox (Box (Interval(0,w), Interval(-h/2, h/2)));
-}
-
   
-Molecule
-Lookup::bar (String str, Real h, Paper_def *paper_l) const
-{
-  if (str == "bracket")
-    return staff_bracket (h, paper_l);
-  else if (str == "brace")
-    {
-      Real staffht  = paper_l->get_var ("staffheight");
-      return staff_brace (h,staffht);
-    }
-  Real kern = paper_l->get_var ("bar_kern");
-  Real thinkern = paper_l->get_var ("bar_thinkern");
 
-  Molecule thin = simple_bar ("thin", h, paper_l);
-  Molecule thick = simple_bar ("thick", h, paper_l);
-  Molecule colon = afm_find ("dots-repeatcolon", paper_l);  
-
-  Molecule m;
-  
-  if (str == "")
-    {
-      return fill (Box (Interval(0, 0), Interval (-h/2, h/2)));
-    }
-  if (str == "scorepostbreak")
-    {
-      return simple_bar ("score", h, paper_l);
-    }
-  else if (str == "|")
-    {
-      return thin;
-    }
-  else if (str == "|.")
-    {
-      m.add_at_edge (X_AXIS, LEFT, thick, 0);      
-      m.add_at_edge (X_AXIS, LEFT, thin, kern);
-    }
-  else if (str == ".|")
-    {
-      m.add_at_edge (X_AXIS, RIGHT, thick, 0);
-      m.add_at_edge (X_AXIS, RIGHT, thin, kern);
-    }
-  else if (str == ":|")
-    {
-      m.add_at_edge (X_AXIS, LEFT, thick, 0);
-      m.add_at_edge (X_AXIS, LEFT, thin, kern);
-      m.add_at_edge (X_AXIS, LEFT, colon, kern);      
-    }
-  else if (str == "|:")
-    {
-      m.add_at_edge (X_AXIS, RIGHT, thick, 0);
-      m.add_at_edge (X_AXIS, RIGHT, thin, kern);
-      m.add_at_edge (X_AXIS, RIGHT, colon, kern);      
-    }
-  else if (str == ":|:")
-    {
-      m.add_at_edge (X_AXIS, LEFT, thick, thinkern);
-      m.add_at_edge (X_AXIS, LEFT, colon, kern);      
-      m.add_at_edge (X_AXIS, RIGHT, thick, kern);
-      m.add_at_edge (X_AXIS, RIGHT, colon, kern);      
-    }
-  else if (str == ".|.")
-    {
-      m.add_at_edge (X_AXIS, LEFT, thick, thinkern);
-      m.add_at_edge (X_AXIS, RIGHT, thick, kern);      
-    }
-  else if (str == "||")
-    {
-      m.add_at_edge (X_AXIS, RIGHT, thin, 0);
-      m.add_at_edge (X_AXIS, RIGHT, thin, thinkern);      
-    }
-
-  return m;
-}
 
 Molecule 
 Lookup::beam (Real slope, Real width, Real thick) 
@@ -215,7 +125,7 @@ Lookup::dashed_slur (Bezier b, Real thick, Real dash)
 
 
 Molecule
-Lookup::fill (Box b) 
+Lookup::blank (Box b) 
 {
   Molecule m;
   m.dim_ = b;
@@ -392,32 +302,6 @@ Lookup::text (String style, String text, Paper_def *paper_l)
   
 
 
-Molecule
-Lookup::staff_brace (Real y, int staff_size) 
-{
-  // URG
-  Real step  = 1.0;
-  int minht  = 2 * staff_size;
-  int maxht = 7 *  minht;
-  int idx = int (((maxht - step) <? y - minht) / step);
-  idx = idx >? 0;
-
-  SCM l = ly_eval_str ("(style-to-cmr \"brace\")");
-  String nm = "feta-braces";
-  if (l != SCM_BOOL_F)
-    nm = ly_scm2string (gh_cdr (l));
-  nm += to_str (staff_size);
-  SCM e =gh_list (ly_symbol2scm ("char"), gh_int2scm (idx), SCM_UNDEFINED);
-  SCM at = (e);
-
-  at = fontify_atom (all_fonts_global_p->find_font (nm), at);
-  
-  Box b ( Interval (-y/2,y/2),
-          Interval (0,0));
-  return Molecule(b, at);
-}
-
 /*
   Make a smooth curve along the points 
  */
@@ -458,28 +342,6 @@ Lookup::slur (Bezier curve, Real curvethick, Real linethick)
   return Molecule (b, at);
 }
 
-Molecule
-Lookup::staff_bracket (Real height, Paper_def* paper_l)
-{
-  SCM at = ( gh_list (ly_symbol2scm ("bracket"),
-                     gh_double2scm (paper_l->get_var("bracket_arch_angle")),
-                     gh_double2scm (paper_l->get_var("bracket_arch_width")),
-                     gh_double2scm (paper_l->get_var("bracket_arch_height")),
-                     gh_double2scm (paper_l->get_var("bracket_width")),
-                     gh_double2scm (height),
-                     gh_double2scm (paper_l->get_var("bracket_arch_thick")),
-                     gh_double2scm (paper_l->get_var("bracket_thick")),
-                     SCM_UNDEFINED));
-
-  Real staff_space = paper_l->get_var ("interline");
-  Box b (Interval (0, 1.5 * staff_space), Interval (-height/2,height/2));
-  Molecule mol (b, at);
-
-  mol.translate_axis (- mol.dim_[X_AXIS].length () / 2, X_AXIS);
-  return mol;
-}
-
-
 Molecule
 Lookup::accordion (SCM s, Real staff_space) const
 {
index 60c59e8141d42c7a81cbd0551d0f46f5b37cab4e..61e12a1c5101c8a75746e4328cfa999ca7d989a0 100644 (file)
@@ -36,7 +36,7 @@ Lyric_engraver::do_try_music (Music*r)
 }
 
 void
-Lyric_engraver::do_process_requests()
+Lyric_engraver::do_process_music()
 {
   if (req_l_)
     {
index 5a5be595670ce3c5754bb1c8666474087204c92b..e07fe0f4fe1df5dfd3495d024f494861ff69da71 100644 (file)
@@ -27,7 +27,7 @@ Lyric_performer::do_print () const
 }
 
 void
-Lyric_performer::do_process_requests ()
+Lyric_performer::do_process_music ()
 {
   if (lreq_arr_.size () && lreq_arr_[0]->text_str_.length_i ())
     {
index 3c3777d5e85aa36944ada32057eb8a3f4ddde1ed..1158daec6e39ffbabfbd866886958c650950c67a 100644 (file)
@@ -20,7 +20,7 @@ public:
   VIRTUAL_COPY_CONS(Translator);
 protected:
   virtual bool do_try_music (Music *req_l);
-  virtual void do_process_requests ();
+  virtual void do_process_music ();
   virtual void do_post_move_processing ();
 private:
   Mark_req * mark_req_l_;
@@ -59,7 +59,7 @@ Mark_engraver::do_try_music (Music* r_l)
 }
 
 void
-Mark_engraver::do_process_requests ()
+Mark_engraver::do_process_music ()
 {
   if (mark_req_l_)
     {
index 5620a92d180e07aeccd5580b4a54439c76d56ccd..ac70426542d700de6a607ca283849bbcb1cf8afe 100644 (file)
@@ -104,13 +104,6 @@ Molecule::set_empty (bool e)
     }
 }
 
-void
-Molecule::print () const
-{
-#ifndef NPRINT
-  gh_display (expr_);
-#endif
-}
 
 void
 Molecule::align_to (Axis a, Direction d)
index 2ed4779388bb776749584fbee2faa9c7371b7151..de6975998a9ab50f19d576a4a9fbfa647d3a4b01 100644 (file)
@@ -26,7 +26,7 @@ public:
 
 protected:
   virtual void acknowledge_element (Score_element_info i);
-  virtual void do_process_requests ();
+  virtual void do_process_music ();
   virtual bool do_try_music (Music*);
   virtual void do_pre_move_processing ();
   virtual void do_post_move_processing ();
@@ -87,7 +87,7 @@ Multi_measure_rest_engraver::do_try_music (Music* req_l)
 
 
 void
-Multi_measure_rest_engraver::do_process_requests ()
+Multi_measure_rest_engraver::do_process_music ()
 {
   if (new_req_l_ && stop_req_l_)
     stop_req_l_ = 0;
index 81ba1f26da6becbda775143fd672ef0afe0d49b9..6001e531bf384cb552bd253c7da195321a21448d 100644 (file)
@@ -151,7 +151,7 @@ Multi_measure_rest::do_add_processing ()
 }
   
 void
-Multi_measure_rest::do_post_processing ()
+Multi_measure_rest::after_line_breaking ()
 {
   if (!gh_pair_p (get_elt_property ("columns")))
     set_elt_property ("transparent", SCM_BOOL_T);
index 8dca8fc0610632b10737a4d088423cf70256438c..ab801410ffb37bbc853b01236342497baaeeeaf9 100644 (file)
@@ -147,7 +147,7 @@ Note_column::set_dotcol (Dot_column *d)
 */
 
 void
-Note_column::do_post_processing ()
+Note_column::after_line_breaking ()
 {
   if (!stem_l () || !rest_b ())
     return;
index 188d967f3bd6bce78c810e26f595a6c5b1c81af1..ea39db1104aa0c6d15b69e99eaf5b8721988bf3f 100644 (file)
@@ -53,7 +53,7 @@ Note_head::ledger_line (Interval xwid) const
 
 
 void
-Note_head::do_pre_processing ()
+Note_head::before_line_breaking ()
 {
   // 8 ball looks the same as 4 ball:
   String type; 
index 4a397581a3f3dd63d1b7515bd29f4fd5c971f9c7..9dcc8751922bf0383cfc889de9c1bc4533f24b56 100644 (file)
@@ -53,7 +53,7 @@ Note_heads_engraver::do_try_music (Music *m)
 }
 
 void
-Note_heads_engraver::do_process_requests()
+Note_heads_engraver::do_process_music()
 {
   if (note_p_arr_.size ())
     return ;
index a87cea19ff94e366aba658f3f023a221f8c3cbf6..4c629dd2b787025007c31612c626914d67ee9dad 100644 (file)
@@ -18,7 +18,7 @@ public:
   Link_array<Note_req> req_l_arr_;
   Link_array<Text_item> texts_;
   virtual bool  do_try_music (Music*m);
-  virtual void do_process_requests ();
+  virtual void do_process_music ();
   virtual void do_pre_move_processing ();
 };
 
@@ -35,7 +35,7 @@ Note_name_engraver::do_try_music (Music *m)
 
 
 void
-Note_name_engraver::do_process_requests ()
+Note_name_engraver::do_process_music ()
 {
   String s ;
   for (int i=0; i < req_l_arr_.size (); i++)
index 6e2bab25cab698d84b42d655dcf327710be09928..c0f8cf48ef87b070b879cd111d428c0f3cf33afc 100644 (file)
@@ -31,7 +31,7 @@ Note_performer::do_print () const
 }
 
 void 
-Note_performer::do_process_requests () 
+Note_performer::do_process_music () 
 {
   if (note_req_l_arr_.size ())
     {
diff --git a/lily/output-property-engraver.hh b/lily/output-property-engraver.hh
deleted file mode 100644 (file)
index e69de29..0000000
index e8f4aff10ae4647f1654fc2c91fa400e23144e4f..ba0c1ee4e1a4f9663ae181ebc14c313c878a04b4 100644 (file)
@@ -74,8 +74,8 @@ Property_engraver::apply_properties (SCM p, Score_element *e)
        {
          SCM errport = scm_current_error_port ();
          warning (_("Wrong type for property"));
-         
-         scm_puts ("type predicate: ", errport);
+         scm_display (prop_sym, errport);
+         scm_puts ("type predicate: ", errport);
          scm_display (type_p, errport);
          scm_puts (", value found: ", errport);
          scm_display (val, errport);
index ef5a60c3b0ea78c04df4e7e8b77b4f1bff851cd8..dcf545cf3ff147b289f7bf186501ca6a1928a10f 100644 (file)
@@ -137,7 +137,7 @@ Repeat_engraver::queue_events ()
 }
 
 void
-Repeat_engraver::do_process_requests ()
+Repeat_engraver::do_process_music ()
 {
   if (repeated_music_l_ && !done_this_one_b_)
     { 
index 07ab3c764aa789991245e082ef68dec9d3e24275..4ef293f8f15a73b5e64903d3f2d883ae24c75aea 100644 (file)
@@ -33,7 +33,7 @@ Rest_collision::add_column (Note_column *nc_l)
 }
 
 void
-Rest_collision::do_pre_processing()
+Rest_collision::before_line_breaking ()
 {
   Link_array<Note_column> rest_l_arr =
     Group_interface__extract_elements (this, (Note_column*) 0, "rests");
index 5fe98cf2936f97b4b27d4a5bbc74f82cdbcf323f..fce8f71bbd4dde7bdb0bd8fa9c02aea88b0f408e 100644 (file)
@@ -42,7 +42,7 @@ Rest_engraver::do_pre_move_processing ()
 }
 
 void
-Rest_engraver::do_process_requests ()
+Rest_engraver::do_process_music ()
 {
   if (rest_req_l_ && !rest_p_) 
     {
index 783372390c783e7a0886d4189fef4feec0dc17ac..0c4aafee6697b6aa4187c71b005aca14a470ca5a 100644 (file)
@@ -17,7 +17,7 @@
 
 
 void
-Rest::do_post_processing ()
+Rest::after_line_breaking ()
 {
   if (balltype_i () == 0)
     {
index a96a750f74ba515ade874325a7263bb4b72a8dd6..015fa2f9aa99ee7436c3cebc57aa760670a0d357 100644 (file)
@@ -49,7 +49,7 @@ Rhythmic_head::dot_count () const
 }
   
 void
-Rhythmic_head::do_post_processing ()
+Rhythmic_head::after_line_breaking ()
 {
   if (Dots *d = dots_l ())
     {
index 83357769fa3c9d26f730e11e34d1bdf1226abb70..ebef9e278c4df024ce9db0c61471c3fe752ca9a4 100644 (file)
 #include "scm-hash.hh"
 #include "hash-table-iter.hh"
 
+
+#ifdef usestl
+
+
+Scheme_hash_table::Scheme_hash_table ()
+{
+  self_scm_ = SCM_EOL;
+  smobify_self ();
+}
+
+void
+Scheme_hash_table::operator =(Scheme_hash_table const & src)
+{
+  Scm_stl_map::operator = (src);
+       
+  // we do not copy the self_scm_ field!
+}
+
+void
+Scheme_hash_table::do_smobify_self ()
+{
+}
+
+
+SCM
+Scheme_hash_table::mark_smob (SCM s)
+{
+  /*
+    can't typecheck naively, since GC bit lives in CAR of S
+   */
+  
+  Scheme_hash_table *me = SMOB_TO_TYPE(Scheme_hash_table,s);
+
+  for (Scm_stl_map::const_iterator i= me->begin (); i != me->end(); i++)
+    {
+      scm_gc_mark ((*i).first);
+      scm_gc_mark ((*i).second);
+    }
+  return SCM_EOL;
+}
+
+
+Scheme_hash_table::Scheme_hash_table (Scheme_hash_table const &src)
+  : Scm_stl_map (src)
+{
+  self_scm_ = SCM_EOL;
+  smobify_self ();
+}
+
+int
+Scheme_hash_table::print_smob (SCM s, SCM p, scm_print_state*)
+{
+  assert (SMOB_IS_TYPE_B (Scheme_hash_table, s));
+  char str[1000];
+  sprintf (str, "#<Scheme_hash_table 0x%0x ", s);
+  scm_puts (str, p);      
+  Scheme_hash_table *me = SMOB_TO_TYPE(Scheme_hash_table,s);
+  for (Scm_stl_map ::const_iterator i = me->begin (); i != me->end(); i++)
+    {
+      scm_display ((*i).first, p);
+      scm_puts (" = ",p);      
+      scm_display ((*i).second, p);
+      scm_puts ("\n",p);            
+    }
+  scm_puts ("> ",p);        
+  return 1;
+}
+
+bool
+Scheme_hash_table::try_retrieve (SCM k, SCM *v)
+{
+  Scm_stl_map ::const_iterator i (find (k));
+  bool found = i != end ();
+  if (found)
+    *v = (*i).second;
+  return found;
+}
+
+bool
+Scheme_hash_table::elem_b (SCM k) const
+{
+  Scm_stl_map::const_iterator i (find (k));
+  return i != end ();
+}
+
+void
+Scheme_hash_table::set (SCM k, SCM v)
+{
+  (*this)[k] = v;
+  scm_unprotect_object (v);
+}
+
+// UGH. 
+SCM
+Scheme_hash_table::get (SCM k)const
+{
+  return (*(Scheme_hash_table*)this)[k]; 
+}
+
+
+Scheme_hash_table::~Scheme_hash_table( )
+{
+  unsmobify_self ();
+}
+
+SCM
+Scheme_hash_table::to_alist () const
+{
+  SCM l = SCM_EOL;
+  for (Scm_stl_map ::const_iterator i = begin (); i != end(); i++)
+    l = gh_cons (gh_cons ((*i).first, (*i).second), l);
+  return l;  
+}
+
+
+#include "ly-smobs.icc"
+IMPLEMENT_UNSMOB(Scheme_hash_table,scheme_hash);
+IMPLEMENT_SMOBS(Scheme_hash_table);
+
+#else
 Scheme_hash_table::Scheme_hash_table ()
 {
   hash_func_ = ly_scm_hash;
@@ -110,3 +230,4 @@ Scheme_hash_table::to_alist () const
 #include "ly-smobs.icc"
 IMPLEMENT_UNSMOB(Scheme_hash_table,scheme_hash);
 IMPLEMENT_SMOBS(Scheme_hash_table);
+#endif
index bdc28e626aff13416e360958c365f685a23cd1e7..141d95a22d9f819541d56d3982c8330b3d5e487c 100644 (file)
@@ -274,7 +274,7 @@ Score_element::do_break_processing()
 }
 
 void
-Score_element::do_post_processing()
+Score_element::after_line_breaking ()
 {
 }
 
@@ -285,7 +285,7 @@ Score_element::do_breakable_col_processing()
 }
 
 void
-Score_element::do_pre_processing()
+Score_element::before_line_breaking ()
 {
 }
 
@@ -312,9 +312,9 @@ Score_element::do_brew_molecule() const
     }
   else
     {
-      Interval emp;
-      emp.set_empty ();
-      return lookup_l ()->fill (Box (emp,emp));
+      Molecule m ;
+      m.set_empty (true);
+      return m;
     }
 }
 
@@ -555,28 +555,28 @@ Score_element::fixup_refpoint ()
   for (int a = X_AXIS; a < NO_AXES; a ++)
     {
       Axis ax = (Axis)a;
-      Score_element * par = parent_l (ax);
+      Score_element * parent = parent_l (ax);
 
-      if (!par)
+      if (!parent)
        continue;
       
-      if (par->line_l () != line_l ())
+      if (parent->line_l () != line_l ())
        {
-         Score_element * newpar = par->find_broken_piece (line_l ());
-         set_parent (newpar, ax);
+         Score_element * newparent = parent->find_broken_piece (line_l ());
+         set_parent (newparent, ax);
        }
 
       if (Item * i  = dynamic_cast<Item*> (this))
        {
-         Item *pari = dynamic_cast<Item*> (par);
+         Item *parenti = dynamic_cast<Item*> (parent);
 
-         if (pari && i)
+         if (parenti && i)
            {
              Direction  my_dir = i->break_status_dir () ;
-             if (my_dir!= pari->break_status_dir())
+             if (my_dir!= parenti->break_status_dir())
                {
-                 Item *newpar =  pari->find_broken_piece (my_dir);
-                 set_parent (newpar, ax);
+                 Item *newparent =  parenti->find_broken_piece (my_dir);
+                 set_parent (newparent, ax);
                }
            }
        }
index 5c892091a7bfb8d7447f003c1e3a6f8842ede9c8..a386058d87bdb9fb0b04f833c665536b90efcccc 100644 (file)
@@ -41,7 +41,7 @@ staff_side_compare (Item * const &i1,
 }
 
 void
-Script_column::do_pre_processing ()
+Script_column::before_line_breaking ()
 {
   Drul_array<Link_array<Item> > arrs;
   Link_array<Item> staff_sided 
index 74d8b93f9f7be4f0e61bd6164484ad5d437904ff..5498b5b7f60f2db2d717bd5e41293609853932da 100644 (file)
@@ -25,7 +25,7 @@ public:
   Script_engraver();
 protected:
   virtual bool do_try_music (Music*);
-  virtual void do_process_requests ();
+  virtual void do_process_music ();
   virtual void do_pre_move_processing ();
   virtual void do_post_move_processing ();
   virtual void acknowledge_element (Score_element_info);
@@ -54,7 +54,7 @@ Script_engraver::do_try_music (Music *r_l)
 }
 
 void
-Script_engraver::do_process_requests()
+Script_engraver::do_process_music()
 {
   for (int i=0; i < script_req_l_arr_.size(); i++)
     {
index 7e19e16940ab95320646df44fd6949be31948e24..6f96f1b7b8638042f2f69128b76534925fc3a396 100644 (file)
@@ -39,7 +39,7 @@ Script::get_molecule(Direction d) const
 
 
 void
-Script::do_pre_processing ()
+Script::before_line_breaking ()
 {
   /*
     center my self on the note head.
@@ -49,7 +49,7 @@ Script::do_pre_processing ()
 }
 
 void
-Script::do_post_processing ()
+Script::after_line_breaking ()
 {
   Side_position_interface i (this);
   Direction d =  i.get_direction ();
index 61a7d6ce03d4b099c50d1ecb4d8969316bd5a88c..0b1a8c6839a4aabb7fcd56a0f47df0c0042674cf 100644 (file)
@@ -63,7 +63,7 @@ Slur_engraver::do_removal_processing ()
 }
 
 void
-Slur_engraver::do_process_requests()
+Slur_engraver::do_process_music()
 {
   Array<Slur*> start_slur_l_arr_;
   for (int i=0; i< new_slur_req_l_arr_.size(); i++)
index 774a5dc13232b233c6ed8c206b533f8783e2debb..c2166932a04d16eccfbedfb28ca7bdca4813936c 100644 (file)
@@ -352,7 +352,7 @@ Slur::encompass_offset (Note_column const* col) const
 }
 
 void
-Slur::do_post_processing ()
+Slur::after_line_breaking ()
 {
   set_extremities ();
   set_control_points ();
index 0ee3142afdb8076c6cc1ae18b750fab693c10a6f..4aacb942480705d6f7c7dc665e53d42261a00376 100644 (file)
@@ -31,16 +31,18 @@ Span_bar::width_callback (Dimension_cache const * c)
 {
   Span_bar*  s= dynamic_cast<Span_bar*> (c->element_l ());  
   String gl = ly_scm2string (s->get_elt_property ("glyph"));
-  
-  Molecule m = s->lookup_l ()->bar (gl, 40 PT, s->paper_l ());
+
+  /*urg.
+   */
+  Molecule m = s->compound_barline (gl, 40 PT);
   
   return m.extent (X_AXIS);
 }
 
 void
-Span_bar::do_pre_processing ()
+Span_bar::before_line_breaking ()
 {
-  Bar::do_pre_processing ();
+  Bar::before_line_breaking ();
   
   evaluate_empty ();
   
@@ -48,9 +50,9 @@ Span_bar::do_pre_processing ()
 }
 
 void
-Span_bar::do_post_processing ()
+Span_bar::after_line_breaking ()
 {
-  Bar::do_post_processing ();
+  Bar::after_line_breaking ();
   Interval i(get_spanned_interval ());
 
   translate_axis (i.center (), Y_AXIS);
@@ -88,6 +90,10 @@ Span_bar::evaluate_empty ()
       type_str= ".|.";
     }
   }
+
+  /*
+    uhh. should do something with type_str ?!!
+   */
 }
 
 Interval
@@ -113,6 +119,7 @@ Span_bar::get_spanned_interval () const
          y_int.unite (y + iv);
        }
     }
+  
   return y_int;
 }
 
@@ -123,29 +130,21 @@ Span_bar::height_callback (Dimension_cache const *c)
   return s->get_spanned_interval ();
 }
 
-Molecule 
-Span_bar::do_brew_molecule () const
+Real
+Span_bar::get_bar_size () const
 {
-  Interval iv (get_spanned_interval ());
-  Molecule output;
-  SCM s = get_elt_property ("glyph");
-  if (gh_string_p (s) && !iv.empty_b())
-    {
-      output.add_molecule (lookup_l ()->bar (ly_scm2string (s),
-                                             iv.length (),
-                                             paper_l ()));
-    }
-  else
-    {
-      programming_error("Huh? My children deflated (FIXME)");
-    }
-  return output;
+   Interval iv (get_spanned_interval ());
+   if (iv.empty_b ())
+     {
+       programming_error("Huh? My children deflated (FIXME)");
+       iv = Interval (0,0);
+     }
+   return iv.length ();
 }
 
-
-
 Span_bar::Span_bar ()
 {
+  group (this).set_interface ();
   dim_cache_[X_AXIS]->set_callback (width_callback);
   dim_cache_[Y_AXIS]->set_callback (height_callback);  
 }
index 208da51a180cbda2cc3b86a7f0018099a2db3b69..bebb642468f2995be851d89733a7c5e935e99d70 100644 (file)
@@ -45,7 +45,7 @@ Staff_performer::do_creation_processing ()
 }
 
 void
-Staff_performer::do_process_requests ()
+Staff_performer::do_process_music ()
 {
   String str = new_instrument_str ();
   if (str.length_i ())
@@ -55,7 +55,7 @@ Staff_performer::do_process_requests ()
       instrument_p_ = new Audio_instrument (str);
       announce_element (Audio_element_info (instrument_p_, 0));
     }
-  Performer_group_performer::do_process_requests ();
+  Performer_group_performer::do_process_music ();
 }
 
 void
index 94417b06344bcd5e79d9d2151867f11bd98b17e9..2b9ca36469099d4f356de946bfe135b7e6f7d08b 100644 (file)
@@ -367,7 +367,7 @@ Stem::position_noteheads ()
 }
 
 void
-Stem::do_pre_processing ()
+Stem::before_line_breaking ()
 {
   stem_end_position ();        // ugh. Trigger direction calc.
   position_noteheads ();
index c46d963f2111024c4bdfe7e667960768e5afc04b..ee544eafae140dafbb89e3ffd93dcfebfb1d4995 100644 (file)
@@ -36,7 +36,7 @@ enum Score_element_status {
 void
 Super_element::pre_processing ()
 {
-  calculate_dependencies (PRECALCED, PRECALCING, &Score_element::do_pre_processing);
+  calculate_dependencies (PRECALCED, PRECALCING, &Score_element::before_line_breaking);
 }
 
 void
@@ -56,18 +56,13 @@ Super_element::breakable_col_processing ()
   //  calculate_dependencies (PREBROKEN_SECOND, PREBROKEN_SECOND, &Score_element::handle_prebroken_dependents);
 }
 
-void
-Super_element::break_processing ()
-{
-  calculate_dependencies (BROKEN, BROKEN, &Score_element::do_break_processing);
-}
 
 void
 Super_element::post_processing ()
 {
   //  calculate_dependencies (BROKEN_SECOND, BROKEN_SECOND,
   //             &Score_element::handle_broken_dependents);
-  calculate_dependencies (POSTCALCED, POSTCALCING, &Score_element::do_post_processing);
+  calculate_dependencies (POSTCALCED, POSTCALCING, &Score_element::after_line_breaking);
 }
 
 void
index 3463d3e8e4d65483e46e46ead1f4c68ced508c98..b728730947e1093b77cbe9470cb78e98f1a7122c 100644 (file)
@@ -32,7 +32,7 @@ Tempo_performer::do_print () const
 }
 
 void
-Tempo_performer::do_process_requests ()
+Tempo_performer::do_process_music ()
 {
   if (tempo_req_l_)
     {
index 194b779774f5a24378275894a79aa2fc6a0c0750..ad69deef943190671c4744386da9e3d3dcdd083d 100644 (file)
@@ -30,7 +30,7 @@ protected:
   virtual bool do_try_music (Music* m);
   virtual void do_pre_move_processing ();
   virtual void do_post_move_processing ();
-  virtual void do_process_requests ();
+  virtual void do_process_music ();
   virtual void acknowledge_element (Score_element_info);
 };
 
@@ -72,7 +72,7 @@ Text_engraver::acknowledge_element (Score_element_info i)
 }
 
 void
-Text_engraver::do_process_requests ()
+Text_engraver::do_process_music ()
 {
   for (int i=0; i < reqs_.size (); i++)
     {
index eba1c4d8f02bd0793457d1e3ac987c69b647bbf3..78d6b487c3134d555e4b375d4adc588e1b31c77f 100644 (file)
@@ -92,7 +92,7 @@ Tie_column::set_directions ()
 }
 
 void
-Tie_column::do_post_processing ()
+Tie_column::after_line_breaking ()
 {
   set_directions ();
 }
index 9ad9be22363227408e9729abfb4ef12189588045..273d66843ea6aba0a14dbd5483300402a3d86f2a 100644 (file)
@@ -57,7 +57,7 @@ protected:
   virtual void do_pre_move_processing ();
   virtual void acknowledge_element (Score_element_info);
   virtual bool do_try_music (Music*);
-  virtual void do_process_requests ();
+  virtual void do_process_music ();
   virtual void process_acknowledged ();
 
 public:
@@ -110,7 +110,7 @@ Tie_engraver::acknowledge_element (Score_element_info i)
 }
 
 void
-Tie_engraver::do_process_requests ()
+Tie_engraver::do_process_music ()
 {
   if (req_l_)
     {
index b9109b9d86d3d53a37f082e6370b4dd844ea1cf1..9b5afbc4918fc293e5500cb55599bb83075c79df 100644 (file)
@@ -47,7 +47,7 @@ Tie_performer::acknowledge_element (Audio_element_info i)
 }
 
 void
-Tie_performer::do_process_requests ()
+Tie_performer::do_process_music ()
 {
   if (req_l_)
     {
index e98bb1eea906ad02d39f25a6e5a7aa61fe447e8f..6735059d29813a65e99e66a4ea10ae094925b8f8 100644 (file)
@@ -92,7 +92,7 @@ Tie::do_add_processing()
 }
 
 void
-Tie::do_post_processing()
+Tie::after_line_breaking ()
 {
   if (!head (LEFT) && !head (RIGHT))
     {
index 0e6f874f1f6d5393deff9355a4619ff5c8308446..f485c22afd329a87d2d2a6293ddb1be8565ea322 100644 (file)
@@ -18,7 +18,7 @@ Time_signature_engraver::Time_signature_engraver()
 }
 
 void
-Time_signature_engraver::do_process_requests()
+Time_signature_engraver::do_process_music()
 {
   Translator * result =
     daddy_grav_l()->get_simple_translator ("Timing_engraver"); // ugh
index 3db298cdc4a513b7a64c1601d3d9c00c5bcd5a28..aeed66b8068da901e47692ff22e45fbc0db73fdb 100644 (file)
@@ -32,7 +32,7 @@ Time_signature_performer::do_print () const
 }
 
 void
-Time_signature_performer::do_process_requests ()
+Time_signature_performer::do_process_music ()
 {
   if (time_signature_req_l_)
     {
index 7e49f77f2ed0308faecc329b43a87a0ed951abfb..4ef6f4df2666c5e1e760fd78df630e9057afcb90 100644 (file)
@@ -54,7 +54,7 @@ Timing_translator::time_signature_req_l() const
 }
 
 void
-Timing_translator::do_process_requests()
+Timing_translator::do_process_music()
 {
   for (int i=0; i < timing_req_l_arr_.size (); i++)
     {
index c76e68e884696003c750dc44cc02963039e63a91..64851dfc192ad2e38c8125c764185a27e2d6eeb4 100644 (file)
@@ -388,7 +388,7 @@ Translator_group::do_post_move_processing ()
 }
 
 void
-Translator_group::do_process_requests ()
+Translator_group::do_process_music ()
 {
   each (&Translator::process_requests);
 }
index 28e2b4c31baa257369cee923de3c385052c94fb3..4840b898c48c9b4736a734a50d14edaf962b15e8 100644 (file)
@@ -145,7 +145,7 @@ Translator::process_requests ()
     return; 
   
   status = PROCESSED_REQS;
-  do_process_requests ();
+  do_process_music ();
 }
 
 void
@@ -182,7 +182,7 @@ Translator:: do_pre_move_processing(){}
 void
 Translator::do_post_move_processing(){}
 void
-Translator::do_process_requests () {}
+Translator::do_process_music () {}
 void
 Translator::do_creation_processing() {}
 void
index 2430e7b37c386241285ff3bc5750cd51cb941794..1dccd22122cff426a2287cdaa7ef5893d88b7420 100644 (file)
@@ -34,7 +34,7 @@ protected:
   virtual void do_removal_processing ();
   virtual void acknowledge_element (Score_element_info);
   virtual bool do_try_music (Music*r);
-  virtual void do_process_requests ();
+  virtual void do_process_music ();
   virtual void do_post_move_processing ();
 };
 
@@ -62,7 +62,7 @@ Tuplet_engraver::do_try_music (Music *r)
 }
 
 void
-Tuplet_engraver::do_process_requests ()
+Tuplet_engraver::do_process_music ()
 {
   SCM v = get_property ("tupletInvisible");
   if (to_boolean (v))
index dd55332caa1821961f3df5a9713eee2aeb38f0ac..ab38ee151415b1a5aa7af9bc37fe08cc7ac54e50 100644 (file)
@@ -189,7 +189,7 @@ Tuplet_spanner::calc_dy (Real * dy) const
 }
 
 void
-Tuplet_spanner::do_post_processing ()
+Tuplet_spanner::after_line_breaking ()
 {
   Link_array<Note_column> column_arr=
     Group_interface__extract_elements (this, (Note_column*)0, "columns");
index a446d7cd12bd2c55fe67ebe3b677cd36f4fd8b69..743609de93fdee1d8371a8ea0968f73ec03d27b1 100644 (file)
@@ -137,7 +137,7 @@ Volta_spanner::dim_callback (Dimension_cache const *c)
 }
 
 void
-Volta_spanner::do_post_processing ()
+Volta_spanner::after_line_breaking ()
 {
   Link_array<Bar> bar_arr
     = Group_interface__extract_elements (this, (Bar*)0, "bars");
index 8fe96e79a81f541b627aa6f545a92f04f84bdf10..a45c4702c20e104901b0b78912b37b5970bb2bcc 100644 (file)
@@ -103,11 +103,11 @@ normalsize = {
 }
 
 normalkey = {
-       \property Staff.keyOctaviation = 1
+       \property Staff.keyOctaviation = ##f
 }
 
 specialkey = {
-       \property Staff.keyOctaviation = 0
+       \property Staff.keyOctaviation = ##t
 }
 
 % End the incipit and print a ``normal line start''.
index 96d4bf36af3ce85a88f4b9c816a4268b68899558..00de2551e99014c387246f1efe649706f196557a 100644 (file)
@@ -1,15 +1,15 @@
 Begin3
 Title: LilyPond
-Version: 1.3.32
-Entered-date: 13MAR00
+Version: 1.3.33
+Entered-date: 14MAR00
 Description: 
 Keywords: music notation typesetting midi fonts engraving
 Author: hanwen@cs.uu.nl (Han-Wen Nienhuys)
        janneke@gnu.org (Jan Nieuwenhuizen)
 Maintained-by: hanwen@stack.nl (Han-Wen Nienhuys)
 Primary-site: sunsite.unc.edu /pub/Linux/apps/sound/convert
-       1000k lilypond-1.3.32.tar.gz 
+       1000k lilypond-1.3.33.tar.gz 
 Original-site: ftp.cs.uu.nl /pub/GNU/LilyPond/development/
-       1000k lilypond-1.3.32.tar.gz 
+       1000k lilypond-1.3.33.tar.gz 
 Copying-policy: GPL
 End
index de148ac93b200a446d926c7f9281a04c977a143d..94972a476e3383d7e62c835114d61bc0e08af868 100644 (file)
@@ -1,9 +1,9 @@
 Name: lilypond
-Version: 1.3.32
+Version: 1.3.33
 Release: 1
 Copyright: GPL
 Group: Applications/Publishing
-Source0: ftp.cs.uu.nl:/pub/GNU/LilyPond/development/lilypond-1.3.32.tar.gz
+Source0: ftp.cs.uu.nl:/pub/GNU/LilyPond/development/lilypond-1.3.33.tar.gz
 Summary: A program for printing sheet music.
 URL: http://www.cs.uu.nl/~hanwen/lilypond
 # get Packager from (undocumented?) ~/.rpmmacros!
index fd457e035f0984619da2d84449d74e0b22c59a5b..c8a102b841edf2fdbc635b2eb41956b10b18c7d8 100644 (file)
@@ -32,6 +32,15 @@ fonts:
        $(MAKE) -C $(depth)/mf 
 
 
+
+htmldoc: 
+       $(MAKE) CONFIGSUFFIX='www' local-WWW
+       $(MAKE) CONFIGSUFFIX='www' -C Documentation WWW
+       rm -f `find . -name \*.html~ -print`
+       $(footify-all-command)
+       find `find Documentation -type d -name 'out-www'` -not -name '*dvi' -not -name '*ly' -not -name '*tex' -not -name '*.ps' -not -name 'out-www'  > wwwlist
+       tar cfz $(outdir)/htmldoc.tar.gz  `cat wwwlist` `ls *.png $(ERRORLOG)`  index.html
+
 examples:
        $(MAKE) CONFIGSUFFIX='www' -C input WWW
        $(MAKE) CONFIGSUFFIX='www' -C mutopia WWW
index 4fb33ee1f17a3feee2243ce4ad6e90865e083998..aef1ec55ccb4970797617fca71aac480252c7f8a 100644 (file)
@@ -5,6 +5,14 @@
 ; (c) 1998 Jan Nieuwenhuizen <janneke@gnu.org>
 
 
+;
+; This file contains various routines in Scheme that are easier to 
+; do here than in C++.  At present it is a unorganised mess. Sorry. 
+;
+;
+
+
+
 ;(debug-enable 'backtrace)
 
 ;;; library funtions
          )
       )
 
-(define (glue-2-strings a b) 
-  (string-append a " " b))
 
 (define (numbers->string l)
-  (reduce glue-2-strings (map number->string l)))
+  (apply string-append (map ly-number->string l)))
 
-(define (chop-decimal x) (if (< (abs x) 0.001) 0.0 x))
+(define (chop-decimal x) (if (< (abs x) 0.001) 0.0 x))
 
 (define (number->octal-string x)
   (let* ((n (inexact->exact x))
     (number->string n radix)))
 
 
-(define
-  (control->string c)
-  (string-append
-   (string-append (number->string (car c)) " ")
-   (string-append (number->string (cdr c)) " ")))
+(define (control->string c)
+  (string-append (number->string (car c)) " "
+                (number->string (cdr c)) " "))
 
 
 (define (font i)
     (not (not (memq name (ly-get-elt-property elt 'interfaces))))))
 
        
-
-
-
-
-
-
-
-
-;;;;;;;;;;;;;;;;;;; generic output
-
-(define (translate-molecule offset)
-  "")
-
-
 ;;;;;;;;;;;;;;;;;;; TeX output
 (define (tex-scm action-name)
   (define (unknown) 
   (define (decrescendo thick w h cont)
     (embedded-ps ((ps-scm 'decrescendo) thick w h cont)))
 
-   ;This sets CTM so that you get to the currentpoint
-  ; by executing a 0 0 moveto
-
-  
-
   (define (font-load-command name-mag command)
     (string-append
      "\\font\\" command "="
      (number->string (magstep (cdr name-mag)))
      "\n"))
 
-
   (define (embedded-ps s)
     (string-append "\\embeddedps{" s "}"))
 
 
   (define (number->dim x)
     (string-append 
-     (number->string  (chop-decimal x)) " pt "))
+     (ly-number->string x) " pt "))
 
   (define (placebox x y s) 
     (string-append 
 ;;;;;;;;;;;; PS
 (define (ps-scm action-name)
 
-
   ;; alist containing fontname -> fontcommand assoc (both strings)
   (define font-alist '())
   (define font-count 0)
index 73565b8c2e4cf9247a707af585545fb360165dad..377e05398c23723197beda6391918db7381e58ab 100644 (file)
@@ -11,15 +11,6 @@ do-top-doc:
 
 $(README_TXT_FILES): do-top-doc
 
-
-htmldoc: 
-       $(MAKE) CONFIGSUFFIX='www' local-WWW
-       $(MAKE) CONFIGSUFFIX='www' -C Documentation WWW
-       rm -f `find . -name \*.html~ -print`
-       $(footify-all-command)
-       find `find Documentation -type d -name 'out-www'` -not -name '*dvi' -not -name '*ly' -not -name '*tex' -not -name '*.ps' -not -name 'out-www' 
-       tar cfz $(outdir)/htmldoc.tar.gz  `cat wwwlist` `ls *.png $(ERRORLOG)`  index.html
-
 localclean: