lilypond-1.3.74
[lilypond.git] / lily / transposed-music.cc
blob2bcb37086552f5e4ef1f9216a30770f942b2fc83
1 /*
2 transposed-music.cc -- implement Transposed_music
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
8 */
10 #include "transposed-music.hh"
11 #include "debug.hh"
13 Transposed_music::Transposed_music (Music *p, Musical_pitch pit)
14 : Music_wrapper (p)
16 transpose_to_pitch_ = pit;
17 p->transpose (pit);
20 void
21 Transposed_music::do_print () const
23 Music_wrapper::do_print ();
24 DEBUG_OUT << "transposition pitch: " << transpose_to_pitch_.str ();
27 Musical_pitch
28 Transposed_music::to_relative_octave (Musical_pitch p)
31 return p;