source file of the GNU LilyPond music typesetter
- (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+ (c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
+ #include <typeinfo>
#include "music.hh"
#include "music-list.hh"
#include "debug.hh"
+#include "musical-pitch.hh"
-MInterval
-Music::time_int() const
+Music::Music()
{
- return MInterval (0,0);
}
-void
-Music::print() const
+void
+Music::compress (Moment)
{
-#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::do_print() const
{
-
}
-void
-Music::translate (Moment)
+Moment
+Music::length_mom () const
{
+ return 0;
}
void
-Music::do_print() const
+Music::print() const
{
+#ifndef NPRINT
+ if (! flower_dstream)
+ return ;
+ DEBUG_OUT << classname(this) << "{";
+
+ do_print();
+ DEBUG_OUT << "}\n";
+#endif
}
-
-IMPLEMENT_IS_TYPE_B(Music);
-
+Musical_pitch
+Music::to_relative_octave (Musical_pitch m)
+{
+ return m;
+}
-
-Music::Music()
+void
+Music::transpose (Musical_pitch )
{
- parent_music_l_ =0;
}
-IMPLEMENT_IS_TYPE_B1(Change_reg,Music)
-
-