lilypond-1.3.74
[lilypond.git] / lily / relative-octave-music.cc
blobf786e7b0edcbd9e590c18a8d4fb00b2a5e4b9bec
1 /*
2 relative-music.cc -- implement Relative_octave_music
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
8 */
10 #include "relative-music.hh"
11 #include "debug.hh"
13 Musical_pitch
14 Relative_octave_music::to_relative_octave (Musical_pitch)
16 return last_pitch_;
20 Relative_octave_music::Relative_octave_music(Music*p,Musical_pitch def)
21 : Music_wrapper (p)
23 last_pitch_ = element ()->to_relative_octave (def);
26 void
27 Relative_octave_music::do_print () const
29 Music_wrapper::do_print ();
30 DEBUG_OUT << "default pitch: " << last_pitch_.str ();