2 key-def.hh -- declare Key_def
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2000 Jan Nieuwenhuizen <janneke@gnu.org>
14 #include "musical-pitch.hh"
17 Universal key definition (Should rename class Key to 'Accidentals'?)
19 FIXME: merge key.hh and key-def.hh classes.
26 Array<Musical_pitch> pitch_arr_;
30 /// squash the octaves to 1
31 void squash_octaves ();
33 /// return number accidentals in key; ordinary key only
34 int ordinary_accidentals_i () const;
36 /// return number of flats in key
39 /// return number of sharps in key
40 int sharps_i () const;
43 bool minor_b () const;
45 void transpose (Musical_pitch d);
48 #endif /* KEY_DEF_HH */