]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/key.cc
patch::: 0.1.38: LilyPond Xmas (tar + patch)
[lilypond.git] / lily / key.cc
index 608df47e23a267da5602480d904ed93dd714c51e..1a7892d4b13a67c2388c7ce415f860c5eddb143e 100644 (file)
@@ -1,7 +1,7 @@
 /*
   key.cc -- implement Key, Octave_key
 
-  source file of the LilyPond music typesetter
+  source file of the GNU LilyPond music typesetter
 
   (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
 
@@ -16,40 +16,40 @@ const int ZEROOCTAVE=7;
 
 Octave_key::Octave_key()
 {
-    accidental_i_arr_.set_size(7);
-    for (int i= 0; i < 7 ; i++)
+  accidental_i_arr_.set_size (7);
+  for (int i= 0; i < 7 ; i++)
        accidental_i_arr_[i] = 0;
 }
 
 Key::Key()
 {
-    multi_octave_b_ = false;
-    octaves.set_size(OCTAVES);
+  multi_octave_b_ = false;
+  octaves.set_size (OCTAVES);
 }
 
 Octave_key&
-Key::oct(int i)
+Key::oct (int i)
 {
-    return octaves[i+ZEROOCTAVE];    
+  return octaves[i+ZEROOCTAVE];    
 }
 
 
 void
-Octave_key::set(int i, int a)
+Octave_key::set (int i, int a)
 {
-    assert(a > -3 && a < 3);
-    accidental_i_arr_[i]=a;
+  assert (a > -3 && a < 3);
+  accidental_i_arr_[i]=a;
 }
 
 void
-Key::set(int o, int n , int a)
+Key::set (int o, int n , int a)
 {
-    octaves[o + ZEROOCTAVE].set(n,a);
+  octaves[o + ZEROOCTAVE].set (n,a);
 }
 
 void
 Key::set (int n, int a)
 {
-    for (int i= 0; i < OCTAVES ; i++)
-       octaves[i].set(n,a);
+  for (int i= 0; i < OCTAVES ; i++)
+       octaves[i].set (n,a);
 }