summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/musixtex/musixadf.tex
blob: 33c93ddca859de5e595d519ef3baa9f16c4cc536 (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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
%
% musixadf.tex - some additional accents for MusiXTeX
%
%%   Author:
%%   Hiroaki MORIMOTO <CQX05646\atmark nifty.com>
%%     Tokyo, Japan
%%     URL: http://homepage1.nifty.com/kuuku/pub/musixtex/index-e.html
%
\immediate\write16{MusiXTeX Additional Accents <2015-02-15> )}%
%
\edef\catcodeat{\the\catcode`\@}\catcode`\@=11
%
\font\musixadfeleven=xadf11
\font\musixadfthirteen=xadf13
\font\musixadfsixteen=xadf16
\font\musixadftwenty=xadf20
\font\musixadftwentyfour=xadf24
\font\musixadftwentynine=xadf29
%
\let\comput@fonts@org=\comput@fonts\relax
\def\comput@fonts{%
  \comput@fonts@org
  \ifnum\musicsize=\sixt@@n
    \let\musixadfLargefont\musixadftwentyfour
    \let\musixadflargefont\musixadftwenty
    \let\musixadfnorfont\musixadfsixteen
    \let\musixadfsmallfont\musixadfthirteen
    \let\musixadftinyfont\musixadfeleven
  \else\ifnum\musicsize=\@xxiv
    \let\musixadfLargefont\musixadftwentynine
    \let\musixadflargefont\musixadftwentynine
    \let\musixadfnorfont\musixadftwentyfour
    \let\musixadfsmallfont\musixadftwenty
    \let\musixadftinyfont\musixadfsixteen
  \else\ifnum\musicsize=\@xxix
    \let\musixadfLargefont\musixadftwentynine
    \let\musixadflargefont\musixadftwentynine
    \let\musixadfnorfont\musixadftwentynine
    \let\musixadfsmallfont\musixadftwentyfour
    \let\musixadftinyfont\musixadftwenty
  \else
    \musicsize\tw@nty
    \let\musixadfLargefont\musixadftwentynine
    \let\musixadflargefont\musixadftwentyfour
    \let\musixadfnorfont\musixadftwenty
    \let\musixadfsmallfont\musixadfsixteen
    \let\musixadftinyfont\musixadfthirteen
  \fi\fi\fi
}%
%
\let\set@Largenotesize@org=\set@Largenotesize\relax
\let\set@largenotesize@org=\set@largenotesize\relax
\let\set@normalnotesize@org=\set@normalnotesize\relax
\let\set@smallnotesize@org=\set@smallnotesize\relax
\let\set@tinynotesize@org=\set@tinynotesize\relax
%
\def\set@Largenotesize{%
  \set@Largenotesize@org\let\musixadfont\musixadfLargefont}%
\def\set@largenotesize{%
  \set@largenotesize@org\let\musixadfont\musixadflargefont}%
\def\set@normalnotesize{%
  \set@normalnotesize@org\let\musixadfont\musixadfnorfont}%
\def\set@smallnotesize{%
  \set@smallnotesize@org\let\musixadfont\musixadfsmallfont}%
\def\set@tinynotesize{%
  \set@tinynotesize@org\let\musixadfont\musixadftinyfont}%
%
\def\musixadfchar{\musixadfont\char}%
%
\def\uacc@Char@adf#1{\check@staff
  \inhgetn@i#1\relax \relax
  \ifnum\n@i<\@ight \ifodd\n@i \else\advance\n@i\@ne \fi \fi
  \zchar\n@i\C@ChaR@adf
  \fi}%
%
\def\lacc@Char@adf#1{\check@staff
  \inhgetn@i#1\relax \relax
  \ifnum\n@i>\@ne \ifodd\n@i \else\advance\n@i\m@ne \fi \fi
  \zchar\n@i\C@ChaR@adf
  \fi}%
\def\C@ChaR@adf{\musixadfont\char\n@iv}%
%
\def\@Char@adf#1{\zcharnote{#1}\C@ChaR@adf}%
%
% coda sign with serif
%
%     ___
%      |
%    /~|~\
% |-+--+--+-|
%    \_|_/
%      |
%     ~~~
%
%\def\scoda{\musixadfchar85\relax}%
\def\adfC@coda#1{\llap{\@Char@adf{#1}\kern\afterruleskip}}%
\def\scoda{\n@iv85\adfC@coda}%
\def\replacecoda{\let\coda=\scoda}%
%
%
%
% upright segno
%
%\def\upsegno{\musixadfchar86\relax}%
\def\upsegno{\n@iv86\@Char@adf}%
\def\replacesegno{\let\segno=\upsegno}%
%
%
% little swell ...something like <>
%
% lower
\def\llsw{\n@iv31\lacc@Char@adf}
% upper
\def\ulsw{\n@iv30\uacc@Char@adf}%
%
%
% a little larger sforzato
%
\def\uSfz{\n@iv\tw@nty \uacc@Char@adf}
\def\lSfz{\n@iv21\lacc@Char@adf}
\def\dSfz{\lSfz}
\def\replacesforzato{%
  \let\usfz=\uSfz\relax
  \let\lsfz=\lSfz\relax
}%
%
%
% v-breath
%
\def\zuBreath{\check@staff\raise\@ight\internote\rlap{\n@iv33\C@ChaR@adf}\fi}%
\def\cuBreath{\check@staff\adv@box{\raise\@ight\internote
   \hbox\@to\noteskip{\hss\n@iv33\C@ChaR@adf\hss}}\fi}%
\def\zlBreath{\check@staff\raise0\internote\rlap{\n@iv34\C@ChaR@adf}\fi}%
\def\clBreath{\check@staff\adv@box{\raise0\internote
   \hbox\@to\noteskip{\hss\n@iv34\C@ChaR@adf\hss}}\fi}%
%
\catcode`\@=\catcodeat
\endinput