]> git.donarmstrong.com Git - lilypond.git/commitdiff
release: 1.3.98 release/1.3.98
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 22 Oct 2000 20:14:46 +0000 (22:14 +0200)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 22 Oct 2000 20:14:46 +0000 (22:14 +0200)
======

* Backend documentation updates and related cleanups

* Removed \property bracketCollapseHeight, systemStartDelimiterGlyph

* Bugfix: instrument-name on grandstaffs, see
input/test/instrument-name-grandstaff.ly

* Bugfix for tie/staffline collision.

* Bugfix: also send out end-repeat if there are no alternatives.

* Small solo cello suite fixes.

1.3.97.j

59 files changed:
CHANGES
VERSION
flower/include/interval.hh
input/test/instrument-name-grandstaff.ly [new file with mode: 0644]
input/test/instrument-name.ly [new file with mode: 0644]
input/test/lyrics-multi-stanza.ly
input/test/staff-margin.ly
input/trip.ly
lily/auto-beam-engraver.cc
lily/break-align-item.cc
lily/clef-item.cc
lily/include/axis-group-interface.hh
lily/include/chord-name.hh
lily/include/clef.hh
lily/include/hara-kiri-group-spanner.hh
lily/include/item.hh
lily/include/key-item.hh
lily/include/line-of-score.hh
lily/include/rest-collision.hh
lily/include/score-element.hh
lily/include/separation-item.hh
lily/include/side-position-interface.hh
lily/include/slur.hh
lily/include/stem.hh
lily/include/tuplet-spanner.hh
lily/input-smob.cc
lily/instrument-name-engraver.cc
lily/lily-guile.cc
lily/property-engraver.cc
lily/repeat-acknowledge-engraver.cc
lily/score-element.cc
lily/side-position-interface.cc
lily/slur-bezier-bow.cc
lily/slur.cc
lily/stem.cc
lily/system-start-delimiter-engraver.cc
lily/system-start-delimiter.cc
lily/text-item.cc
lily/tie.cc
lily/translator-group.cc
lily/unfolded-repeat-iterator.cc
lily/volta-engraver.cc
ly/engraver.ly
make/out/lilypond.lsm
make/out/lilypond.spec
mutopia/J.S.Bach/Solo-Cello-Suites/allemande-urtext.ly
mutopia/J.S.Bach/Solo-Cello-Suites/courante-urtext.ly
mutopia/J.S.Bach/Solo-Cello-Suites/gigue-urtext.ly
mutopia/J.S.Bach/Solo-Cello-Suites/menuetto-cello.ly
mutopia/J.S.Bach/Solo-Cello-Suites/menuetto-urtext.ly
mutopia/J.S.Bach/Solo-Cello-Suites/menuetto-viola.ly
mutopia/J.S.Bach/Solo-Cello-Suites/sarabande-urtext.ly
scm/basic-properties.scm
scm/element-descriptions.scm
scm/font.scm
scm/generate-documentation.scm
scm/interface.scm
scm/lily.scm
scm/slur.scm

diff --git a/CHANGES b/CHANGES
index ee34e3cab6bec2232b94c226f1a881cd1a0089cd..374d366791f7d6b3e6582cac247a79e7badb7e5c 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,7 +1,18 @@
-1.3.97.jcn2
-===========
+1.3.98
+======
+
+* Backend documentation updates and related cleanups
+
+* Removed \property bracketCollapseHeight, systemStartDelimiterGlyph
 
-* Quick bugfix for regtest.
+* Bugfix: instrument-name on grandstaffs, see
+input/test/instrument-name-grandstaff.ly
+
+* Bugfix for tie/staffline collision.
+
+* Bugfix: also send out end-repeat if there are no alternatives.
+
+* Small solo cello suite fixes.
 
 1.3.97.jcn1
 ===========
@@ -10,9 +21,8 @@
 
 * Added raise and kern to markup.  This should make Chord names usable.
 
-
-1.3.96.jcn10
-============
+1.3.97
+======
 
 * Made small fixes to basic properties: regression-test compiles.
 
@@ -54,9 +64,8 @@ inclusive) is now in Scheme.
 
 * Self-documenting backend using ly/generate-documentation.ly
 
-
-1.3.95.jcn5
-===========
+1.3.96
+======
 
 * Added friendly message for the clueless dvips user.
 
@@ -353,8 +362,6 @@ INCOMPATIBLE CHANGE)
 
 * added input/test/bagpipe.ly
 
-
-
 1.3.87
 ======
 
@@ -405,7 +412,6 @@ lists.
 
 * Separated definition and implementation of contexts (moved
 definition out of Translator_group into Translator_def)
 
 * pmx2ly.py fixes: now handles text at beginning of block correctly.
 
diff --git a/VERSION b/VERSION
index 195c80f7cb6ca965c5ea9b4d9668c24eed91185f..4ec85b0d8c4825c5e16d290ef28472534e0508eb 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1,8 +1,8 @@
 PACKAGE_NAME=LilyPond
 MAJOR_VERSION=1
 MINOR_VERSION=3
-PATCH_LEVEL=97
-MY_PATCH_LEVEL=jcn2
+PATCH_LEVEL=98
+MY_PATCH_LEVEL=
 
 # use the above to send patches: MY_PATCH_LEVEL is always empty for a
 # released version.
index e00db6914e8cc48047c1c37f267d6af6fc3d957d..0e1bae660048136f9ca6e0dc398d4870b63d4c32 100644 (file)
@@ -67,6 +67,10 @@ struct Interval_t : public Drul_array<T> {
     }
     return *this;
   }
+
+  Real linear_combination (Real x) const {
+    return ((1.0 - x) * Real (elem (LEFT))  + (x + 1.0) * Real (elem(RIGHT))) * 0.5;
+  }
   String str() const;    
   void print () const;
   bool elem_b (T r);
diff --git a/input/test/instrument-name-grandstaff.ly b/input/test/instrument-name-grandstaff.ly
new file mode 100644 (file)
index 0000000..4e40174
--- /dev/null
@@ -0,0 +1,18 @@
+\version "1.3.96";
+
+\score {
+  \notes
+  \notes \context GrandStaff <
+    \context Staff = treble    {
+      \property GrandStaff.instrument = "Violini  "
+      \property Staff.instrument = " vn I" { c''4 }}
+    \context Staff = bass { \property Staff.instrument = " vn II" c''4 }>
+
+
+\paper {
+linewidth=-1.0;
+\translator { \StaffContext
+  \consists "Instrument_name_engraver";
+  }
+\translator { \GrandStaffContext \consists "Instrument_name_engraver"; }
+}}
diff --git a/input/test/instrument-name.ly b/input/test/instrument-name.ly
new file mode 100644 (file)
index 0000000..b9df662
--- /dev/null
@@ -0,0 +1,12 @@
+\version "1.3.96";
+
+\score {
+
+  \notes     \context Staff = treble    {
+      \property Staff.instrument = "instr " { c''4 }}
+
+\paper {
+linewidth=-1.0;
+\translator { \StaffContext \consists "Instrument_name_engraver"; }
+}}
+
index d80bcba78b6a736c656a85b93b325b83e77e05c0..dba9d1e56af25eccd2145f78f0352c934b85d110 100644 (file)
 }
 
 allup = \notes{
-       \property Voice.verticalDirection = \up
-       \property Voice.slurVerticalDirection = \up
-        \property Voice.tieVerticalDirection = \up
-       \property Voice.dynamicDirection = \up
+       \stemUp
+       \slurUp
+        \tieUp
+       \property Voice.DynamicLineSpanner \push #'direction = #1
        \autoBeamOff
 }
+
 alldown = \notes{
-       \property Voice.verticalDirection = \down
-       \property Voice.slurVerticalDirection = \down
-        \property Voice.tieVerticalDirection = \down
-       \property Voice.dynamicDirection = \down
+       \stemDown
+       \slurDown
+        \tieDown
+       \property Voice.DynamicLineSpanner \push #'direction = #-1
        \autoBeamOff
 }
 
index 981b2a598f5355151977a936573f0579b558bca0..315d115473299b9c99b9f158652d5b685ac97cad 100644 (file)
 \paper {
 linewidth=-1.0;
 \translator { \ScoreContext
-       %textVerticalAlignment = #0
+       
        }
-%\translator { \StaffContext \consists "Instrument_name_engraver"; }
-%\translator { \PianoStaffContext \consists "Instrument_name_engraver"; }
 \translator { \StaffContext \consists "Instrument_name_engraver"; }
 \translator { \PianoStaffContext \consists "Instrument_name_engraver"; }
 }}
index 071311620e41791aa46996ff71d46e4ca56ead34..f943744f35d2a91a8fd74398d159043b10126955 100644 (file)
@@ -205,7 +205,7 @@ fugaIIPedal = \notes \relative c {
       c2^^^-^\f 
  \time 3/4;
 
-  \fugaIIPedal }
+  \fugaIIPedal \bar "|." ; }
       
     >
   >
index 4481ce67b33b3203256181b5349e32094cd422fa..62fa32579a8b22e9e801430cd17b6f1b74d834bc 100644 (file)
@@ -1,4 +1,3 @@
-
 /*   
   auto-beam-engraver.cc --  implement Auto_beam_engraver
   
@@ -7,6 +6,7 @@
   (c) 1999--2000 Jan Nieuwenhuizen <janneke@gnu.org>
   
  */
+
 #include "beaming.hh"
 #include "musical-request.hh"
 #include "beam.hh"
@@ -19,6 +19,9 @@
 #include "item.hh"
 #include "spanner.hh"
 
+/*
+  TODO: figure what to do in grace?
+ */
 class Auto_beam_engraver : public Engraver
 {
 public:
@@ -56,16 +59,8 @@ private:
   Beaming_info_list*finished_grouping_p_;
 };
 
-
-
-
 ADD_THIS_TRANSLATOR (Auto_beam_engraver);
 
-
-/*
-  TODO: remove all references to Timing_engraver; should read properties.
-  
- */
 Auto_beam_engraver::Auto_beam_engraver ()
 {
   stem_l_arr_p_ = 0;
@@ -75,7 +70,6 @@ Auto_beam_engraver::Auto_beam_engraver ()
   grouping_p_ = 0;
 }
 
-
 bool
 Auto_beam_engraver::do_try_music (Music*) 
 {
@@ -95,7 +89,6 @@ Auto_beam_engraver::consider_end_and_begin (Moment test_mom)
 
   int num = *unsmob_moment (get_property("measureLength")) / one_beat;
   int den = one_beat.den_i ();
-
   
   String time_str = String ("time") + to_str (num) + "_" + to_str (den);
 
@@ -219,7 +212,7 @@ Auto_beam_engraver::consider_end_and_begin (Moment test_mom)
     return;
 
   if (begin_mom)
-    r =     unsmob_moment (get_property ("measurePosition"))->mod_rat (begin_mom);
+    r = unsmob_moment (get_property ("measurePosition"))->mod_rat (begin_mom);
   if (!stem_l_arr_p_ && (!begin_mom || !r))
     begin_beam ();
 }
@@ -449,4 +442,3 @@ Auto_beam_engraver::process_acknowledged ()
        }
     }
 }
-
index 1ffdb1325c7fab7e08d9a14ce46d6705c111237b..5eed84b17cf2283a69e2eef6d95cba8c8ea2aa28 100644 (file)
@@ -213,8 +213,6 @@ Break_align_interface::do_alignment (Score_element *me)
   column->set_elt_property ("stretch-distance",
                            gh_cons (gh_double2scm (-dists[0]),
                                     gh_double2scm (stretch_distance)));
-
-
 }
 
 
index faf226af33a920089606c7f9c850a90ebd43054f..44d716424eeca1ede25a824cd988489d7011fd1f 100644 (file)
 #include "string.hh"
 #include "molecule.hh"
 #include "item.hh"
+#include "lookup.hh"
 
 /*
 FIXME: should use symbol for #'style.
-
 */
 MAKE_SCHEME_CALLBACK(Clef,before_line_breaking,1);
 SCM
@@ -66,3 +66,20 @@ Clef::set_interface (Score_element* me)
 }
 
 
+
+
+MAKE_SCHEME_CALLBACK(Clef,brew_molecule,1)
+SCM
+Clef::brew_molecule (SCM smob) 
+{
+  Score_element * sc = unsmob_element (smob);
+  SCM glyph = sc->get_elt_property ("glyph");
+  if (gh_string_p (glyph))
+    {
+      return sc->lookup_l ()->afm_find (String (ly_scm2string (glyph))).create_scheme ();
+    }
+  else
+    {
+      return SCM_EOL;
+    }
+}
index 3c4676b9899170b4ffabe07851231411f51059c5..62b65810782134e04e5337b95de2019bea6abcaf 100644 (file)
 #include "group-interface.hh"
 
 /**
-   Treat a group of elements as a union. This sets the parent of any S
-   added to ELT_L_ to ELT_L_.
 
-   Properties:
 */
 struct Axis_group_interface 
 {
index d0f620a2c4bc0e84eb7a7952f219fa97b4f231f6..729af54e49a854be3468fc5b3aa51e5c0ac69f6d 100644 (file)
 #include "lily-guile.hh"
 #include "molecule.hh"
 
-/**
-   elt_properties:
-   pitches: list of musical-pitch
-   inversion(optional): musical-pitch
-   bass(optional): musical-pitch
- */
+
 class Chord_name
 {
 public:
index e5308818df54e2e9f66db78169f3d06c0c962304..f5fabe24f112b4a9de5b734cc6ef1785709ae1e8 100644 (file)
@@ -15,6 +15,7 @@
 struct Clef 
 {
   DECLARE_SCHEME_CALLBACK(before_line_breaking, (SCM ));
+  DECLARE_SCHEME_CALLBACK(brew_molecule, (SCM ));
   static bool has_interface (Score_element*);
   static void set_interface (Score_element*);
 };
index 0c3268ea20cb8dd2502eb1b6b1ab16d5de409a74..7bee6ca5085e2eab7e317ef67073511ed32ed6ff 100644 (file)
 #include "lily-guile.hh"
 #include "lily-proto.hh"
 
-/** 
-  As Vertical_group_spanner, but keep track of interesting items.  If
-  we don't contain any interesting items after linebreaking, then
-  gracefully commit suicide.  Objective: don't disgrace Lily by
-  typesetting empty lines in orchestral scores.
 
-  properties:
-
-  items-worth-living -- list of interesting items. If empty in a particular system,
-    clear this line
-
-
-    todo: naming
-*/
 class Hara_kiri_group_spanner 
 {
 public:
index 85c58aa4a9d971f41090472164bb6df0f18d84b4..ce597312c7d6b3a0b2c5416815562c63f3e66630 100644 (file)
   Item is the datastructure for printables whose width is known
   before the spacing is calculated
 
-  NB. This doesn't mean an Item has to initialize the output field before
-  spacing calculation. 
-  
-  
-  Element properties
-  
-  visibility-lambda -- a function that takes the break
-  direction and returns a (transparent, empty) cons
-
-  breakable -- boolean indicating if this is a breakable item (clef,
-  barline, key sig, etc.)
-
-   */
+*/
 class Item : public Score_element
 {
   Drul_array<Item*> broken_to_drul_;
index 3f48ff410dba285f2260ef48828c9acd3a2ad34c..0f2c4d14df36c0cb3a881179b95a809a9b93f25e 100644 (file)
 #include "lily-guile.hh"
 #include "lily-proto.hh"
 
-/**
 
-
-  Properties:
-
-
- */
 struct Key_item
 {
   static int calculate_position(Score_element*,SCM pair) ;
index bd1186d54edcb199102d6236b4e25aa6ac33abb8..330df38719b719fa9922471bb96a7baa613f4b69 100644 (file)
 #include "column-x-positions.hh"
 #include "spanner.hh"
 
-/**
-   The columns of a score that form one line.  The toplevel element.
-   Any element has a Line_of_score as both X and Y reference
-   point. The Paper_score contains one element of this type. Control
-   enters the Score_element dependency calculation from this single
-   Line_of_score object.
-   
-   
-  properties:
-
-    all-elements -- list of all score elements in this line. Needed
-      for protecting elements from GC.
-
-    columns -- list of all paper columns
-
-  */
 class Line_of_score : public Spanner
 {
 public:
index 94055324c7ea3821f86cab0050bd6800105a4fa7..23ba1a6963834b2d42124545a9727c78ca835e76 100644 (file)
 
 
 
-/*
-  Move rests in note-columns so that they do not collide.
-  
-  properties:
-
-  read-only
-
-  maximum-rest-count -- kill off rests so we don't more than this
-    number left.
-
-  minimum-distance -- minimum distance between notes and rests.
-
-  read/write
-  
-  elements -- list of elts (both rests and notes) participating in the
-    collision.
-
-
-  sets in elements:
-
-    rest-collision -- pointer to self.
-
-    
-  
-    
-*/
-
-class Rest_collision           // interface
+class Rest_collision
 {
 public:
   static void add_column (Score_element*me,Score_element*);
index 81fa3115fce0ad28a88e22ae4dfcb56ea4611f10..90a056b60fb9f264fd2f558a82e2f99ed867ac84 100644 (file)
@@ -24,30 +24,12 @@ enum Score_element_status {
   PRECALCED,           // calcs before spacing done
   POSTCALCING,         // busy calculating. This is used to trap cyclic deps.
   POSTCALCED,          // after spacing calcs done
-  BREWING,
-  BREWED,
 };
 
 typedef void (Score_element::*Score_element_method_pointer) (void);
 
-/**
+/*
    Basic output object.
-
-    Element Properties:
-
-   transparent -- boolean: if true, do not print anything black.
-
-   dependencies -- list of score-element pointers that indicate who to
-   compute first.
-
-   interfaces -- list of symbols indicating the interfaces supported
-   by this object.
-
-   extra-offset -- pair of reals (a cons) forcing an extra offset
-   before outputting
-
-   glyph -- afm character name to output.
-   
 */
 class Score_element  {
   /**
@@ -138,8 +120,6 @@ public:
   bool has_interface (SCM intf);
   void set_interface (SCM intf);
 
-
-  DECLARE_SCHEME_CALLBACK(brew_molecule, (SCM ));
   virtual void handle_broken_dependencies ();
   virtual void handle_prebroken_dependencies ();
 
index 74c0b0b4d3d5626507f75783c828f109fe4a4282..51e0b18760c534f4f3f00c204be03b35c43c98d4 100644 (file)
 
 #include "lily-proto.hh"
 
-/** Calc dimensions for the Separating_group_spanner; this has to be
-   an item to get dependencies correct.  It can't be an element_group
-   since these usually are in a different X_group
-
-   Properties:
-
-
-   elements -- list of items.
-   
-   no-spacing-rods -- read from elements: boolean that makes Separation_item ignore
-     this item
-   
+/**  
 */
 struct Separation_item
 {
index 6c9cb6e5ed1de644ce086cb2b16d878e86e10bfc..d5392ee73df095e0a44b10adeb20f6f2145ddfb1 100644 (file)
 #include "spanner.hh"
 #include "item.hh"
 
-/**
-   Position victim object (ELT_L_) next to other objects (the support).
+/*
+  TODO: move  out unrelated callbacks.
 
-   side-support -- list of score elements
-
-   direction-source -- in case side-relative-direction is set, where
-     to get the direction
-
-   TODO: move  out unrelated callbacks.
-
-   TODO: reduce number of methods.
+  TODO: reduce number of methods.
 */
 struct Side_position
 {
index c788b68e0f07156a3ca89869c0c112b74cdf81f6..d4f2e11c01eea1754bd8a501331b2a3803d3f50f 100644 (file)
@@ -11,8 +11,6 @@
 #include "lily-proto.hh"
 #include "rod.hh"
 
-/**
-*/
 class Slur
 {
 public:
index 55e30a0f5cbcbb003f0ad27dcb7b9537d943cf14..dfc939ab712d6ad1e5debda9d62d32c0a2c96d37 100644 (file)
 #include "lily-guile.hh"
 #include "stem-info.hh"
 
-/**the rule attached to the ball.
-  takes care of:
-
-  \begin{itemize}
-  \item the rule
-  \item the flag
-  \item up/down position.
-  \end{itemize}
-
-  should move beam_{left, right} into Beam
-
-  TODO.
-  
-  Stem size depends on flag.
-
-  elt properties:
-
-  beam_dir: direction of the beam (int)
-
-  dir_force: is direction explicitely specified? (bool)
-
-  /// how many abbrev beam don't reach stem?
-  int beam_gap_i_;
-  
-  */
 class Stem 
 {
 public:
   DECLARE_SCHEME_CALLBACK(brew_molecule, (SCM ));
 
-  /// log of the duration. Eg. 4 -> 16th note -> 2 flags
   static  int flag_i (Score_element*) ;
   static int beam_count (Score_element*,Direction) ;
   static void set_beaming (Score_element*,int,  Direction d);
-  /** 
-      don't print flag when in beam.
-      our beam, for aligning abbrev flags
-  */
   static Score_element * beam_l (Score_element*);
   static Score_element * first_head (Score_element*) ;
   static Drul_array<Score_element*> extremal_heads (Score_element*);
   static Score_element * support_head (Score_element*) ;
-  
-  /// ensure that this Stem also encompasses the Notehead #n#
   static void add_head (Score_element*me, Score_element*n);
   static Stem_info calc_stem_info (Score_element *) ;
   static Real chord_start_f (Score_element *) ;
@@ -65,8 +33,6 @@ public:
   static int get_center_distance(Score_element *,Direction) ;
   static int heads_i (Score_element *) ;
   static bool invisible_b(Score_element *) ;
-  /// heads that the stem encompasses (positions)
   static Interval head_positions(Score_element *) ;
   static Real get_default_stem_end_position (Score_element*me) ;
   static void position_noteheads(Score_element*);
index 5d317cda256ea8dc2bd0c51d697bd783ec425cd7..8e96b27683c16e672461094a8e74ba67bf9ca561 100644 (file)
@@ -9,20 +9,13 @@
 
 #include "lily-guile.hh"
 
-/** supportable plet: triplets, eentweetjes, ottava, etc.
+/*
 
     TODO: quantise, we don't want to collide with staff lines.
     (or should we be above staff?)
 
   todo: handle breaking elegantly.
-properties:
-
-  beams -- list of beam ptrs.
-
-  columns -- list of note-columns.
-
 */
-
 class Tuplet_spanner
 {
 public:
index 992c0e5baff13ffa7b7f7158dffd838167778745..4b6f455a556fb216ce39dbe66b5668eb461971e8 100644 (file)
@@ -35,6 +35,12 @@ scm_sizet free_smob (SCM s)
   return 0;
 }
 
+SCM
+ly_input_p (SCM x)
+{
+  return unsmob_input (x) ? SCM_BOOL_T : SCM_BOOL_F ;
+}
+
 static
 void start_input_smobs()
 {
@@ -42,6 +48,8 @@ void start_input_smobs()
     = scm_make_smob_type_mfpe ("input", 0,
                               mark_smob, free_smob,
                               print_smob, 0);
+  scm_make_gsubr ("ly-input-location?", 1, 0, 0, (Scheme_function_unknown)ly_input_p);
 }
 
 SCM
@@ -73,3 +81,4 @@ ADD_SCM_INIT_FUNC(input, start_input_smobs);
 
 
 Input dummy_input_global;
+
index 131c67ad3bcd97d1fe3825e1e521825d68e5f83d..69f29134b7ce7baddf6d5407e219ccac3869a9b4 100644 (file)
@@ -1,4 +1,3 @@
-
 /*   
   new-staff-margin-engraver.cc --  implement Instrument_name_engraver
   
 #include "bar.hh"
 #include "system-start-delimiter.hh"
 #include "side-position-interface.hh"
+#include "align-interface.hh"
 
 class Instrument_name_engraver : public Engraver
 {
   Item *text_;
-  Spanner * delim_ ;
+  Score_element * delim_ ;
 
   void create_text (SCM s);
 public:
@@ -55,9 +55,6 @@ Instrument_name_engraver::create_text (SCM txt)
       text_ = new Item (get_property ("InstrumentName"));
       text_->set_elt_property ("text", txt);
 
-      /*
-       TODO: use more lispish names for break-align-symbols
-       */
       if (delim_)
        text_->set_parent (delim_, Y_AXIS);
 
@@ -81,10 +78,12 @@ Instrument_name_engraver::acknowledge_element (Score_element_info i)
        }
     }
 
-  if (System_start_delimiter::has_interface (i.elem_l_)
+  if (Align_interface::has_interface (i.elem_l_)
+      && Align_interface::axis  (i.elem_l_) == Y_AXIS      
+      //System_start_delimiter::has_interface (i.elem_l_)
       && i.origin_trans_l_->daddy_trans_l_ == daddy_trans_l_)
     {
-      delim_ = dynamic_cast<Spanner*> (i.elem_l_);
+      delim_ = i.elem_l_;
     }
 }
 
index 4a6e26d5d1ae1077af7dd7cf815c849bbb4eafce..7b722ba5116f926b5b5d9be92ae945bb80d64942 100644 (file)
@@ -396,11 +396,21 @@ undefd ()
   return SCM_UNDEFINED;
 }
 
+#include "version.hh"
+SCM
+ly_version ()
+{
+  char const* vs =  "\'(" MAJOR_VERSION " " MINOR_VERSION " "  PATCH_LEVEL " " MY_PATCH_LEVEL ")" ;
+
+  
+  return gh_eval_str (vs);
+}
 
 static void
 init_functions ()
 {
   scm_make_gsubr ("ly-warn", 1, 0, 0, (Scheme_function_unknown)ly_warning);
+  scm_make_gsubr ("ly-version", 0, 0, 0, (Scheme_function_unknown)ly_warning);  
   scm_make_gsubr ("ly-gulp-file", 1,0, 0, (Scheme_function_unknown)ly_gulp_file);
   scm_make_gsubr ("dir?", 1,0, 0, (Scheme_function_unknown)ly_isdir_p);
   scm_make_gsubr ("undefd", 0,0, 0, (Scheme_function_unknown)undefd);  
index 67b48089a33ac2528ec1fb1f88e2c3b0c3716890..bebdabbad502157415125ecaaa18ae0dd8859ba2 100644 (file)
@@ -153,8 +153,11 @@ Property_engraver::apply_properties (SCM p, Score_element *e, Translator_group*o
            SCM errport = scm_current_error_port ();
            warning (_("Wrong type for property"));
            scm_display (prop_sym, errport);
-           scm_puts (", type predicate: ", errport);
-           scm_display (type_p, errport);
+           scm_puts (", type: ", errport);
+
+           SCM typefunc = scm_eval2 (ly_symbol2scm ("type-name"), SCM_EOL);
+           
+           scm_display (gh_call1 (typefunc, type_p), errport);
            scm_puts (", value found: ", errport);
            scm_display (val, errport);
            scm_puts (" type: ", errport);
index bf888bc1b068d9bbdb825996252557929b914765..e119ab714adf7c1dadce2d7bfaf093932a6fa55a 100644 (file)
@@ -64,10 +64,11 @@ Repeat_acknowledge_engraver::do_process_music ()
     return ; 
   
   SCM cs = get_property ("repeatCommands");
-
+  
   String s = "";
-  bool start  = false;
+  bool start = false;
   bool end = false;
+  bool volta_found = false;
   while (gh_pair_p (cs))
     {
       SCM command = gh_car (cs);
@@ -75,6 +76,8 @@ Repeat_acknowledge_engraver::do_process_music ()
        start = true;
       else if (command == ly_symbol2scm ("end-repeat"))
        end = true;
+      else if (gh_pair_p (command) && gh_car (command) == ly_symbol2scm ("volta"))
+       volta_found = true;
       cs = gh_cdr (cs);      
     }
 
@@ -85,7 +88,10 @@ Repeat_acknowledge_engraver::do_process_music ()
   else if (end)
     s = ":|";
 
-  if (s != "")
+  /*
+    TODO: line breaks might be allowed if we set whichBar to "". 
+   */
+  if (s != "" || (volta_found && !gh_string_p (get_property ("whichBar"))))
     {
       daddy_trans_l_->set_property ("whichBar", ly_str02scm(s.ch_C()));
     }
index 4a4c59d60da5972de8767809233786472562ac12..6f5f97bd65582ee562be32a318167328bf2f708f 100644 (file)
@@ -296,9 +296,8 @@ Score_element::get_molecule ()  const
   Molecule m (create_molecule (mol));
 
   /*
-    This is almost the same as setting molecule-callback to #f, but
-    this retains the dimensions of this element, which means that you
-    can erase elements individually.  */
+    transparent retains dimensions of element.
+   */
   if (to_boolean (get_elt_property ("transparent")))
     m = Molecule (m.extent_box (), SCM_EOL);
 
@@ -320,26 +319,6 @@ Score_element::do_break_processing()
 
 
 
-MAKE_SCHEME_CALLBACK(Score_element,brew_molecule,1)
-
-/*
-  ugh.
- */  
-SCM
-Score_element::brew_molecule (SCM smob) 
-{
-  Score_element * sc = unsmob_element (smob);
-  SCM glyph = sc->get_elt_property ("glyph");
-  if (gh_string_p (glyph))
-    {
-      return sc->lookup_l ()->afm_find (String (ly_scm2string (glyph))).create_scheme ();
-    }
-  else
-    {
-      return SCM_EOL;
-    }
-}
-
 
 Line_of_score *
 Score_element::line_l() const
index 756993387e61f3c3f4f175f5c2f1a4c9de09c8a4..c7bbf78aaac7ddf21e7191793d3975958bd16748 100644 (file)
@@ -129,8 +129,7 @@ Side_position::aligned_on_self (SCM element_smob, SCM axis)
        }
       else
        {
-         Real lambda = (0.5 - gh_scm2double (align) / 2.0);
-         return gh_double2scm (- (lambda * ext[LEFT] + (1 - lambda) * ext[RIGHT]));
+         return gh_double2scm (- ext.linear_combination (gh_scm2double (align)));
        }
     }
   else if (unsmob_element (align))
index b9f3396206ed96215e8d5a5bafff1de7e002ae0c..5e611e7c179969b5c44a286dfb838e3155feafae 100644 (file)
@@ -186,7 +186,7 @@ Slur_bezier_bow::minimise_enclosed_area (Paper_def* paper_l, Real beauty)
       curve_.control_[2][X_AXIS] -= da[1] * u * pct;
     }
 
-  Real area = enclosed_area_f ();
+  //  Real area = enclosed_area_f ();
 }
 
 
index 1ac4b5cf79513bcecd10db8476306770189b170d..f52240d327dbda2a8a39822ceb9aefe035c423de 100644 (file)
@@ -10,6 +10,7 @@
 /*
   [TODO]
     * fix broken interstaff slurs
+    * should avoid stafflines with horizontal part.
     * begin and end should be treated as a/acknowledge Scripts.
     * smart changing of endings
     * smart changing of (Y-?)offsets to avoid ugly beziers
index a7fe2500b3880625a2255b113cc89edcacf9a020..f0a78fa2778369e5483d79a5e93b5d2d0475ccd3 100644 (file)
@@ -238,16 +238,10 @@ Stem::get_default_dir (Score_element*me)
   return to_dir (me->get_elt_property ("default-neutral-direction"));
 }
 
-/*
-  ugh. A is used for different purposes. This functionality should be
-  moved into scheme at some point to get rid of the silly
-  conversions. (but lets wait till we have namespaces in SCM)
- */
 Real
 Stem::get_default_stem_end_position (Score_element*me) 
 {
   bool grace_b = to_boolean (me->get_elt_property ("grace"));
-  String type_str = grace_b ? "grace-" : "";
   SCM s;
   Array<Real> a;
 
@@ -301,14 +295,14 @@ Stem::get_default_stem_end_position (Score_element*me)
    Real st = head_positions(me)[dir] + dir * length_f;
   
    bool no_extend_b = to_boolean (me->get_elt_property ("no-stem-extend"));
-    if (!grace_b && !no_extend_b && dir * st < 0)
+   if (!grace_b && !no_extend_b && dir * st < 0) // junkme?
       st = 0.0;
 
   return st;
 }
 
 /*
-  FIXME: wrong name
+  Number of hooks on the flag, ie. the log of the duration.
  */
 int
 Stem::flag_i (Score_element*me) 
index a6955147cbadc6e8af2ec8092ab860210025f295..e5abe9cdf400e83bf31945f13135258532f974fe 100644 (file)
@@ -66,18 +66,9 @@ void
 System_start_delimiter_engraver::do_creation_processing()
 {
   delim_ = new Spanner (get_property ("SystemStartDelimiter"));
-  System_start_delimiter::set_interface (delim_);
+
   delim_->set_bound (LEFT, unsmob_element (get_property ("currentCommandColumn")));
 
-  /*
-    You can't override the glyph using \property, you must do it in
-    the predefined context (ie. \translator { ... } )
-   */
-  SCM s = get_property ("systemStartDelimiterGlyph");
-  if (gh_symbol_p (s))
-    {
-      delim_->set_elt_property ("glyph", s);
-    }
 
   announce_element (delim_,0);
 }
@@ -85,11 +76,6 @@ System_start_delimiter_engraver::do_creation_processing()
 void
 System_start_delimiter_engraver::do_removal_processing ()
 {
-  // ugh, should have naming without bracket
-  SCM collapse = get_property ("bracketCollapseHeight");
-  if (gh_number_p (collapse))
-    delim_->set_elt_property ("collapse-height", collapse);
-      
   delim_->set_bound (RIGHT, unsmob_element (get_property ("currentCommandColumn")));
   typeset_element (delim_);
 }
index 957dd429ee3ff465cfa95c1a6a66ec2dcdeae8e6..d085267e113212884f25ee60e711a7980513ffd3 100644 (file)
@@ -44,7 +44,6 @@ System_start_delimiter::staff_bracket (Score_element*me,Real height)
 void
 System_start_delimiter::set_interface (Score_element*me)
 {
-  me->set_extent_callback (SCM_EOL, Y_AXIS);
   me->set_interface (ly_symbol2scm ("system-start-delimiter-interface"));
 }
 
index 420e2b17a60474b64b04af55aaed95f0ea10541a..deada62d3073ad9644a56e89c6f0c12769501c4c 100644 (file)
@@ -17,6 +17,7 @@
 #include "all-font-metrics.hh"
 #include "afm.hh"
 
+
 /*
   text: string | (markup sentence)
   markup: markup-symbol | (markup-symbol . parameter)
index 39bc2306de81bbc0e3156c945b4f8cc115419d12..ffbf5f40fa68009290a924dbc847c3140321405c 100644 (file)
@@ -129,17 +129,27 @@ Tie::get_control_points (SCM smob)
 
   Real x_gap_f = gh_scm2double (me->get_elt_property ("x-gap"));
 
-  Score_element* commonx = me->common_refpoint (me->get_bound (LEFT), X_AXIS);
-  commonx = me->common_refpoint (me->get_bound (RIGHT), X_AXIS);
-  
   Score_element* l = me->get_bound (LEFT);
   Score_element* r = me->get_bound (RIGHT);  
 
+  Score_element* commonx = me->common_refpoint (l, X_AXIS);
+  commonx = me->common_refpoint (r, X_AXIS);
+  
   Real left_x;
+
+  /*
+    this is a kludge: the tie has to be long enough to be
+    visible, but should not go through key sigs.
+
+    (please fixme)
+   */
+  Real lambda = 0.5;           
+  
   if (Note_head::has_interface (me->get_bound (LEFT)))
     left_x = l->extent (l, X_AXIS)[RIGHT] + x_gap_f;
   else
-    left_x = l->extent (l, X_AXIS).length () / 2;
+    left_x = l->extent (l, X_AXIS).linear_combination (lambda);
+  
 
   Real width;
   if (Note_head::has_interface (me->get_bound (LEFT))
@@ -157,10 +167,9 @@ Tie::get_control_points (SCM smob)
          - l->extent (commonx, X_AXIS)[RIGHT]
          - 2 * x_gap_f;
       else
-       width = 
-         - l->extent (l, X_AXIS).length () / 2
+       width =
+         - l->extent (commonx, X_AXIS).linear_combination (lambda)  
          + r->extent (commonx, X_AXIS)[LEFT]
-         - l->relative_coordinate (commonx, X_AXIS)
          - 2 * x_gap_f;
     }
   
@@ -212,9 +221,12 @@ Tie::get_control_points (SCM smob)
 
   /*
     Avoid colliding of the horizontal part with stafflines.
+
     
-    should do me for slurs as well.
+    TODO: redo this, heuristic is half-baken, and ties often look ugly
+    as a result.
 
+    TODO: doesn't work when on staff with even number of lines.
    */
   Array<Real> horizontal (b.solve_derivative (Offset (1,0)));
   if (horizontal.size ())
@@ -233,7 +245,20 @@ Tie::get_control_points (SCM smob)
        if (fabs (y) <= Staff_symbol_referencer::staff_radius (me)
          && fabs (diff) < clear)
        {
-         newy = ry - 0.5 * staff_space * sign (diff) ;
+         Real y1 = ry + clear;
+         Real y2 = ry - clear;
+         
+         newy =  (fabs (y1 - y) < fabs (y2 - y)) ? y1 : y2;
+         
+         //      newy = ry - 0.5 * staff_space * sign (diff) ;
+
+         /*
+           we don't want horizontal ties
+          */
+         if (fabs (newy - b.control_[0][Y_AXIS]) < 1e-2)
+           {
+             newy = newy + dir * staff_space; 
+           }
        }
 
       Real y0 = b.control_ [0][Y_AXIS];
index 6b735ad953232e7c317320ae2bd279c9013c6855..6e455d8e5c78227559b3b2104c19abd4ac31d37f 100644 (file)
@@ -371,8 +371,10 @@ Translator_group::execute_single_pushpop_property (SCM prop, SCM eltprop, SCM va
                      scm_display (eltprop,errport);
                      scm_puts ( _(", value ").ch_C (), errport);
                      scm_display (val, errport);
-                     scm_puts (_(" must satisfy ").ch_C (), errport);
-                     scm_display (predicate, errport);
+                     scm_puts (_(" must be of type ").ch_C (), errport);
+                     SCM typefunc = scm_eval2 (ly_symbol2scm ("type-name"), SCM_EOL);
+           
+                     scm_display (gh_call1 (typefunc, predicate), errport);
                      scm_puts ("\n", errport);               
                    }
                }
index 47eabef881a6341b14734d9fbb6ca5465461ecb9..044ba7e8427a37bdfbee081ecbd39402f9d195a6 100644 (file)
@@ -53,6 +53,8 @@ Unfolded_repeat_iterator::next_element (bool side_effect)
 
        - go to alternative if we're a volta
 
+       - make a :| if there are no alternatives   
+       
        - do something intelligent when we're fully unfolding (fixcomment)
        */
       
@@ -74,7 +76,11 @@ Unfolded_repeat_iterator::next_element (bool side_effect)
                                             ly_str02scm (repstr.ch_C()), SCM_UNDEFINED));
            }     
        }
-      else if (done_count_ <  repmus->repeats_i_ && !repmus->volta_fold_b_) 
+      else if (repmus->volta_fold_b_)
+       {
+         add_repeat_command (ly_symbol2scm ("end-repeat"));
+       }
+      else if (done_count_ <  repmus->repeats_i_)
        {
          current_iter_p_ = get_iterator_p (repmus->body ());
          do_main_b_ = true;
index d80304ad9b1ea1ee3a941c4e3f4257e18e2fee22..d208b44a105a241e4915c50214987086125c0b4b 100644 (file)
@@ -162,3 +162,7 @@ Volta_engraver::do_pre_move_processing ()
       end_volta_span_p_ =0;
     }
 }
+
+/*
+  TODO: should attach volta to paper-column if no bar is found.
+ */
index 8d5be1e0642a83a21994b6e8c12d4f3f5c0b1b24..60c71da79679865b9a67b87eca7fb8f145955fcf 100644 (file)
@@ -55,7 +55,7 @@ ChoirStaffContext = \translator {
        \name ChoirStaff;
        alignmentReference = \center;
        \consists "System_start_delimiter_engraver";
-       systemStartDelimiterGlyph = #'bracket
+       SystemStartDelimiter \push #'glyph = #'bracket
 
        \accepts "Staff";
        \accepts "RhythmicStaff";
@@ -142,7 +142,7 @@ GraceContext=\translator {
        \consists "Stem_engraver";
        \consists "Beam_engraver";
        \consists "Slur_engraver";
-       
+
        \consists "Auto_beam_engraver";
        \consists "Align_note_column_engraver";
 
@@ -194,7 +194,7 @@ GrandStaffContext=\translator{
        \consists "Span_bar_engraver";
        \consists "Span_arpeggio_engraver";
        \consists "System_start_delimiter_engraver";
-       systemStartDelimiterGlyph = #'brace
+       SystemStartDelimiter \push #'glyph = #'brace
        
        \consists "Property_engraver";  
        Generic_property_list = #generic-grand-staff-properties
@@ -220,7 +220,8 @@ StaffGroupContext= \translator {
        \consists "Span_bar_engraver";
        \consists "Span_arpeggio_engraver";
        \consists "Output_property_engraver";   
-       systemStartDelimiterGlyph = #'bracket
+       SystemStartDelimiter \push #'glyph = #'bracket
+
        \consists "System_start_delimiter_engraver";
        \accepts "Staff";
        \accepts "RhythmicStaff";
@@ -398,7 +399,7 @@ ScoreContext = \translator {
        alignmentReference = \down;
        defaultClef = #"treble"
        defaultBarType = #"|"
-       systemStartDelimiterGlyph = #'bar-line
+
        explicitClefVisibility = #all-visible
        explicitKeySignatureVisibility = #all-visible
        
index c674df4239e800dd58e9e9b391a40f488e5289a8..6136b2f8661ff5252628937f07abb46616054b52 100644 (file)
@@ -1,6 +1,6 @@
 Begin3
 Title: LilyPond
-Version: 1.3.97
+Version: 1.3.98
 Entered-date: 22OCT00
 Description: 
 Keywords: music notation typesetting midi fonts engraving
@@ -8,8 +8,8 @@ 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.97.tar.gz 
+       1000k lilypond-1.3.98.tar.gz 
 Original-site: ftp.cs.uu.nl /pub/GNU/LilyPond/development/
-       1000k lilypond-1.3.97.tar.gz 
+       1000k lilypond-1.3.98.tar.gz 
 Copying-policy: GPL
 End
index 8d1decf1a5b09ef343d27cd9f149bfb11247525f..1351af8fa79f644104ef5d41057c161c161f789b 100644 (file)
@@ -1,9 +1,9 @@
 Name: lilypond
-Version: 1.3.97
+Version: 1.3.98
 Release: 1
 License: GPL
 Group: Applications/Publishing
-Source0: ftp.cs.uu.nl:/pub/GNU/LilyPond/development/lilypond-1.3.97.tar.gz
+Source0: ftp.cs.uu.nl:/pub/GNU/LilyPond/development/lilypond-1.3.98.tar.gz
 Summary: A program for printing sheet music.
 URL: http://www.cs.uu.nl/~hanwen/lilypond
 # Icon: lilypond-icon.gif
index fee7c2d782d005a342e62f7b507711c8eb482cce..480995effdbb4de6b87f537725b1b011ba101a22 100644 (file)
@@ -60,6 +60,7 @@ allemande_a = \context Staff \notes \relative c {
        cis(e g!)bes e()a, bes()g f()cis d()gis, a8 cis! |
        % knee
        \stemUp d,16 \stemBoth d''(c!)a bes!(g)e cis' d a f d d,8.
+       \bar "|.";
 }
 
 allemande_b = \notes \relative c {
index 8a35f8aafe45125f3ef00c556fc5b956d2e2a56b..ff7f05d526c0d9f16f5bea5ec69f0ffb6c77d204 100644 (file)
@@ -54,6 +54,7 @@ courante_a = \context Staff \notes \relative c {
        gis, d'(e f e d cis)d a d a cis |
        d a f a d, f a, d 
        d,8.
+       \bar "|.";              
 }
 
 courante_b = \notes \relative c {
index d31d4893e4d242fd13bc9e6c6f044600c271be71..d300e28aeb73d14b9ce26cdfdbb21974cabf992c 100644 (file)
@@ -66,6 +66,7 @@ gigue_notes = \context Staff \notes \relative c {
        %72
        cis'4 \stemBoth d16()c | bes(a g f e)d | cis(b a g f)e | d f a d f a |
        d4
+       \bar "|.";              
 }
 
 gigue_b = \context Staff \notes \relative c {
index 0cbaba1420d5206215c721d75c1f153bc7b41cce..6b4fcf1a643814e7ae11b051c7ce7edb38c29145 100644 (file)
@@ -95,6 +95,9 @@ menuetto_ii_cello_staff = \context Staff <
                }
        }
        \midi{ \tempo 4 = 130; }
-       \header{ piece = "Menuetto II"; }
+       \header{
+               piece = "Menuetto II";
+               opus = "";
+       }
 }
 
index 2c6fe350b47afc8e335551ec259bc076e3ece50d..a00f3c8a86c91625a4a7321f449f81b4a050fccb 100644 (file)
@@ -66,6 +66,7 @@ menuetto_i_b = \context Staff \notes \relative c {
        g4 \skip 4*1; f4 |
        cis8 \skip 8*3; d4 |
        s2.*2
+       \bar "|.";              
 }
 
 % UGH, fix this like in sarabande
@@ -146,6 +147,7 @@ menuetto_ii = \context Staff\notes \relative c {
        e( fis g )b a4 |
        g8()fis e()d e()cis |
        d2.
+       \bar "|.";      
 }
 
 \version "1.3.93";
index 633af16bb586724da9d534db61da8472a65d4536..c5bb69539263efdeff877947549cea80be35b44d 100644 (file)
@@ -58,8 +58,9 @@ menuetto_i_viola_staff = \context Staff <
        }
        \midi{ \tempo 4 = 110; }
        \header{
-       opus= "" ; 
-       piece ="Menuetto I"; }
+               opus= "" ; 
+               piece ="Menuetto I";
+       }
 }
 
 menuetto_ii_viola_global = \notes{
index 7344202daa1a9286e2d520e9c382e64285f5cee8..a2f8b2f4c6b94664925d93b97b9fa37999d7bd81 100644 (file)
@@ -81,6 +81,7 @@ sarabande_b = \context Staff \notes \relative c {
        f'4 fis4. s8 |
        <d4 g,> gis4. s8 |
        s2.*2
+       \bar "|.";      
 }
 
 
index ff3204e8e2dbda1a835e36fe1ce495b6c907252c..7955f6a630dbd1489a7aea1962596e0306b11d1c 100644 (file)
     (flag-width-function . ,default-beam-flag-width-function)
     (space-function . ,default-beam-space-function)
     (damping . 1)
-    (meta . ,(element-description "Beam" general-element-interface beam-interface))
+    (meta . ,(element-description "Beam" beam-interface))
     )
   )
 
index 80613065f48950c5702480e65f6763ca02da7945..dedecbf7a17ffcc7fb958818e158d260aa6daf5b 100644 (file)
@@ -77,7 +77,7 @@
        ))
 
        (Clef . (
-          (molecule-callback . ,Score_element::brew_molecule)
+          (molecule-callback . ,Clef::brew_molecule)
           (before-line-breaking-callback . ,Clef::before_line_breaking)
           (breakable . #t)
           (break-align-symbol . Clef_item)
        
        (InstrumentName . (
                (breakable . #t)
-               (Y-offset-callbacks . (,Side_position::centered_on_parent))
+               (Y-offset-callbacks . (,Side_position::centered_on_parent
+                                      ,Side_position::aligned_on_self))
+               (self-alignment-Y . 0)
                (molecule-callback . ,Text_item::brew_molecule)         
                (break-align-symbol . Instrument_name)
                (visibility-lambda . ,begin-of-line-visible)
        
        (LineOfScore . (
                (axes . (0 1))
-               (meta . ,(element-description "LineOfScore"  axis-group-interface))
+               (meta . ,(element-description "LineOfScore"  line-of-score-interface axis-group-interface))
        ))
        
        (LyricExtender . (
                (arch-height . 1.5)
                (arch-angle . 50.0)
                (arch-thick . 0.25)
+               (glyph . bar-line)
                (arch-width . 1.5)
                (bracket-thick . 0.25)
                (bracket-width . 2.0)
+               (Y-extent-callback . #f)
                (meta . ,(element-description "SystemStartDelimiter" system-start-delimiter ))
        ))
 
        (Tie . (
                (molecule-callback . ,Tie::brew_molecule)
                (spacing-procedure . ,Tie::set_spacing_rods)
-               (staffline-clearance . 0.24)
+               (staffline-clearance . 0.35)
                (details . ((ratio . 0.333) (height-limit . 1.0)))
                (thickness . 1.2)
                (x-gap . 0.2)
index 64d3d5c67a2b4dadcee380eb49402a79514fa999..2f9a88fb45349cb1f79f036410f84fbb44bba002 100644 (file)
@@ -29,8 +29,6 @@
     (("medium upright music feta 20" . 0) . "feta20")
     (("medium upright music feta 16" . -1) . "feta16")
     (("medium upright music feta 13" . -2) . "feta13")
-    (("medium upright music feta 13" . -3) . "feta11")
-    (("medium upright music feta 13" . -4) . "feta11")
     (("medium upright music feta 23" . 1) . "feta23")
     (("medium upright music feta 26" . 2) . "feta26")
     (("medium upright braces feta-braces 20" . 0) . "feta-braces20")
@@ -98,9 +96,6 @@
                   (if entry (cdr entry) "[^ ]+"))
                 " "))
              '(font-series font-shape font-family font-name font-point font-size)))))
-    ;;(display "font-regexp: `")
-    ;;(display font-regexp)
-    ;;(display "'\n")
     (font-regexp-to-font-name paper font-regexp)))
 
 (define markup-abbrev-to-properties-alist
        style-to-font-alist)))
   
 (define (markup-to-properties markup)
-  ;;(display "markup: `")
+  ;;  (display "markup: `")
   ;;(display markup)
   ;;(display "'\n")
   (if (pair? markup)
index 9f33bdf1e7f2432d5f569578861de0e802d85062..4868dfa3a026e213663c085012ce751607d7a0d8 100644 (file)
   )
   
 (define (self-evaluating? x)
-  (or (number? x) (string? x) (procedure? x))
+  (or (number? x) (string? x) (procedure? x) (boolean? x))
   )
 
-(define (type-name  predicate)
-  (cond
-   ((eq? predicate dir?) "direction")
-   ((eq? predicate ly-element?) "graphic element")
-   ((eq? predicate pair?) "pair")
-   ((eq? predicate integer?) "integer")
-   ((eq? predicate list?) "list")
-   ((eq? predicate symbol?) "symbol")
-   ((eq? predicate string?) "string")
-   ((eq? predicate boolean?) "string")
-   ((eq? predicate number?) "number")
-   ((eq? predicate char?) "char")
-   ((eq? predicate input-port?) "input port")
-   ((eq? predicate output-port?) "output port")   
-   ((eq? predicate vector?) "vector")
-   ((eq? predicate procedure?) "procedure") 
-   (else "(unknown)")
-  ))
 
 (define (htmlfy x)
   (let*
         (name (cdr (assoc 'name meta)))
         (ifaces (cdr (assoc 'interface-descriptions meta)))
         (ifacedoc (map (lambda (x) (document-interface x description))
-                               ifaces))
+                               (reverse ifaces)))
         (outname  (string-append name ".html"))
         (out (open-output-file outname))
         )
index fa95a240680ae83dda2350550a726e09072b406d..e8d62d020b1be88da84e01dbeca157fab15d2186 100644 (file)
   )))
 
 
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-;;;;;;;;;;;;;;;;
-;;;;;;;;;;;;;;;;;
-
 (define general-element-interface
   (lily-interface
    'general-element-interface
    "All elements support this"
-   (list (property-description 'X-offset-callbacks list? "")
-    (property-description 'Y-offset-callbacks list? "")
-    (property-description 'X-extent-callback procedure? "")
-    (property-description 'Y-extent-callback procedure? "")
+   (list
+    (property-description 'X-offset-callbacks list? "list of functions, each taking an element and axis argument. The function determine the position relative to this element's parent. The last one in the list is called first")
+    (property-description 'Y-offset-callbacks list? "see <code> X-offset-callbacks</code>")
+    (property-description 'X-extent-callback procedure? "procedure taking an element and axis argument, returning a number-pair. The return value is the extent of the element.")
+    (property-description 'Y-extent-callback procedure? "see <code> X-extent-callback </code>")
     (property-description 'font-size integer? "")
+    (property-description 'extra-offset number-pair? "pair of reals (a cons) forcing an extra offset   before outputting")
+    (property-description 'interfaces  list? "list of symbols indicating the interfaces supported by this object. Is initialized from the <code>meta</code> field.")
+    (property-description 'dependencies list? "list of score-element pointers that indicate who to compute first for certain global passes")
+    (property-description 'no-spacing-rods boolean? "read from elements: boolean that makes Separation_item ignore this item (MOVE ME TO ITEM)")
+    (property-description 'extra-extent-X number-pair? "enlarge in X dimension by this much, measured in staff space")
+    (property-description 'extra-extent-Y number-pair? "see <code>extra-extent-Y</code>")
+    (property-description 'minimum-extent-X number-pair? "minimum size in X dimension, measured in staff space")
+    (property-description 'minimum-extent-Y number-pair? "see <code>minimum-extent-Y</code>")
+    (property-description 'origin ly-input-location? "location in input file of the definition")
+    (property-description 'transparent boolean? "This is almost the
+same as setting molecule-callback to #f, but this retains the
+dimensions of this element, which means that you can erase elements
+individually. ")
+    (property-description 'molecule-callback procedure? "Function taking graphical element as argument, returning a Scheme encoded Molecule") 
     ))
-)
+  )
 
 (define beam-interface
   (lily-interface
@@ -114,7 +125,7 @@ more than this (in staffspace)")
    (list
     (property-description 'horizontal-shift integer? "integer that identifies ranking of note-column for horizontal shifting.")
     (property-description 'force-hshift number? "amount of collision_note_width that overides automatic collision settings.")
-    (property-description 'merge-differently-dotted boolean? "merge black noteheads with differing dot count.")
+    (property-description 'merge-differently-dotted boolean? "merge black noteheads with differing dot count in collisions.")
     ))
   )
 
@@ -123,17 +134,25 @@ more than this (in staffspace)")
    'stem-interface
    "A stem"
    (list
-    (property-description 'thickness number? "")
-    (property-description 'beamed-lengths list? "")
-    (property-description 'beamed-minimum-lengths list? "")
-    (property-description 'lengths list? "")
-    (property-description 'stem-shorten list? "")
-    (property-description 'default-neutral-direction dir? "")
-    (property-description 'direction dir? "")
-    (property-description 'stem-length number? "")
+    (property-description 'thickness number? "thickness, measured in stafflinethickness")
+    (property-description 'beamed-lengths list? "list of stem lengths given beam multiplicity ")
+    (property-description 'beamed-minimum-lengths list? "list of minimum stem lengths given beam multiplicity")
+    (property-description 'stem-centered boolean? "Center stems on note heads. Useful for mensural notation")
+    (property-description 'lengths list? "Stem length given multiplicity of flag")
+    (property-description 'beam ly-element? "pointer to the beam, if applicable")
+    (property-description 'stem-shorten list? "shorten stems in forced directions given flag multiplicity")
+    (property-description 'duration-log integer? "log of the duration, ie. 0=whole note, 1 = half note, etc.")
+    (property-description 'beaming number-pair? "number of beams extending to left and right")
+    (property-description 'default-neutral-direction dir? "Where to go if we're in the middle of the staff")
+    (property-description 'stem-end-position number? "Where does the stem end (the end is opposite to the support-head")
+    (property-description 'support-head ly-element? "the note head at
+one end of the stem")
+    (property-description 'heads list? "list of note heads")
+    (property-description 'direction dir? "up or down")
+    (property-description 'stem-length number? "length of stem")
     (property-description 'style string? "") ; symbol!?
     (property-description 'flag-style string? "") ; symbol!?
-    (property-description 'X-offset-callbacks list? "")
+    (property-description 'dir-forced boolean? "set if direction has been forced; read by Beam.")
     )))
 
 
@@ -145,15 +164,16 @@ more than this (in staffspace)")
     (property-description 'de-uglify-parameters list? "list of 3 real constants. They define the valid areas for the middle control points. Used in de_uglyfy. They are a bit empirical.")
     (property-description 'details list? "alist containing contaning a few magic constants.")
     (property-description 'attachment pair? "cons of symbols, '(LEFT-TYPE . RIGHT-TYPE), where both types may be alongside-stem, stem, head or loose-end")
-    (property-description 'attachment-offset pair? "cons of offsets, '(LEFT-offset . RIGHT-offset).  This offset is added to the attachments to prevent ugly slurs.")
     (property-description 'direction dir? "up or down?")
-    (property-description 'beautiful number? "number that dictates when a slur should be de-uglyfied.  It correlates with the enclosed area between noteheads and slurs.  A value of 0.1 yields only undisturbed slurs, a value of 5 will tolerate quite high blown slurs.")
-    (property-description 'y-free number? "minimal vertical gap between slur and noteheads or stems")
-    (property-description 'control-points list? "[internal] control points of bezier curve")
-    (property-description 'extremity-rules  list? "an alist (procedure slur dir) -> attachment to determine the attachment (see above).  If procedure returns #t, attachment is used.  Otherwise, the next procedure is tried.")
-    (property-description 'extremity-offset-alist list? "an alist (attachment stem-dir*dir slur-dir*dir) -> offset.  The offset adds to the centre of the notehead, or stem.")
-    (property-description 'thickness list? "The thickness[stafflinethickness] of slur in the centre.")
-    (property-description 'dashed number? "[FIXME: use dash-period/dash length; see text-spanner] number representing the length of the dashes.")
+   (property-description 'attachment-offset pair? "cons of offsets, '(LEFT-offset . RIGHT-offset).  This offset is added to the attachments to prevent ugly slurs.")
+     (property-description 'beautiful number? "number that dictates when a slur should be de-uglyfied.  It correlates with the enclosed area between noteheads and slurs.  A value of 0.1 yields only undisturbed slurs, a value of 5 will tolerate quite high blown slurs.")
+     (property-description 'y-free number? "minimal vertical gap between slur and noteheads or stems")
+     (property-description 'control-points list? "[internal] control points of bezier curve")
+     (property-description 'extremity-rules  list? "an alist (procedure slur dir) -> attachment to determine the attachment (see above).  If procedure returns #t, attachment is used.  Otherwise, the next procedure is tried.")
+     (property-description 'extremity-offset-alist list? "an alist (attachment stem-dir*dir slur-dir*dir) -> offset.  The offset adds to the centre of the notehead, or stem.")
+     (property-description 'thickness list? "The thickness[stafflinethickness] of slur in the centre.")
+     (property-description 'dashed number? "[FIXME: use dash-period/dash length; see text-spanner] number representing the length of the dashes.")
+
     )
    )
   )
@@ -161,8 +181,10 @@ more than this (in staffspace)")
 (define side-position-interface
   (lily-interface
    'side-position-interface
-   "put an element next to another one."
+   "Position a victim object (this one) next to other objects (the support)."
    (list
+   (property-description 'side-support list? "the support, a list of score elements")
+   (property-description 'direction-source ly-element? "in case side-relative-direction is set, which element  to get the direction from ")
     (property-description 'direction dir? "where to put the victim object (left or right?)")
     (property-description 'side-relative-direction dir? "if set: get the direction from a different object, and multiply by this.")
     (property-description 'minimum-space number? "minimum distance that the victim should move (after padding)")
@@ -183,6 +205,31 @@ more than this (in staffspace)")
     )
    ))
 
+(define line-of-score-interface
+  (lily-interface
+   'line-of-score-interface
+   "Super element, parent of all:
+<p>
+   The columns of a score that form one line.  The toplevel element.
+   Any element has a Line_of_score as both X and Y reference
+   point. The Paper_score contains one element of this type. Control
+   enters the Score_element dependency calculation from this single
+   Line_of_score object."
+   (list
+    (property-description 'between-system-string string? "string
+ to dump between two systems. Useful for forcing pagebreaks")
+    (property-description 'spacing-procedure procedure? "procedure taking
+graphical element as argument. This is called after before-line-breaking-callback, but before the actual line breaking itself.  Return value is ignored")
+    (property-description 'before-line-breaking-callback procedure?
+                         "Procedure taking graphical element as argument.
+This procedure is called (using dependency resolution) before line breaking, but after generating discretionary items. Return value is ignored")
+    (property-description 'after-line-breaking-callback procedure?
+                         "Procedure taking graphical element as argument.
+This procedure is called (using dependency resolution) after line breaking. Return value is ignored")
+    (property-description 'all-elements list? "list of all score elements in this line. Needed for protecting elements from GC.")
+    (property-description 'columns list? "list of all paper columns")
+    )))
+
 (define note-head-interface
   (lily-interface
    'note-head-interface
@@ -195,7 +242,7 @@ more than this (in staffspace)")
 (define note-name-interface
   (lily-interface
    'note-name-interface
-   "Note naem"
+   "Note name"
    (list
     (property-description 'style symbol? "symbol that sets note name style")
     )
@@ -222,13 +269,13 @@ more than this (in staffspace)")
 (define tuplet-bracket-interface
   (lily-interface
    'tuplet-bracket-interface
-   "A bracket with a number in the middle" 
+   "A bracket with a number in the middle, used for tuplets.
    (list
     (property-description 'beams list? "list of beam ptrs.")
     (property-description 'columns list? " list of note-columns.")
     (property-description 'number-gap number? "")
-    (property-description 'delta-y number? "")
-    (property-description 'thick number? "")
+    (property-description 'delta-y number? "amount of ascension")
+    (property-description 'thick number? "thickness, in stafflinethickness")
     )
 ))
 
@@ -240,7 +287,7 @@ more than this (in staffspace)")
    (list
     (property-description 'stacking-dir  dir? "stack contents of elements in which direction ?")
     (property-description 'align-dir  dir? "Which side to align? -1: left side, 0: centered around center-element if not nil, or around center of width), 1: right side")
-    (property-description 'threshold  pair? "(cons MIN MAX), where MIN and MAX are dimensions in staffspace")
+    (property-description 'threshold  number-pair? "(cons MIN MAX), where MIN and MAX are dimensions in staffspace")
     (property-description 'alignment-done  boolean? "boolean to administrate whether we've done the alignment already (to ensure that the process is done only once)")
     (property-description 'center-element ly-element? "element which will be at the
 center of the group after aligning (when using
@@ -255,8 +302,8 @@ this object as a reference point.")
    'aligned-interface
    "read by align-interface"
    (list
-    (property-description 'minimum-space pair? "(cons LEFT RIGHT)")
-    (property-description 'extra-space pair? "(cons LEFT RIGHT)")
+    (property-description 'minimum-space number-pair? "(cons LEFT RIGHT)")
+    (property-description 'extra-space number-pair? "(cons LEFT RIGHT)")
     )))
 
 (define break-aligned-interface
@@ -265,22 +312,26 @@ this object as a reference point.")
    "Items that are aligned in prefatory matter"
    (list
     (property-description 'break-align-symbol symbol? "the index in the spacing table (symbol) of the to be aligned item.")
-    (property-description 'visibility-lambda procedure? "")
-    (property-description 'breakable boolean? "")
+    (property-description 'visibility-lambda procedure? "a function that takes the break direction and returns a  cons of booleans containing (TRANSPARENT . EMPTY)")
+    (property-description 'breakable boolean? "boolean indicating if this is a breakable item (clef, barline, key sig, etc.)")
     )))
 
 (define chord-name-interface
   (lily-interface
    'chord-name-interface
-   ""
+   "generate a chord name"
    (list
-    )))
+    (property-description 'pitches list? "list of musical-pitch")
+    (property-description 'inversion list? " musical-pitch, optional")
+    (property-description 'bass list? " musical-pitch, optional")
+   )))
+
 (define time-signature-interface
   (lily-interface
    'time-signature-interface
    "A time signature, in different styles"
    (list
-    (property-description 'fraction pair? "")
+    (property-description 'fraction number-pair? "")
     (property-description 'style string? "")
     )))
 
@@ -289,35 +340,35 @@ this object as a reference point.")
    'bar-line-interface
    "Bar line"
    (list
-    (property-description 'barsize-procedure procedure? "")
-    (property-description 'kern number? "")
-    (property-description 'thin-kern number? "")
-    (property-description 'hair-thickness number? "")
-    (property-description 'thick-thickness number? "")
-    (property-description 'glyph string? "")
+    (property-description 'barsize-procedure procedure? "how to compute the size of a bar line")
+    (property-description 'kern number? "space after a thick line")
+    (property-description 'thin-kern number? "space after a hair-line")
+    (property-description 'hair-thickness number? "thickness, measured in stafflinethickness")
+    (property-description 'thick-thickness number? "thickness, measured in stafflinethickness")
+    (property-description 'glyph string? "what kind barline? A concatenation of |, : and .")
     (property-description 'bar-size number? "")
-    (property-description 'break-glyph-function procedure? "")
+    (property-description 'break-glyph-function procedure? "function taking glyph and break-direction, returning the glyph at a line break")
    )))
 
 
 
+
 (define hairpin-interface
   (lily-interface
    'hairpin-interface
    "hairpin crescendo"
    (list
-    (property-description 'grow-direction dir? "")
-    (property-description 'thickness number? "")
-    (property-description 'height number? "")
+    (property-description 'grow-direction dir? "crescendo or decrescendo?")
+    (property-description 'thickness number? "thickness, measured in stafflinethickness")
+    (property-description 'height number? "height, measured in staffspace in ")
     )))
 
-
 (define arpeggio-interface
   (lily-interface
    'arpeggio-interface
-   "arpeggio "
+   "arpeggio"
    (list
-    (property-description 'stems list? "list of stem objects, corresponding to the notes that the  arp has to be before.")
+    (property-description 'stems list? "list of stem objects, corresponding to the notes that the arpeggio has to be before.")
     )
    )
   )
@@ -362,7 +413,7 @@ this object as a reference point.")
 (define dot-column-interface
   (lily-interface
    'dot-column-interface
-   ""
+   "Interface that groups dots so they form a column"
    (list
     )))
 
@@ -377,14 +428,14 @@ this object as a reference point.")
 (define finger-interface
   (lily-interface
    'finger-interface
-   "Any kind of loudness sign"
+   "A fingering instruction"
    '()
     ))
 
 (define separation-spanner-interface
   (lily-interface
    'separation-spanner-interface
-   ""
+   "Spanner that containing <code>separation-item-interface</code> elements to calculate rods"
    '()
   ))
 (define text-script-interface
@@ -406,8 +457,15 @@ this object as a reference point.")
 (define hara-kiri-group-interface
   (lily-interface
    'hara-kiri-group-interface
-   "seppuku"
-   '()))
+   "  As Vertical_group_spanner, but keep track of interesting items.  If
+  we don't contain any interesting items after linebreaking, then
+  gracefully commit suicide.  Objective: don't disgrace Lily by
+  typesetting empty lines in orchestral scores."
+   (list
+    (property-description 'items-worth-living list? "list of interesting items. If empty in a particular system, clear that system.")
+
+
+    )))
 
 (define lyric-hyphen-interface
   (lily-interface
@@ -429,7 +487,7 @@ syllables.   The length of the hyphen line should stretch based on the
    'key-signature-interface
    "A group of  accidentals."
    (list
-    (property-description 'c0-position  integer? "integer indicating the position of central C?")
+    (property-description 'c0-position  integer? "integer indicating the position of central C")
     (property-description 'old-accidentals  list? "list of (pitch, accidental) pairs")
     (property-description 'new-accidentals  list? "list of (pitch, accidental) pairs")
     )))
@@ -449,7 +507,7 @@ syllables.   The length of the hyphen line should stretch based on the
 (define lyric-syllable-interface
   (lily-interface
    'lyric-syllable-interface
-   ""
+   "a single piece of lyrics"
    (list
     (property-description 'word-space  number? "")
     )))
@@ -458,20 +516,20 @@ syllables.   The length of the hyphen line should stretch based on the
 (define mark-interface
   (lily-interface
    'mark-interface
-   ""
+   "a rehearsal mark"
    (list
     )))
 
 (define multi-measure-rest-interface
   (lily-interface
    'multi-measure-rest-interface
-   ""
+   "A rest that spans a whole number of measures."
    (list
     
     (property-description 'columns  list? "list of paper-columns")
-    (property-description 'expand-limit  integer? "int : max number of measures expanded in church rests")
-    (property-description 'minimum-width number? "Real in staffspace")
-    (property-description 'padding  number? "staffspace")
+    (property-description 'expand-limit  integer? "maximum number of measures expanded in church rests")
+    (property-description 'minimum-width number? "minimum-width of rest symbol, in staffspace")
+    (property-description 'padding  number? "padding between number and rest. Measured in staffspace.")
     )))
 
 (define paper-column-interface
@@ -479,31 +537,40 @@ syllables.   The length of the hyphen line should stretch based on the
    'paper-column-interface
    ""
    (list
+    (property-description 'when moment? "when does this column happen?")
+    (property-description 'bounded-by-me list? "list of spanners that have this
+column as start/begin point. Only columns that have elements or act as bounds are spaced.")
     (property-description 'dir-list  list? "list of stem directions")
     (property-description 'shortest-playing-duration  moment? "duration of the shortest playing in that column.")
     (property-description 'shortest-starter-duration  moment? "duration of the shortest notes that starts exactly in this column.")
     (property-description 'contains-grace  boolean? "Used to widen entries for grace notes.")
-    (property-description 'extra-space  pair? "pair of distances")
-    (property-description 'stretch-distance pair? "pair of distances")
+    (property-description 'extra-space  number-pair? "pair of distances")
+    (property-description 'stretch-distance number-pair? "pair of distances")
     )))
 
 (define spaceable-element-interface
   (lily-interface
    'spaceable-element-interface
-   ""
+   "An element (generally a Paper_column) that takes part in the
+spacing problem. "
    (list
      (property-description 'minimum-distances list? "list of rods (ie. (OBJ . DIST) pairs)")
      (property-description 'ideal-distances  list? "(OBJ . (DIST . STRENGTH)) pairs")
-     (property-description 'dir-list list? "list of stem directions.")
+     (property-description 'dir-list list? "list of stem directions, needed for optical spacing correction.")
      )))
 
 (define rest-collision-interface
   (lily-interface
    'rest-collision-interface
-   ""
-   (list
-    (property-description 'maximum-rest-count integer? "")
-    (property-description 'minimum-distance number? "")    
+   "Move around ordinary rests (not multi-measure-rests) to avoid
+conflicts."
+   (list
+    (property-description 'maximum-rest-count integer? "kill off rests so we don't more than this number left.")
+    (property-description 'minimum-distance number? "minimum distance between notes and rests.")
+    (property-description 'elements list? "list of elements (NoteColumn,
+generally) participating in the collision. The
+<code>rest-collision</code> property in <code>elements</code> is set
+to a pointer to the collision")
     )))
 
 (define script-interface
@@ -511,13 +578,13 @@ syllables.   The length of the hyphen line should stretch based on the
    'script-interface
    ""
    (list
-    (property-description 'script-priority number? "")
+    (property-description 'script-priority number? "A sorting key that determines in what order a script is within a stack of scripts")
     )))
 
 (define script-column-interface
   (lily-interface
    'script-column-interface
-   ""
+   "An interface that sorts scripts according to their <code>script-priority</code>"
    (list )))
 
 
@@ -535,8 +602,8 @@ syllables.   The length of the hyphen line should stretch based on the
    "This spanner draws the lines of a staff.  The middle line is
 position 0."
    (list
-    (property-description 'staff-space number? "")
-    (property-description 'line-count integer? "")
+    (property-description 'staff-space number? "Amount of line leading relative to global staffspace")
+    (property-description 'line-count integer? "Number of staff lines")
     )))
 
 (define stem-tremolo-interface
@@ -545,17 +612,23 @@ position 0."
    ""
    (list
     (property-description 'stem ly-element? "pointer to the stem object.")
-    (property-description 'beam-width number? "")
-    (property-description 'beam-thickness number? "")
-    (property-description 'beam-space-function procedure? "")
+    (property-description 'beam-width number? "width of the tremolo sign")
+    (property-description 'beam-thickness number? "thickness, measured in staffspace")
+    (property-description 'beam-space-function procedure? "function returning space given multiplicity")
     )))
 
 (define separation-item-interface
   (lily-interface
    'separation-item-interface
-   ""
-   (list
-    )))
+   "Item that computes widths to generate spacing rods.
+<p>
+Calc dimensions for the Separating_group_spanner; this has to be
+   an item to get dependencies correct.  It can't be an element_group
+   since these usually are in a different X_group
+"
+   (list
+    (property-description 'elements list? " -- list of items.")
+     )))
 
 (define sustain-pedal-interface
   (lily-interface
@@ -569,21 +642,17 @@ position 0."
    ""
    (list
     (property-description 'collapse-height number? "")
-    (property-description 'thickness number? "")
+    (property-description 'thickness number? "thickness, measured in stafflinethickness")
+
+    ; Should collapse into (bracket . ((height . ) ... ))
+    ;
     (property-description 'arch-height number? "")
     (property-description 'arch-angle number? "")
     (property-description 'arch-thick number? "")
     (property-description 'arch-width number? "")
     (property-description 'bracket-thick number? "")
     (property-description 'bracket-width number? "")
-    )))
-
-(define text-script-interface
-  (lily-interface
-   'text-script-interface
-   ""
-   (list
-    
+    (property-description 'glyph symbol? "bar-line, bracket or brace")
     )))
 
 (define text-spanner-interface
@@ -600,17 +669,28 @@ position 0."
     )
 ))
 
+(define text-script-interface
+  (lily-interface
+   'text-script-interface
+   ""
+   (list
+    
+    )))
+
+
 (define tie-interface
   (lily-interface
    'tie-interface
-   ""
+   "A tie connecting two noteheads."
    (list
-    (property-description 'staffline-clearance number? "")
+    (property-description 'staffline-clearance number? "don't get closer than this to stafflines.")
+    (property-description 'control-points list? "List of 4 offsets (number-pairs) controlling the tie shape")
     (property-description 'heads pair? "pair of element pointers, pointing to the two heads of the  tie. ")
-    (property-description 'details list? "")
-    (property-description 'thickness number? "")
-    (property-description 'x-gap number? "")
-    (property-description 'minimum-length number? "")
+    (property-description 'details list? "alist of parameters for the curve shape")
+    (property-description 'thickness number? "thickness, measured in stafflinethickness")
+    (property-description 'x-gap number? "horizontal gap between notehead and tie")
+    (property-description 'direction dir? "up or down?")    
+    (property-description 'minimum-length number? "minimum length in staffspace")
     )))
 
 
@@ -618,7 +698,7 @@ position 0."
 (define tie-column-interface
   (lily-interface
    'tie-column-interface
-   ""
+   "that sets tie directions in a tied chord"
    (list
     )))
 
@@ -628,7 +708,7 @@ position 0."
    "Volta bracket with number"
    (list
     (property-description 'bars  list? "list of barline ptrs.")
-    (property-description 'thickness  number? "in stafflinethickness")
+    (property-description 'thickness  number? "thickness, measured in stafflinethickness")
     (property-description 'height  number? "in staffspace ")
     )))
 
index d7f25a10af59bae2351803fb2ea5b38eb5e0c549..fd0b407b71cd34712840e9e6d71cd1071d2aedbb 100644 (file)
 
 (use-modules (ice-9 regex))
 
+(define (number-pair?  x)
+  (and (pair? x) (number? (car x)) (number? (cdr x))))
+
+(define (type-name  predicate)
+  (cond
+   ((eq? predicate dir?) "direction")
+   ((eq? predicate number-pair?) "pair of numbers")
+   ((eq? predicate ly-input-location?) "input location")   
+   ((eq? predicate ly-element?) "graphic element")
+   ((eq? predicate pair?) "pair")
+   ((eq? predicate integer?) "integer")
+   ((eq? predicate list?) "list")
+   ((eq? predicate symbol?) "symbol")
+   ((eq? predicate string?) "string")
+   ((eq? predicate boolean?) "boolean")
+   ((eq? predicate moment?) "moment")
+   ((eq? predicate number?) "number")
+   ((eq? predicate char?) "char")
+   ((eq? predicate input-port?) "input port")
+   ((eq? predicate output-port?) "output port")   
+   ((eq? predicate vector?) "vector")
+   ((eq? predicate procedure?) "procedure") 
+   (else "unknown type")
+  ))
+
+
 ;; The regex module may not be available, or may be broken.
 (define use-regex
   (let ((os (string-downcase (vector-ref (uname) 0))))
index 630dc82cc918621fa0b405502401155be166b2de..a17cf91fd029e8923a61ca704e19d4e3e532a445 100644 (file)
    (y-free . 0.75)
    (attachment-offset . ((0 . 0) . (0 . 0)))
    (slope-limit . 0.8)
-   (meta . ,(element-description "Slur" general-element-interface slur-interface))
+   (meta . ,(element-description "Slur" slur-interface))
    )
   )