3 const int OCTAVES=14; // ugh..
4 const int ZEROOCTAVE=7;
6 Octave_key::Octave_key()
8 accidental_i_arr_.set_size(7);
9 for (int i= 0; i < 7 ; i++)
10 accidental_i_arr_[i] = 0;
15 multi_octave_b_ = false;
16 octaves.set_size(OCTAVES);
22 return octaves[i+ZEROOCTAVE];
27 Octave_key::set(int i, int a)
29 assert(a > -3 && a < 3);
30 accidental_i_arr_[i]=a;
34 Key::set(int o, int n , int a)
36 octaves[o + ZEROOCTAVE].set(n,a);
40 Key::set (int n, int a)
42 for (int i= 0; i < OCTAVES ; i++)