]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/key-item.hh
756a2b013988a96ebfd95a408ead2dce78511e54
[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   static SCM brew_molecule (SCM);
33   
34
35
36   SCM member_brew_molecule() const;
37 };
38
39 #endif // KEYITEM_HH