lilypond-1.5.10
[lilypond.git] / lily / relative-octave-music.cc
blob3f69f920a081939d54bc63e6a2923c9aaf61440d
1 /*
2 relative-music.cc -- implement Relative_octave_music
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
8 */
10 #include "relative-music.hh"
11 #include "debug.hh"
13 Pitch
14 Relative_octave_music::to_relative_octave (Pitch)
16 return * unsmob_pitch (get_mus_property ("last-pitch"));
20 Relative_octave_music::Relative_octave_music (SCM l)
21 : Music_wrapper (l)
23 set_mus_property ("type", ly_symbol2scm ("relative-octave-music"));
26 Relative_octave_music::Relative_octave_music ()
28 set_mus_property ("type", ly_symbol2scm ("relative-octave-music"));
31 ADD_MUSIC (Relative_octave_music);