]> git.donarmstrong.com Git - lilypond.git/commitdiff
*** empty log message ***
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 20 Oct 2006 18:06:59 +0000 (18:06 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 20 Oct 2006 18:06:59 +0000 (18:06 +0000)
ChangeLog
Documentation/user/page.itely
THANKS
lily/page-turn-engraver.cc

index f934b3bb42b06ac754530e4237e9ea44a4406cc1..e0ee0a34dc7e8ce1603f69fd37ff2254dc1e9ee8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 
 2006-10-20  Han-Wen Nienhuys  <hanwen@lilypond.org>
 
+       * lily/page-turn-engraver.cc (acknowledge_note_head): don't look
+       at typography, rather analyse stream event duration. 
+
+       * Documentation/user/page.itely (Page formatting): set a6 paper
+       for system separator example.
+       
        * lily/arpeggio.cc (Module): idem.
 
        * lily/accidental-placement.cc: add script-priority property.
index 5fe418b596bb8e9dc2df8df92015b185e0aba24d..c555384ef306532bfc309dd8e93093572722632f 100644 (file)
@@ -241,6 +241,7 @@ The markup command @code{\slashSeparator} is provided as a sensible
 default,  for example
 
 @lilypond[ragged-right]
+#(set-default-paper-size "a6" 'landscape)
 \book {
   \score {
     \relative { c1 \break c1 }
diff --git a/THANKS b/THANKS
index 971565329a804856a18a2100ced80416aefed066..d1a096a93e479d0a9a897bcae1c88f5206fe5dcf 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -73,6 +73,7 @@ Karl Hammar
 Keith Packard
 Kieren MacMillan
 Lee T. Wilkirson
+Lieke van der Meer
 Mark Dewey
 Marcus Macauley
 Markus Schneider
index c67d57a750195ea6e3889b070b8f2122fe8c0833..c2817479d3d9c586c6793cffdbb4364bb8ad079e 100644 (file)
@@ -134,12 +134,14 @@ Page_turn_engraver::penalty (Rational rest_len)
 void
 Page_turn_engraver::acknowledge_note_head (Grob_info gi)
 {
-  SCM dur_log_scm = gi.grob ()->get_property ("duration-log");
-  if (!scm_is_number (dur_log_scm))
-    return;
+  Stream_event *cause = gi.event_cause ();
 
-  int dur_log = scm_to_int (dur_log_scm);
-  int dot_count = robust_scm2int (gi.grob ()->get_property ("dot-count"), 0);
+  Duration *dur_ptr = cause
+    ? unsmob_duration (cause->get_property ("duration"))
+    : 0;
+  
+  if (!dur_ptr)
+    return;
 
   if (rest_begin_ < now_mom ())
     {
@@ -152,7 +154,7 @@ Page_turn_engraver::acknowledge_note_head (Grob_info gi)
 
   if (rest_begin_ <= repeat_begin_)
     repeat_begin_rest_length_ = (now_mom () - repeat_begin_).main_part_;
-  note_end_ = now_mom () + Moment (Duration (dur_log, dot_count).get_length ());
+  note_end_ = now_mom () + dur_ptr->get_length ();
 }
 
 IMPLEMENT_TRANSLATOR_LISTENER (Page_turn_engraver, break);