2 key.hh -- declare Key, Octave_key
4 (c) 1996--1998 Han-Wen Nienhuys
12 #include "lily-proto.hh"
14 /// administration of current key in one octave.
18 Array<int> accidental_i_arr_;
21 void set (int i, int acc);
22 int acc (int i) const { return accidental_i_arr_[i]; }
26 /// administration of accidentals
29 /** for each octave a key. Has to be private since octave 0 isn't member 0.
31 Array<Octave_key> octaves_;
32 int octave_to_index (int) const;
37 Octave_key const& oct (int) const;
38 void set (int name, int acc);
39 void set (Musical_pitch);
41 bool different_acc (Musical_pitch) const;