From 1902777b91aad5dccd1311bf509a07e797ecb196 Mon Sep 17 00:00:00 2001 From: Carl Sorensen Date: Mon, 4 Jul 2011 18:37:52 -0600 Subject: [PATCH] pitch.cc: Add default value for alteration --- lily/pitch.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; } -- 2.39.5