]> git.donarmstrong.com Git - lilypond.git/blob - lily/relative-octave-music.cc
ABC beams preserve support (courtesy Guy
[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       /* ugh: last-pitch should  be junked.
21
22          Change this for lilypond 2.0.
23
24          FIXME: change WHAT?  We're at 2.3 already -- jcn
25
26          When you do, B should start where A left off.
27
28         \relative { A \relative { ...} B }  */
29       return *unsmob_pitch (get_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