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.
21 FIXME: use Scheme data structs for this.
28 Array<Musical_pitch> pitch_arr_;
32 /// squash the octaves to 1
33 void squash_octaves ();
35 /// return number accidentals in key; ordinary key only
36 int ordinary_accidentals_i () const;
38 /// return number of flats in key
41 /// return number of sharps in key
42 int sharps_i () const;
45 bool minor_b () const;
47 void transpose (Musical_pitch d);
50 #endif /* KEY_DEF_HH */