]> git.donarmstrong.com Git - lilypond.git/commitdiff
* lily/slur-scoring.cc (enumerate_attachments): make stem_extent a
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 18 Sep 2004 11:11:58 +0000 (11:11 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 18 Sep 2004 11:11:58 +0000 (11:11 +0000)
little wider for attachment calculation. This prevents stem and
slur touching.

* lily/parser.yy (direction_less_char): soft code \< \> \! \( \) (
)

* lily/slur-scoring.cc (score_extra_encompass): check if extra
objects are on boundary column.

ChangeLog
Documentation/user/changing-defaults.itely
THANKS
lily/parser.yy
lily/slur-scoring.cc

index bac9ea8bc42c1ab01a952cd77b9d2c7d2c0385a5..e6f018609945debbdbe042ae6b5a9dcb8f3d983b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2004-09-18  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
+       * lily/slur-scoring.cc (enumerate_attachments): make stem_extent a
+       little wider for attachment calculation. This prevents stem and
+       slur touching.
+
        * lily/parser.yy (direction_less_char): soft code \< \> \! \( \) (
        ) 
 
index 0114cec0e5eed7d8c241e84c0f1374889dae4abc..8483eb1e594754cd076e7c6b983feeb56f7e455f 100644 (file)
@@ -2230,12 +2230,16 @@ The default layout responds to the following settings in the
 @item footsep
  Distance between bottom-most music system and the page footer
 @item raggedbottom
- If set to true, systems will not be spread across the page.  
+ If set to true, systems will not be spread across the page.
+
+ This should be set false for pieces that have only two or three
+systems per page, for example orchestral scores.
 @item raggedlastbottom
- If set to true, systems will not be spread to fill the last page.
+ If set to false, systems will be spread to fill the last page.
 
- This is the default. Only pieces that amply fill two pages or more
-should have this set to true.
+ Pieces that amply fill two pages or more should have this set to
+true.
 
 @item betweensystemspace
   This dimensions determines the distance between systems. It is the
diff --git a/THANKS b/THANKS
index 20be57364be63d5555f2216d702d966f05cdc445..fe0fabf2eda6f0a86558aedb78dde16f5c5227e5 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -26,6 +26,7 @@ BUG HUNTERS/SUGGESTIONS
 
 Antti Kaihola
 Bertalan Fodor
+Christophe Papazian
 Daniel Berjón Díez
 Dave Phillips
 David Bobroff
index 267ec9467d672e4e8ac52aa641e9eecf2ab9e5d9..f14af09fae5a592323e91e43f32d854554b6e993 100644 (file)
@@ -386,7 +386,6 @@ or
 %type <music>  gen_text_def direction_less_event direction_reqd_event
 %type <music>  music_property_def context_change
 %type <music>  note_chord_element chord_body chord_body_element
-%type <music>  open_event close_event
 %type <music>  post_event tagged_post_event
 %type <music>  relative_music re_rhythmed_music
 %type <music>  simple_element event_chord command_element
@@ -1208,16 +1207,12 @@ new_lyrics:
        /* Can also use Music at the expensive of two S/Rs similar to
            \repeat \alternative */
                THIS->lexer_->pop_state ();
-#if 0
-               Music *music = MY_MAKE_MUSIC ("SimultaneousMusic");
-               music->set_property ("elements", scm_list_1 ($3->self_scm ()));
-               $$ = music;
-#else
+
                $$ = scm_cons ($3->self_scm (), SCM_EOL);
-#endif
        }
-       | new_lyrics ADDLYRICS { THIS->lexer_->push_lyric_state (); }
-       Grouped_music_list {
+       | new_lyrics ADDLYRICS {
+               THIS->lexer_->push_lyric_state ();
+       } Grouped_music_list {
                THIS->lexer_->pop_state ();
                $$ = scm_cons ($4->self_scm (), $1);
        }
@@ -1226,7 +1221,6 @@ new_lyrics:
 re_rhythmed_music:
        Grouped_music_list new_lyrics {
 
-               /* FIXME: should find out uniqueXXX name from music */
                SCM name = $1->get_property ("context-id");
                //if (name == SCM_EOL)
                if (!scm_is_string (name))
@@ -1778,9 +1772,9 @@ direction_less_char:
        ;
 
 direction_less_event:
-       direction_less_char  {
+       direction_less_char {
                SCM predefd = THIS->lexer_->lookup_identifier_symbol ($1);
-               Music * m = 0:
+               Music * m = 0;
                if (unsmob_music (predefd))
                {
                        m = unsmob_music (predefd)->clone ();
@@ -2648,6 +2642,9 @@ context_spec_music (SCM type, SCM id, Music *m, SCM ops)
        return csm;
 }
 
+/*
+FIXME: this should be postponed until the music hits \Score
+*/
 SCM
 get_next_unique_context ()
 {
index 68e14007326560c594e3712634f8f2003a775fe7..1f904c18dea4b7b82d54959f4553c6a3ea1ca491 100644 (file)
@@ -789,8 +789,10 @@ enumerate_attachments (Grob *me, Grob *common[],
                  && !Stem::is_invisible (extremes[d].stem_)
                  && extremes[d].stem_dir_ == dir)
                {
+                 Interval stem_y = extremes[d].stem_extent_[Y_AXIS];
+                 stem_y.widen (0.25 * staff_space);
                  if (dir == -d
-                     && extremes[d].stem_extent_[Y_AXIS].contains (os[d][Y_AXIS]))
+                     && stem_y.contains (os[d][Y_AXIS]))
                    {
                      os[d][X_AXIS] =  extremes[d].slur_head_extent_[-d]
                        - d * 0.3;