From 9ad62f2b24bd6c7dc18ac8e8358b7635810cc96a Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 20:14:29 +0000 Subject: [PATCH] lilypond-1.0.12 --- lily/include/transposed-music.hh | 29 +++++++++++++++++++++++++++++ lily/music-wrapper.cc | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 lily/include/transposed-music.hh diff --git a/lily/include/transposed-music.hh b/lily/include/transposed-music.hh new file mode 100644 index 0000000000..fe8781c412 --- /dev/null +++ b/lily/include/transposed-music.hh @@ -0,0 +1,29 @@ +/* + transposed-music.hh -- declare + + source file of the GNU LilyPond music typesetter + + (c) 1998 Han-Wen Nienhuys + + */ + +#ifndef TRANSPOSED_MUSIC_HH +#define TRANSPOSED_MUSIC_HH + + +#include "music-wrapper.hh" + +class Transposed_music : public Music_wrapper +{ +public: + Musical_pitch transpose_to_pitch_; + + void do_print () const; + Transposed_music (Music*, Musical_pitch); + DECLARE_MY_RUNTIME_TYPEINFO; + VIRTUAL_COPY_CONS (Transposed_music, Music); + virtual Musical_pitch to_relative_octave (Musical_pitch); +}; + +#endif /* TRANSPOSED_MUSIC_HH */ + diff --git a/lily/music-wrapper.cc b/lily/music-wrapper.cc index 72971abf50..b6f6618e79 100644 --- a/lily/music-wrapper.cc +++ b/lily/music-wrapper.cc @@ -27,6 +27,8 @@ Music_wrapper::do_print () const { element_p_->print (); } + + void Music_wrapper::transpose (Musical_pitch p) { -- 2.39.5