]> git.donarmstrong.com Git - lilypond.git/commitdiff
pitch.cc: Add default value for alteration
authorCarl Sorensen <c_sorensen@byu.edu>
Tue, 5 Jul 2011 00:37:52 +0000 (18:37 -0600)
committerCarl Sorensen <c_sorensen@byu.edu>
Tue, 5 Jul 2011 00:37:52 +0000 (18:37 -0600)
lily/pitch.cc

index c87f6f7610657a72e4ac81554015bba6be2b939a..fbd785f9cd05c31119755cf3d91eea29f35b904c 100644 (file)
@@ -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;
 }