/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 1998--2010 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ Copyright (C) 1998--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
LilyPond is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
notename_ = n;
alteration_ = a;
octave_ = o;
- scale_ = default_global_scale;
+ scale_ = default_global_scale;
normalize_octave ();
}
Pitch::Pitch ()
{
notename_ = 0;
- scale_ = default_global_scale;
+ scale_ = default_global_scale;
octave_ = 0;
+ alteration_ = (Rational)0;
}
int
if (n)
return n;
if (a)
- return a;
-
+ return a > (Rational)0;
+
return 0;
}