lilypond-1.3.145
[lilypond.git] / hdr / key.hh
blob3d58629d5d49dd5b9c48e11ac4f16ea2530d3e2d
1 /*
2 key.hh -- declare Key
4 (c) 1996,97 Han-Wen Nienhuys
5 */
7 #ifndef KEY_HH
8 #define KEY_HH
10 #include "varray.hh"
11 #include "scalar.hh"
13 /// administration of current key
14 class Key {
15 Array<int> accidental_i_arr_;
17 /* *************** */
19 public:
21 Key();
22 void set(int i, int acc);
23 int acc(int i)const { return accidental_i_arr_[i]; }
26 /// administration of accidentals
27 struct Local_key
29 void reset(Key);
30 Key& oct(int);
31 Local_key();
33 private:
34 Array<Key> octaves;
37 #endif // KEY_HH