]> git.donarmstrong.com Git - lilypond.git/commitdiff
tie accs
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 5 May 2002 19:38:05 +0000 (19:38 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 5 May 2002 19:38:05 +0000 (19:38 +0000)
ChangeLog
VERSION
lily/accidental-engraver.cc
lily/accidental.cc
lily/dynamic-engraver.cc
lily/local-key-item.cc
lily/new-accidental-engraver.cc
lily/text-engraver.cc
lilypond-font-lock.el
scm/grob-description.scm
scm/grob-property-description.scm

index 0190906c7f4810fcf2cc6735e5c401e42b74d40a..6d1121484f149c8854d4ff513133d96db74a70ba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2002-05-05  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
+
+       * lily/accidental.cc (after_line_breaking): add break tie
+       reminders.
+
+       * lily/text-engraver.cc (try_music): don't typeset fingerings
+
+2002-05-05  Heikki Junes <hjunes@cc.hut.fi>
+
+       * lilypond-font-lock.el: Handle \breve as a note (rest) duration.
+
 2002-05-04  Han-Wen  <hanwen@cs.uu.nl>
 
        * lily/*.cc: change gh_str02scm() to ly_str02scm().
 
 2002-03-12 Rune Zedeler <rune@zedeler.dk>
 
-       * lily/beam.cc lily/stem.cc lily/beam-engraver.cc allow for
+       * lily/beam.cc lily/stem.cc lily/beam-engraver.cc: allow for
        stemLeftBeamCount and stemRightBeamCount to equal 0.
        Fixes [c8 c4 c8]
       
diff --git a/VERSION b/VERSION
index 45393be4268dc45fe3d888723552ac43bbf9001b..6f9ba79be6fd24723ee92f9f00528f80e53717ca 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -2,7 +2,7 @@ PACKAGE_NAME=LilyPond
 MAJOR_VERSION=1
 MINOR_VERSION=5
 PATCH_LEVEL=55
-MY_PATCH_LEVEL=hwn1
+MY_PATCH_LEVEL=hjj1
 
 # use the above to send patches: MY_PATCH_LEVEL is always empty for a
 # released version.
index adb0d18d3447f7aebfd1d7ec1b26220f868b497c..2558c14f0e5d47ba450415a66b423626d78599fa 100644 (file)
@@ -266,7 +266,7 @@ Accidental_engraver::create_grobs ()
                  SCM c0 = get_property ("centralCPosition");
                  if (gh_number_p (c0))
                    Staff_symbol_referencer::set_position (key_item_p_, gh_scm2int (c0));
-                        
+
                  announce_grob (key_item_p_, SCM_EOL);
                }
 
@@ -344,8 +344,8 @@ Accidental_engraver::create_grobs ()
   if (key_item_p_)
     {
       /*
-       We add the accidentals to the support of the arpeggio, so it is put left of the
-       accidentals. 
+       We add the accidentals to the support of the arpeggio, so it
+       is put left of the accidentals.
        
       */
       for (int i = 0;  i < arpeggios_.size ();  i++)
index fbd1633ae794fdccc5dbefcb75cdd840729ec7ed..d020ca93490752e27d2ef698c40f03d54628c715 100644 (file)
@@ -14,6 +14,7 @@ class Accidental_interface
 {
 public:
   DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM));
+  DECLARE_SCHEME_CALLBACK (after_line_breaking, (SCM));  
   static bool has_interface (Grob*);
 };
 
@@ -28,6 +29,21 @@ parenthesize (Grob*me, Molecule m)
   return m;
 }
 
+
+MAKE_SCHEME_CALLBACK (Accidental_interface,after_line_breaking,1);
+SCM
+Accidental_interface::after_line_breaking (SCM smob)
+{
+  Grob *me  = unsmob_grob (smob);
+  Grob *tie = unsmob_grob (me->get_grob_property ("tie"));
+
+  if (tie && !tie->original_l_)
+    {
+      me->suicide ();
+    }
+  return SCM_UNSPECIFIED;
+}
+  
 MAKE_SCHEME_CALLBACK (Accidental_interface,brew_molecule,1);
 SCM
 Accidental_interface::brew_molecule (SCM smob)
@@ -77,4 +93,4 @@ Accidental_interface::brew_molecule (SCM smob)
 
 ADD_INTERFACE(Accidental_interface, "accidental-interface",
              "a single accidental",
-             "style accidentals");
+             "style tie accidentals");
index b72737f4c7994860c4ac13b8763f3715d3e0d0d7..8f4cffa99c99356ebc4561ab02b53f3614748296 100644 (file)
@@ -258,7 +258,7 @@ Dynamic_engraver::process_music ()
                  cresc_p_->set_grob_property ("edge-text",
                                               gh_cons (s, ly_str02scm ("")));
                  daddy_trans_l_->set_property ((start_type + "Text").ch_C(),
-                                               SCM_UNDEFINED);
+                                               SCM_EOL);
                }
            }
 
index 1014a232e7b4d6960b38c3ed8be2721109d7ea02..23fb506d8bce639a9b54d3aaaefedfd2e7607d84 100644 (file)
@@ -5,6 +5,7 @@
 
   (c)  1997--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
+
 #include "local-key-item.hh"
 #include "molecule.hh"
 #include "staff-symbol-referencer.hh"
@@ -92,8 +93,8 @@ Local_key_item::after_line_breaking (SCM smob)
            {
              /* there should be a better way to delete part of me */
              scm_set_car_x (s, scm_list_n (ly_caar (s),
-                                        ly_symbol2scm ("deleted"),
-                                        SCM_UNDEFINED));
+                                           ly_symbol2scm ("deleted"),
+                                           SCM_EOL));
              me->set_grob_property ("molecule", SCM_EOL);
            }
        }
index 8fe112107ef58f31e9604d5c10d9e81594ef4bf4..d192b230f9ee09bb47eaddff22c66cd14cee746d 100644 (file)
@@ -305,7 +305,11 @@ New_accidental_engraver::create_grobs ()
               */
              
              if (tie_break_reminder)
-               ;               // TODO.
+               {
+                 // TODO.
+                 a->set_grob_property ("tie", tie_break_reminder->self_scm());
+               }
+             
              
              support_l->set_grob_property ("accidental-grob", a->self_scm ());
 
index 38716da2af5d008b43a8145f37feccc89cc97cf1..f720ff15a7dfa165481c3fede5e10a60fd405e1f 100644 (file)
@@ -37,6 +37,7 @@ bool
 Text_engraver::try_music (Music *m)
 {
   if (dynamic_cast<Text_script_req*> (m)
+      && m->get_mus_property ("text-type") != ly_symbol2scm ("finger")
       && m->get_mus_property ("text-type") != ly_symbol2scm ("dynamic"))
     {
       reqs_.push (dynamic_cast<Text_script_req*> (m));
index fc66140a61f204fb3e83d54e99c8713a2098720e..308d3faaf98aaba3725064740e2d49904b722328 100644 (file)
@@ -33,7 +33,7 @@
 "accent" "accepts" "accompany" "\\(add\\)?lyrics" 
 "\\(aeol\\|dor\\|ion\\|locr\\|\\(mixo\\)?lyd\\|phryg\\)ian" 
 "alias" "\\(altern\\|rel\\)ative" "apply" "arpeggio" "autochange" "bar" "break"
-"breathe" "breve" "beamintervals" "broken" "blend" "\\(bc\\|end\\)incipit" 
+"breathe" "beamintervals" "broken" "blend" "\\(bc\\|end\\)incipit" 
 "ch\\(ar\\)?" "cg" "chord\\(s\\|stest\\|\\(chord\\)?modifiers\\)?"
 "clef[ \t]*\"?\\(F\\|G\\|alto\\|baritone\\|bass\\|\\(mezzo\\)?soprano\\|treble\\|violin\\|tenor\\)?\"?"
 "clipping" "[cm]m" "coda" "complex" 
 ;; ... keywords (defined above, see kwregex)
       (cons (concat "\\(\\([_^-]?\\(" kwregex "\\)\\)+\\)\\($\\|[] \t(~{}>\\\\_()^*-]\\)") '(1 font-lock-keyword-face))
 
-;; ... keyword-type constructs, e.g., ^\abracadabra
-      '("\\([_^-]?\\\\[a-zA-Z][a-zA-Z]*\\)" 1 font-lock-constant-face)
+;; ... keyword-type constructs, e.g., ^\abracadabra; not \breve (= a duration)
+      '("\\([_^-]?\\\\\\([^b]\\|b[^r]\\|br[^e]\\|bre[^v]\\|brev[^e]\\|breve[a-zA-Z]\\)[a-zA-Z]*\\)" 1 font-lock-constant-face)
 
-;; ... the left sid e of '=' -mark
+;; ... the left side of '=' -mark
       '("\\([_a-zA-Z.0-9-]+\\)[ \t]*=[ \t]*" 1 font-lock-variable-name-face)
 
 ;; ... the right side of '=' -mark
 ;; ... reserved words (defined above, see rwregex)
       (cons (concat "\\(" rwregex "\\)") 'font-lock-variable-name-face)
 
-;; ... multiplied rests, e.g., R1 *8
-      '("\\([sR]\\(128\\|6?4\\|3?2\\|16?\\|8\\)?[.]*[ \t]*[*][ \t]*[0-9]+\\)"1 font-lock-type-face)
-
-;; ... notes and rests, accidentals and duration, e.g., a,?16..
-      '("\\(^\\|[ <\{[~(!)\t\\\|]\\)\\(\\(\\(\\(\\(do\\|re\\|[ms]i\\|[fl]a\\|sol\\)\\(bb?\\|dd?\\|ss?\\)?\\)\\|\\([a-h]\\(flat\\(flat\\)?\\|sharp\\(sharp\\)?\\|ff?\\|ss?\\|is\\(siss\\|s\\|is\\)?\\|es\\(sess\\|s\\|es\\)?\\)?\\)\\|\\(as\\(as\\|es\\)?\\)\\|\\(es\\(es\\)?\\)\\|\\(bb\\)\\)[,']*[?!]?\\|[srR]\\)\\(128\\|6?4\\|3?2\\|16?\\|8\\)?[.]*\\)" 2 font-lock-type-face)
+;; ... notes and rests, accidentals and duration (multiplied), e.g., b,?16.*3/4
+      '("\\(^\\|[ <\{[~(!)\t\\\|]\\)\\(\\(\\(\\(\\(do\\|re\\|[ms]i\\|[fl]a\\|sol\\)\\(bb?\\|dd?\\|ss?\\)?\\)\\|\\([a-h]\\(flat\\(flat\\)?\\|sharp\\(sharp\\)?\\|ff?\\|ss?\\|is\\(siss\\|s\\|is\\)?\\|es\\(sess\\|s\\|es\\)?\\)?\\)\\|\\(as\\(as\\|es\\)?\\)\\|\\(es\\(es\\)?\\)\\|\\(bb\\)\\)[,']*[?!]?\\|[srR]\\)\\([ \t]*\\(128\\|6?4\\|3?2\\|16?\\|8\\|\\\\breve\\)[.]*\\([ \t]*[*][ \t]*[0-9]+\\(/[1-9]+\\)?\\)?\\)?\\)" 2 font-lock-type-face)
 
 ;; "on top", ... '{[]}'-brackets
       '("\\([][}{]\\)" 0 font-lock-warning-face t)
index bcaa149c15f708c8ffef1e177459ead099de865b..474db70d679afc710e14d858d647a6d1c5e42664 100644 (file)
@@ -30,7 +30,7 @@
      . (
        (molecule-callback . ,Accidental_interface::brew_molecule)
        (font-family . music)
-       (meta . ((interfaces . (accidental-interface font-interface))))
+       (after-line-breaking-callback . ,Accidental_interface::after_line_breaking)             (meta . ((interfaces . (accidental-interface font-interface))))
        ))
     (AccidentalPlacement
      . (
index b8955a9bfcee9d0f280445d51b31d047753339a7..f9031e12a767d98ba4ea59132321e1f8a628bd25 100644 (file)
@@ -397,6 +397,7 @@ bracket. Setting the property to #'if-no-beam will make it
 print only if there is no beam associated with this tuplet bracket.")
 (grob-property-description 'number-visibility boolean-or-symbol? "
 Like @code{bracket-visibility}, but for the number.")
+(grob-property-description 'tie ly-grob? "") 
 (grob-property-description 'type symbol? "one of: line, dashed-line or dotted-line.")
 (grob-property-description 'visibility-lambda procedure? "a function that takes the break direction and returns a  cons of booleans containing (TRANSPARENT . EMPTY).")
 (grob-property-description 'when moment? "when does this column happen?.")