2 relative-music.cc -- implement Relative_octave_music
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
9 #include "relative-music.hh"
11 #include "scm-option.hh"
15 Relative_octave_music::to_relative_octave (Pitch p)
17 if (lily_1_8_relative)
19 lily_1_8_compatibility_used = true;
20 /* ugh: last-pitch should be junked.
22 Change this for lilypond 2.0.
24 FIXME: change WHAT? We're at 2.3 already -- jcn
26 When you do, B should start where A left off.
28 \relative { A \relative { ...} B } */
29 return *unsmob_pitch (get_property ("last-pitch"));
36 Relative_octave_music::Relative_octave_music ()
40 ADD_MUSIC (Relative_octave_music);