]> git.donarmstrong.com Git - lilypond.git/commitdiff
(try_music): add moments for
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 25 May 2004 09:07:18 +0000 (09:07 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 25 May 2004 09:07:18 +0000 (09:07 +0000)
barlines too. Fixes: skipbars-percent-repeat.ly.

ChangeLog
lily/percent-repeat-engraver.cc

index c6881cb685fab5f30267e618fd98071dffafed8a..92127d076c196f4f7d3944482387266931859e80 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-05-25  Han-Wen Nienhuys   <hanwen@xs4all.nl>
+
+       * lily/percent-repeat-engraver.cc (try_music): add moments for
+       barlines too. Fixes: skipbars-percent-repeat.ly.
+
 2004-05-24  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
        * lily/context-def.cc (filter_performers): don't go to cdrloc if
index dff15eec7b6c24bd917001989db0ecacf6f1455f..16de3b513d7ff250a5d35cd7a591f3c5cca7d587 100644 (file)
@@ -116,7 +116,16 @@ Percent_repeat_engraver::try_music (Music * m)
       
       Global_context *global = get_global_context ();
       for (int i = 0; i < count; i++)  
-       global->add_moment_to_process (next_moment_ + Moment (i) * body_length_);
+       {
+         global->add_moment_to_process (next_moment_ + Moment (i) * body_length_);
+
+         /*
+           bars between % too.
+          */
+         if (repeat_sign_type_ == DOUBLE_MEASURE)
+           global->add_moment_to_process (next_moment_ + meas_len + Moment (i) * body_length_);
+         
+       }
   
       return true;
     }