summaryrefslogtreecommitdiff
path: root/macros/musixtex/tex/musixlit.tex
blob: f55fb8f826e2ccc984d68f44d04f6c1a971e36a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
%
%   This file is part of MusiXTeX
%
%   MusiXTeX is free software; you can redistribute it and/or modify
%   it under the terms of the GNU General Public License as published by
%   the Free Software Foundation; either version 2, or (at your option)
%   any later version.
%
%   MusiXTeX is distributed in the hope that it will be useful,
%   but WITHOUT ANY WARRANTY; without even the implied warranty of
%   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%   GNU General Public License for more details.
%
%   You should have received a copy of the GNU General Public License
%   along with MusiXTeX; see the file COPYING.  If not, write to
%   the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
%   Boston, MA 02111-1307, USA.
%

\immediate\write16{MusiXLITurgical 0.38\space<17 Dec 2016>}%

\ifx\undefined\oldGclef \else \endinput \fi

\edef\catcodeat{\the\catcode`\@}\catcode`\@=11

\def\oldGclef{\keychar103}

\def\cqu{\def\q@u{\musixchar99}\@qu}
\def\cql{\def\q@u{\musixfont\@c}\@ql}
\def\chu{\def\q@u{\musixchar101}\@qu}
\def\chl{\def\q@u{\musixchar102}\@ql}

\def\cnqu{\def\q@u{\musixchar99}\@nq}
\def\cnql{\def\q@u{\musixfont\@c}\@nq}
\def\cnhu{\def\q@u{\musixchar101}\@nq}
\def\cnhl{\def\q@u{\musixchar102}\@nq}
\def\cqb{\def\q@u{\musixchar99}\@qb}  % RDT 2016-12-17
\def\zcqb{\advancefalse\cqb}          % RDT 2016-12-17


% Moved to musixtex.tex.  RDT 2015-12-23
%\def\Hpause#1#2{\zcharnote{#1}{\def\s@r{%
%  \vrule\@width.6\p@\@height1\h@lf\internote\@depth1\h@lf\internote}%
%  \s@r
%  \vrule\@width#2\noteskip\@height\h@lf\internote\@depth\h@lf\internote
%  \s@r}}

\def\Hlonga#1#2{\zcharnote{#1}{\def\s@r{%
  \vrule\@width.6\p@\@height1\h@lf\internote\@depth1\h@lf\internote}%
  \s@r
  \raise\h@lf\internote\rlap{\vrule\@width#2\noteskip
                             \@height 0.3pt\@depth 0.3pt}%
  \raise-\h@lf\internote\hbox{\vrule\@width#2\noteskip
                             \@height 0.3pt\@depth 0.3pt}%
  \s@r}}

% separated short vrules over every staff (fits only for 1,2,3,5 Lines)

\def\rul@SEP#1{\n@loop\short@rule\repeat\addspace#1}
\def\short@rule{{\p@loop\y@\altportee\advance\y@\tw@\internote\raise\y@%
  \rlap{\vrule\@width\lthick\@height\f@ur\internote}\count@portee\repeat}}
\def\shortbarrules{\let\writ@rule\rul@SEP }

% separated short vrules between every staff (fits only for 1,2,3,5 Lines)

\def\rul@int#1{\n@loop\inter@rule\repeat\addspace#1}
\def\inter@rule{{%
  \y@iv\altitude \y@v\y@iv
  \ifnum\st@ffs>\@ne \@ri \Comp@High\advance\y@v\altitude
  \else \ifnum\st@ffs>\z@ \advance\y@v\@ight\internote \fi\fi
  \advance\noinstrum@nt\@ne \s@l@ctinstr
  \ifnum\st@ffs=\z@ \advance\noinstrum@nt\@ne\s@l@ctinstr \fi
  \ifnum\nbinstruments<\noinstrum@nt
    \y@iii\y@iv \y@ii\y@iii \advance\y@ii-\y@v \Put@inter@rule
  \else
    \y@iii\altitude \y@ii\y@iii \advance\y@ii-\y@v \Put@inter@rule
  \fi}}
\def\@ri{\n@ii\st@ffs \advance\st@ffs\m@ne
  \C@Inter \y@ii\stem@skip
  \p@loop \y@iii\altportee \advance\y@iii\interportee
    \Put@inter@rule \advance\noport@@\@ne \repeat
  \st@ffs\n@ii}
\def\Put@inter@rule{\raise\y@iii\rlap{\vrule\@width\lthick\@depth\y@ii}}
\def\interbarrules{\let\writ@rule\rul@int }

\catcode`\@=\catcodeat
\endinput