]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/key.hh
release: 0.1.54
[lilypond.git] / lily / include / key.hh
index 4a68fa8148733814511429fc0385986bc9ef2ca8..da0379919334f6e61da77075bceb71c53350ac7e 100644 (file)
 class Octave_key {
 
 public:
-    Array<int> accidental_i_arr_;
-    Octave_key();
-    void set (int i, int acc);
-    int acc (int i) const { return accidental_i_arr_[i]; }
+  Array<int> accidental_i_arr_;
+  void clear ();
+  Octave_key();
+  void set (int i, int acc);
+  int acc (int i) const { return accidental_i_arr_[i]; }
+  void print () const;
 };
 
 /// administration of accidentals
 class Key
 {
-    /** for each octave a key. Has to be private since octave 0 isn't member 0.
-     */
-    Array<Octave_key> octaves;
+  /** for each octave a key. Has to be private since octave 0 isn't member 0.
+   */
+  Array<Octave_key> octaves;
 public:
-    bool multi_octave_b_;
-    
-    Octave_key&oct (int);
-    void set (int name, int acc);
-    void set (int oct, int name, int acc);
-    Key();
+  bool multi_octave_b_;
+  
+  void clear ();
+  Octave_key&oct (int);
+  void set (int name, int acc);
+  void set (int oct, int name, int acc);
+  Key();
+  void print () const;  
 };
 
 #endif // KEY_HH