(staff_eligible): new function.
[lilypond.git] / lily / relative-octave-music.cc
blob5eadf5d3f22a11ae77a37f5a157b3097f2e8bedf
1 /*
2 relative-music.cc -- implement Relative_octave_music
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
8 */
9 #include "relative-music.hh"
10 #include "warn.hh"
11 #include "scm-option.hh"
14 Pitch
15 Relative_octave_music::to_relative_octave (Pitch p)
17 if (lily_1_8_relative)
19 lily_1_8_compatibility_used = true;
21 ugh: last-pitch should be junked.
23 Change this for lilypond 2.0. When you do,
24 then B should start where A left off.
26 \relative { A \relative { ...} B }
29 return * unsmob_pitch (get_mus_property ("last-pitch"));
31 else
32 return p;
36 Relative_octave_music::Relative_octave_music ()
40 ADD_MUSIC (Relative_octave_music);