]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/newkey.hh
patch::: 1.3.58.jcn2
[lilypond.git] / lily / include / newkey.hh
1 /*   
2   newkey.hh -- declare Newkey
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #ifndef NEWKEY_HH
11 #define NEWKEY_HH
12
13 #include "protected-scm.hh" 
14
15 class Newkey
16 {
17   /*
18     alist mapping 
19     (octave . notename) -> accidental and notename -> accidental
20    */
21   Protected_scm key_alist_;
22 public:
23   void set (int name, int acc);
24   void set (int oct, int name, int acc);
25   void clear ();
26   void set_scm (SCM k, SCM v);
27   Newkey();
28   int get (int oct, int name);
29   int get (int name);
30 };
31 #endif /* NEWKEY_HH */
32