X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=lily%2Ftime-signature-engraver.cc;h=77fd444f129f399ab70f0277491f6811668341e8;hb=30a7c603fa9977c1a4a68868475d465e8f7132ca;hp=5ff450422fa35f1ad53e4b96c12845b94c697ce5;hpb=14d74ac262744d16fc753ee41042d32860d58633;p=lilypond.git diff --git a/lily/time-signature-engraver.cc b/lily/time-signature-engraver.cc index 5ff450422f..77fd444f12 100644 --- a/lily/time-signature-engraver.cc +++ b/lily/time-signature-engraver.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 1997--2004 Han-Wen Nienhuys + (c) 1997--2005 Han-Wen Nienhuys */ #include "time-signature.hh" @@ -12,8 +12,8 @@ #include "misc.hh" /** - generate time_signatures. - */ + generate time_signatures. +*/ class Time_signature_engraver : public Engraver { Item *time_signature_; @@ -26,9 +26,8 @@ public: TRANSLATOR_DECLARATIONS (Time_signature_engraver); }; - Time_signature_engraver::Time_signature_engraver () -{ +{ time_signature_ = 0; last_time_fraction_ = SCM_BOOL_F; } @@ -51,17 +50,15 @@ Time_signature_engraver::process_music () Todo: should make typecheck? OTOH, Tristan Keuris writes 8/20 in his Intermezzi. - */ - warning (_f ("Found strange time signature %d/%d.", - den, - scm_to_int (scm_car (fr)) - )); + */ + warning (_f ("strange time signature found: %d/%d", + den, + scm_to_int (scm_car (fr)))); } - - - last_time_fraction_ = fr; - time_signature_ = make_item ("TimeSignature",SCM_EOL); - time_signature_->set_property ("fraction",fr); + + last_time_fraction_ = fr; + time_signature_ = make_item ("TimeSignature", SCM_EOL); + time_signature_->set_property ("fraction", fr); } } @@ -70,12 +67,11 @@ Time_signature_engraver::stop_translation_timestep () { time_signature_ = 0; } - ADD_TRANSLATOR (Time_signature_engraver, -/* descr */ "Create a TimeSignature whenever @code{timeSignatureFraction} changes", -/* creats*/ "TimeSignature", -/* accepts */ "", -/* acks */ "", -/* reads */ "", -/* write */ ""); + /* descr */ "Create a TimeSignature whenever @code{timeSignatureFraction} changes", + /* creats*/ "TimeSignature", + /* accepts */ "", + /* acks */ "", + /* reads */ "", + /* write */ "");