lilypond-1.3.28
[lilypond.git] / lily / transposed-music.cc
blob2547fac08bf8dcfe2429dc0ba57ff084c5de9efe
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)
30 #if 0 // Mats?
31 warning (_ ("Will ignore \\relative for transposed music"));
32 #endif
33 return p;