release commit
[lilypond.git] / lily / music-wrapper.cc
blob6c5623767f34fe4f5eff221c03d4b86f8da1f261
1 /*
2 music-wrapper.cc -- implement Music_wrapper
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
8 */
11 #include "music-wrapper.hh"
16 void
17 Music_wrapper::transpose (Pitch p)
19 if (element ())
20 element ()-> transpose (p);
24 Music_wrapper::Music_wrapper ()
25 : Music ()
29 Moment
30 Music_wrapper::get_length () const
32 return element ()->get_length ();
35 Pitch
36 Music_wrapper::to_relative_octave (Pitch p)
38 return element ()->to_relative_octave (p);
42 Music*
43 Music_wrapper::element () const
45 return unsmob_music (get_mus_property ("element"));
48 void
49 Music_wrapper::compress (Moment m)
51 element ()->compress (m);
54 ADD_MUSIC (Music_wrapper);
57 Moment
58 Music_wrapper::start_mom () const
60 return element ()->start_mom ();