]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/mensural-ligature.hh
Merge branch 'instrumentName-groups'
[lilypond.git] / lily / include / mensural-ligature.hh
1 /*
2   This file is part of LilyPond, the GNU music typesetter.
3
4   Copyright (C) 2002--2011 Juergen Reuter <reuter@ipd.uka.de>,
5   Pal Benko <benkop@freestart.hu>
6
7   LilyPond is free software: you can redistribute it and/or modify
8   it under the terms of the GNU General Public License as published by
9   the Free Software Foundation, either version 3 of the License, or
10   (at your option) any later version.
11
12   LilyPond is distributed in the hope that it will be useful,
13   but WITHOUT ANY WARRANTY; without even the implied warranty of
14   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15   GNU General Public License for more details.
16
17   You should have received a copy of the GNU General Public License
18   along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #ifndef MENSURAL_LIGATURE_HH
22 #define MENSURAL_LIGATURE_HH
23
24 #include "lily-proto.hh"
25 #include "grob-interface.hh"
26
27
28 /*
29  * These are all possible mensural ligature primitives.
30  */
31 #define MLP_NONE 0x00 // no output
32 #define MLP_UP 0x01 // upward left stem
33 #define MLP_DOWN 0x02 // downward left stem
34 #define MLP_BREVIS 0x04 // mensural brevis head
35 #define MLP_LONGA 0x08 // mensural brevis head with right cauda
36 #define MLP_MAXIMA 0x10 // mensural maxima head without stem
37 #define MLP_FLEXA_BEGIN 0x20 // start of obliqua
38 #define MLP_FLEXA_END 0x40 // end of obliqua
39
40 #define MLP_STEM (MLP_UP | MLP_DOWN)
41 #define MLP_SINGLE_HEAD (MLP_BREVIS | MLP_LONGA | MLP_MAXIMA)
42 #define MLP_FLEXA (MLP_FLEXA_BEGIN | MLP_FLEXA_END)
43 #define MLP_ANY (MLP_FLEXA | MLP_SINGLE_HEAD)
44
45 struct Mensural_ligature
46 {
47   DECLARE_SCHEME_CALLBACK (brew_ligature_primitive, (SCM));
48   DECLARE_SCHEME_CALLBACK (print, (SCM));
49   DECLARE_GROB_INTERFACE();
50 };
51
52 #endif /* MENSURAL_LIGATURE_HH */