]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/key-item.hh
release: 1.3.55
[lilypond.git] / lily / include / key-item.hh
1 /*
2   key-item.hh -- part of GNU LilyPond
3
4   (c) 1996--2000 Han-Wen Nienhuys
5 */
6
7 #ifndef KEYITEM_HH
8 #define KEYITEM_HH
9
10 #include "item.hh"
11 #include "array.hh"
12
13
14 /**
15   A group of  accidentals.
16
17   Properties:
18
19   c0-position -- integer indicating the position of central C?
20
21   old-accidentals -- list of (pitch, accidental) pairs
22
23   new-accidentals -- list of (pitch, accidental) pairs
24  */
25 class Key_item :public  Item
26 {
27   int calculate_position(SCM pair) const;
28
29 public:
30   VIRTUAL_COPY_CONS(Score_element);
31   Key_item (SCM);
32   void add (int pitch, int acc);
33   void add_old (int pitch, int acc);
34
35 protected:
36   virtual Molecule do_brew_molecule() const;
37 };
38
39 #endif // KEYITEM_HH