2 local-key-item.hh -- part of GNU LilyPond
4 (c) 1996--1999 Han-Wen Nienhuys
7 #ifndef LOCALKEYITEM_HH
8 #define LOCALKEYITEM_HH
11 #include "musical-pitch.hh"
12 #include "staff-symbol-referencer.hh"
13 #include "note-head-side.hh"
15 struct Local_key_cautionary_tuple
20 Local_key_cautionary_tuple ()
22 cautionary_b_ = false;
24 static int compare (Local_key_cautionary_tuple const&s1, Local_key_cautionary_tuple const&s2)
26 return Musical_pitch::compare (s1.pitch_, s2.pitch_);
31 Accidentals which can be different for each octave.
36 Make an item for each accidental separately, and make a
37 Accidental_column to group them.
41 class Local_key_item : public Note_head_side, public Staff_symbol_referencer {
42 Array<Local_key_cautionary_tuple> accidental_arr_;
44 Molecule accidental (int,bool) const;
48 void add_pitch (Musical_pitch, bool cautionary);
50 virtual void do_pre_processing();
51 virtual void do_substitute_element_pointer (Score_element*,Score_element*);
52 virtual Molecule* do_brew_molecule_p() const;
54 #endif // LOCALKEYITEM_HH