2 key.hh -- declare Key, Octave_key
4 (c) 1996--2000 Han-Wen Nienhuys
11 #include "lily-proto.hh"
13 /// administration of current key in one octave.
17 Array<int> accidental_i_arr_;
18 Array<bool> internal_forceacc_b_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);
40 void set_internal_forceacc (Musical_pitch);
41 void clear_internal_forceacc (Musical_pitch);
43 bool different_acc (Musical_pitch) const;
44 bool internal_forceacc (Musical_pitch) const;
45 bool double_to_single_acc (Musical_pitch) const;