2 This file is part of LilyPond, the GNU music typesetter.
4 Copyright (C) 2002--2011 Juergen Reuter <reuter@ipd.uka.de>,
5 Pal Benko <benkop@freestart.hu>
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.
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.
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/>.
21 #ifndef MENSURAL_LIGATURE_HH
22 #define MENSURAL_LIGATURE_HH
24 #include "lily-proto.hh"
25 #include "grob-interface.hh"
29 * These are all possible mensural ligature primitives.
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
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)
45 struct Mensural_ligature
47 DECLARE_SCHEME_CALLBACK (brew_ligature_primitive, (SCM));
48 DECLARE_SCHEME_CALLBACK (print, (SCM));
49 DECLARE_GROB_INTERFACE();
52 #endif /* MENSURAL_LIGATURE_HH */