2 key.hh -- declare Key, Octave_key
4 (c) 1996--2000 Han-Wen Nienhuys
11 #include "lily-proto.hh"
17 /// administration of current key in one octave.
21 Array<int> accidental_i_arr_;
22 Array<bool> internal_forceacc_b_arr_;
25 void set (int i, int acc);
26 int acc (int i) const { return accidental_i_arr_[i]; }
30 /// administration of accidentals
33 /** for each octave a key. Has to be private since octave 0 isn't member 0.
35 Array<Octave_key> octaves_;
36 int octave_to_index (int) const;
41 Octave_key const& oct (int) const;
42 void set (int name, int acc);
43 void set (Musical_pitch);
44 void set_internal_forceacc (Musical_pitch);
45 void clear_internal_forceacc (Musical_pitch);
47 bool different_acc (Musical_pitch) const;
48 bool internal_forceacc (Musical_pitch) const;
49 bool double_to_single_acc (Musical_pitch) const;