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 /* last-pitch should be junked some time, when
21 we ditch 1.8 compat too.
23 When you do, B should start where A left off.
25 \relative { A \relative { ...} B } */
26 Pitch *ptr = unsmob_pitch (get_property ("last-pitch"));
27 return (ptr) ? *ptr : p;
34 Relative_octave_music::Relative_octave_music ()
38 ADD_MUSIC (Relative_octave_music);