]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/local-key-item.hh
release: 0.0.64
[lilypond.git] / lily / include / local-key-item.hh
1 /*
2   local-key-item.hh -- part of LilyPond
3
4   (c) 1996,97 Han-Wen Nienhuys
5 */
6
7 #ifndef LOCALKEYITEM_HH
8 #define LOCALKEYITEM_HH
9 #include "item.hh"
10 #include "varray.hh"
11
12 struct Local_acc {
13     int name_i_;
14     int accidental_i_;
15     int octave_i_;
16     static int compare(Local_acc&, Local_acc&);
17 };
18
19 /**
20   Accidentals which can be different for each octave.
21  */
22 struct Local_key_item : Item {
23     NAME_MEMBERS(Local_key_item);
24     Array<Local_acc> accs;
25     Array<Item*> support_items_;
26     int c0_position;
27
28     /* *************** */
29     
30     Local_key_item(int c0position);
31     void add(Item*);
32     void add(int oct, int pitch, int acc);
33     void add(Melodic_req*);
34     void do_pre_processing();    
35     Molecule* brew_molecule_p()const;
36 };
37 #endif // LOCALKEYITEM_HH
38