]> git.donarmstrong.com Git - lilypond.git/blob - lily/relative-octave-music.cc
2003 -> 2004
[lilypond.git] / lily / relative-octave-music.cc
1 /*   
2   relative-music.cc --  implement Relative_octave_music
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 1998--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9 #include "relative-music.hh"
10 #include "warn.hh"
11 #include "scm-option.hh"
12
13
14 Pitch
15 Relative_octave_music::to_relative_octave (Pitch p)
16 {
17   if (lily_1_8_relative)
18     {
19       lily_1_8_compatibility_used = true;
20       /*
21         ugh: last-pitch should  be junked.
22
23         Change this for lilypond 2.0. When you do,
24         then B should start where A left off.
25
26         \relative { A \relative { ...} B }
27
28       */
29       return * unsmob_pitch (get_mus_property ("last-pitch"));
30     }
31   else
32     return p;
33 }
34
35
36 Relative_octave_music::Relative_octave_music ()
37 {
38 }
39
40 ADD_MUSIC (Relative_octave_music);
41
42