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];
28 return octaves[i+ZEROOCTAVE];
32 Octave_key::set(int i, int a)
34 assert(a > -3 && a < 3);
35 accidental_i_arr_[i]=a;
39 Key::set(int o, int n , int a)
41 octaves[o + ZEROOCTAVE].set(n,a);
45 Key::set (int n, int a)
47 for (int i= 0; i < OCTAVES ; i++)