* lily/music-iterator.cc (quit, do_quit): new function: break link
[lilypond.git] / lily / relative-octave-music.cc
blob14890694c3efad70de98e64c9038af43714ad49d
1 /*
2 relative-music.cc -- implement Relative_octave_music
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
8 */
10 #include "relative-music.hh"
11 #include "warn.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);