2 local-key-item.hh -- part of GNU LilyPond
4 (c) 1996--2000 Han-Wen Nienhuys
7 #ifndef LOCALKEYITEM_HH
8 #define LOCALKEYITEM_HH
13 #include "musical-pitch.hh"
17 struct Local_key_cautionary_tuple
23 Local_key_cautionary_tuple ()
25 cautionary_b_ = false;
28 static int compare (Local_key_cautionary_tuple const&s1, Local_key_cautionary_tuple const&s2)
30 return Musical_pitch::compare (s1.pitch_, s2.pitch_);
35 Accidentals which can be different for each octave.
39 class Local_key_item : public Item
41 Array<Local_key_cautionary_tuple> accidental_arr_;
43 static Molecule accidental (Score_element*me, int,bool,bool) ;
45 Local_key_item (SCM );
46 static SCM brew_molecule (SCM);
48 void add_pitch (Musical_pitch, bool cautionary, bool natural);
50 static SCM before_line_breaking (SCM);
51 static bool has_interface (Score_element*);
55 #endif // LOCALKEYITEM_HH