/*
key.hh -- declare Key, Octave_key
- (c) 1996,97 Han-Wen Nienhuys
+ (c) 1996--1999 Han-Wen Nienhuys
*/
#ifndef KEY_HH
#define KEY_HH
-#include "varray.hh"
+#include "array.hh"
#include "scalar.hh"
+#include "lily-proto.hh"
/// administration of current key in one octave.
class Octave_key {
bool multi_octave_b_;
void clear ();
- Octave_key&oct (int);
+ Octave_key const& oct (int) const;
void set (int name, int acc);
- void set (int oct, int name, int acc);
+ void set (Musical_pitch);
+
+ bool different_acc (Musical_pitch) const;
+
Key();
void print () const;
};