From: Carl Sorensen Date: Tue, 5 Jul 2011 00:37:52 +0000 (-0600) Subject: pitch.cc: Add default value for alteration X-Git-Tag: release/2.15.5-1~21^2~2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1902777b91aad5dccd1311bf509a07e797ecb196;p=lilypond.git pitch.cc: Add default value for alteration --- diff --git a/lily/pitch.cc b/lily/pitch.cc index c87f6f7610..fbd785f9cd 100644 --- a/lily/pitch.cc +++ b/lily/pitch.cc @@ -32,7 +32,7 @@ Pitch::Pitch (int o, int n, Rational a) notename_ = n; alteration_ = a; octave_ = o; - scale_ = default_global_scale; + scale_ = default_global_scale; normalize_octave (); } @@ -40,8 +40,9 @@ Pitch::Pitch (int o, int n, Rational a) Pitch::Pitch () { notename_ = 0; - scale_ = default_global_scale; + scale_ = default_global_scale; octave_ = 0; + alteration_ = (Rational)0; } int @@ -57,7 +58,7 @@ Pitch::compare (Pitch const &m1, Pitch const &m2) return n; if (a) return a > (Rational)0; - + return 0; }