source file of the GNU LilyPond music typesetter
- (c) 1996--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 1996--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#include "event.hh"
{
Pitch new_pit = *old_pit;
new_pit = new_pit.to_relative_octave (last);
+
+ SCM check = get_mus_property ("absolute-octave");
+ if (gh_number_p (check) &&
+ new_pit.get_octave () != gh_scm2int (check))
+ {
+ String s =_("Failed octave check, got: ");
+ s += new_pit.to_string ();
+ new_pit = Pitch (gh_scm2int (check),
+ new_pit.get_notename (),
+ new_pit.get_alteration ());
+
+ s += " expected ";
+ s += new_pit.to_string ();
+ origin ()->warning (s);
+ }
+
set_mus_property ("pitch", new_pit.smobbed_copy ());
return new_pit;