2 local-key-item.hh -- part of GNU LilyPond
4 (c) 1996--2000 Han-Wen Nienhuys
7 #ifndef LOCALKEYITEM_HH
8 #define LOCALKEYITEM_HH
11 #include "musical-pitch.hh"
15 struct Local_key_cautionary_tuple
21 Local_key_cautionary_tuple ()
23 cautionary_b_ = false;
26 static int compare (Local_key_cautionary_tuple const&s1, Local_key_cautionary_tuple const&s2)
28 return Musical_pitch::compare (s1.pitch_, s2.pitch_);
33 Accidentals which can be different for each octave.
37 class Local_key_item : public Item
39 Array<Local_key_cautionary_tuple> accidental_arr_;
41 Molecule accidental (int,bool,bool) const;
43 Local_key_item (SCM );
44 static SCM scheme_molecule (SCM);
46 void add_pitch (Musical_pitch, bool cautionary, bool natural);
48 virtual void before_line_breaking ();
49 Molecule do_brew_molecule() const;
52 #endif // LOCALKEYITEM_HH