]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/music.cc
release: 1.0.15
[lilypond.git] / lily / music.cc
index 155c7e31ff50564498196e294a1238bd1705c62d..2127783d7bc1a26b0ea7f39eb77fc1d38a06502e 100644 (file)
@@ -3,45 +3,63 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+  (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 
 #include "music.hh"
+#include "music-list.hh"
 #include "debug.hh"
+#include "musical-pitch.hh"
 
-MInterval
-Music::time_int() const
+Moment
+Music::duration () const
 {
-    return MInterval(0,0);
+  return 0;
 }
+
 void
-Music::print()const
+Music::print() const
 {
-    #ifndef NPRINT
-    mtor << name() << "{" ;
-    do_print();
-    mtor << "}\n";
-    #endif
+#ifndef NPRINT
+  if (! check_debug)
+    return ;
+  DOUT << name() << "{";
+  if  (translator_type_str_.length_i ())
+    DOUT << translator_type_str_ << " = " << translator_id_str_;
+  do_print();
+  DOUT << "}\n";
+#endif
 }
+
 void
-Music::transpose(Melodic_req const*)
+Music::transpose (Musical_pitch )
 {
-    
+  
 }
 
 void
-Music::translate(Moment )
+Music::do_print() const
 {
 }
 
-void
-Music::do_print()const
+
+IMPLEMENT_IS_TYPE_B(Music);
+
+
+
+  
+Music::Music()
 {
 }
 
-IMPLEMENT_STATIC_NAME(Music);
-
+Musical_pitch
+Music::to_relative_octave (Musical_pitch m)
+{
+  return m;
+}
 
-    
-Music::Music(){}
+void    
+Music::compress (Moment)
+{
+}