3 const int OCTAVES
=14; // ugh..
4 const int ZEROOCTAVE
=7;
8 accidental_i_arr_
.set_size(7);
9 for (int i
= 0; i
< 7 ; i
++)
10 accidental_i_arr_
[i
] = 0;
13 Local_key::Local_key()
15 octaves
.set_size(OCTAVES
);
21 return octaves
[i
+ZEROOCTAVE
];
25 Key::set(int i
, int a
)
27 assert(a
> -3 && a
< 3);
28 accidental_i_arr_
[i
]=a
;
33 Local_key::reset(Key k
)
35 for (int i
= 0; i
< OCTAVES
; i
++)