]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/time-signature-performer.cc
* lily/stem.cc (print): only produce stemlets if there are no
[lilypond.git] / lily / time-signature-performer.cc
index 4cc3a96b9674fe6044d697238c22da7c2cac5a32..3b499d5ddd87c875b74bf6da684507ae7149a15c 100644 (file)
@@ -3,14 +3,12 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1997--2004 Jan Nieuwenhuizen <janneke@gnu.org>
+  (c) 1997--2005 Jan Nieuwenhuizen <janneke@gnu.org>
 */
 
 #include "audio-item.hh"
-#include "lily-proto.hh"
 #include "performer.hh"
 
-
 class Time_signature_performer : public Performer
 {
 public:
@@ -44,13 +42,13 @@ void
 Time_signature_performer::create_audio_elements ()
 {
   SCM fr = get_property ("timeSignatureFraction");
-  if (ly_pair_p (fr) && !ly_equal_p (fr, prev_fraction_))
+  if (scm_is_pair (fr) && !ly_c_equal_p (fr, prev_fraction_))
     {
       prev_fraction_ = fr;
-      int b = ly_scm2int (ly_car (fr));
-      int o = ly_scm2int (ly_cdr (fr));
+      int b = scm_to_int (scm_car (fr));
+      int o = scm_to_int (scm_cdr (fr));
       
-      audio_ = new Audio_time_signature (b,o);
+      audio_ = new Audio_time_signature (b, o);
       Audio_element_info info (audio_, 0);
       announce_element (info);
 
@@ -67,4 +65,4 @@ Time_signature_performer::stop_translation_timestep ()
     }
 }
 
-ENTER_DESCRIPTION (Time_signature_performer,"","","","","","");
+ADD_TRANSLATOR (Time_signature_performer, "", "", "", "", "", "");