lilypond-1.3.130
[lilypond.git] / lily / music-wrapper.cc
blobc6f7f50b9a0514a7eedbecdce969803ba5e375b1
1 /*
2 music-wrapper.cc -- implement Music_wrapper
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--2000 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(SCM l)
25 : Music (l)
29 Moment
30 Music_wrapper::length_mom () const
32 return element ()->length_mom ();
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);