]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/time-signature-performer.cc
*** empty log message ***
[lilypond.git] / lily / time-signature-performer.cc
index 3d3e26d3273a93a44685fa820245295bf5a3a76e..396a49669ecaa7fc4f4ad1ffdd6cc40ad1dae20b 100644 (file)
@@ -7,10 +7,8 @@
 */
 
 #include "audio-item.hh"
-#include "lily-proto.hh"
 #include "performer.hh"
 
-
 class Time_signature_performer : public Performer
 {
 public:
@@ -44,11 +42,11 @@ void
 Time_signature_performer::create_audio_elements ()
 {
   SCM fr = get_property ("timeSignatureFraction");
-  if (ly_c_pair_p (fr) && !ly_c_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_element_info info (audio_, 0);
@@ -67,4 +65,4 @@ Time_signature_performer::stop_translation_timestep ()
     }
 }
 
-ENTER_DESCRIPTION (Time_signature_performer,"","","","","","");
+ADD_TRANSLATOR (Time_signature_performer,"","","","","","");