]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/mensural-ligature.hh
900a046b1586f34b1ebdc670afea4f52bceca0af
[lilypond.git] / lily / include / mensural-ligature.hh
1 /*
2   This file is part of LilyPond, the GNU music typesetter.
3
4   Copyright (C) 2002--2012 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  * These are all possible mensural ligature primitives.
29  */
30 #define MLP_NONE 0x00 // no output
31 #define MLP_UP 0x01 // upward left stem
32 #define MLP_DOWN 0x02 // downward left stem
33 #define MLP_BREVIS 0x04 // mensural brevis head
34 #define MLP_LONGA 0x08 // mensural brevis head with right cauda
35 #define MLP_MAXIMA 0x10 // mensural maxima head without stem
36 #define MLP_FLEXA_BEGIN 0x20 // start of obliqua
37 #define MLP_FLEXA_END 0x40 // end of obliqua
38
39 #define MLP_STEM (MLP_UP | MLP_DOWN)
40 #define MLP_SINGLE_HEAD (MLP_BREVIS | MLP_LONGA | MLP_MAXIMA)
41 #define MLP_FLEXA (MLP_FLEXA_BEGIN | MLP_FLEXA_END)
42 #define MLP_ANY (MLP_FLEXA | MLP_SINGLE_HEAD)
43
44 struct Mensural_ligature
45 {
46   DECLARE_SCHEME_CALLBACK (brew_ligature_primitive, (SCM));
47   DECLARE_SCHEME_CALLBACK (print, (SCM));
48   DECLARE_GROB_INTERFACE ();
49 };
50
51 #endif /* MENSURAL_LIGATURE_HH */