-
Notifications
You must be signed in to change notification settings - Fork 0
/
songlist.mac
executable file
·186 lines (132 loc) · 4.47 KB
/
songlist.mac
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
%% songlist.mac
%% Created by Laurence D. Finston Thu Nov 9 12:21:14 2017 +0100
%% * Copyright and License.
%% This file is part of songlist, a package for keeping track of songs.
%% Copyright (C) 2021, 2022, 2023 Laurence D. Finston
%% songlist 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 3 of the License, or
%% (at your option) any later version.
%% songlist 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 songlist; if not, write to the Free Software
%% Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
%% Please send bug reports to [email protected]
\input eplain
\input epsf
\input colordvi
%% Uncomment for A4 portrait
\special{papersize=210mm, 297mm}
\hsize=210mm
\vsize=297mm
\parindent=0pt
\advance\vsize by -3cm
\advance\voffset by -1in
\advance\hoffset by -1in
\advance\voffset by 1.5cm
\advance\hoffset by 1cm
\advance\hsize by -2cm
%\def\epsfsize#1#2{#1}
\noindent
%\nopagenumbers
\pageno=1
\font\small=cmr8
\font\smalltt=cmtt8
\font\medium=cmr10 scaled \magstephalf
\font\mediumbx=cmbx10 scaled \magstephalf
\font\mediumit=cmti10 scaled \magstephalf
\font\mediumtt=cmtt10 scaled \magstephalf
\font\large=cmr12
\font\largebx=cmbx12
\font\largeit=cmti12
\font\largett=cmtt12
\font\Largebx=cmbx12 scaled \magstephalf
\font\huge=cmr12 scaled \magstep2
\font\hugebx=cmbx12 scaled \magstep2
\font\mediumsy=cmsy10 scaled \magstephalf
\font\mediumcy=cmcyr10 scaled \magstephalf
\font\largecy=cmcyr12
\font\Largecy=cmcyr12 scaled \magstephalf
\font\mediumcybx=cmcbx10 scaled \magstephalf
\font\largecybx=cmcbx12
\font\Largecybx=cmcbx12 scaled \magstephalf
\newdimen\twozerosdimen
\newdimen\twozerosbolddimen
\newdimen\twozerosperioddimen
\newdimen\threezerosdimen
\newdimen\threezerosperioddimen
\setbox0=\hbox{{\medium 00}}
\twozerosdimen=\wd0
\setbox0=\hbox{{\mediumbx 00}}
\twozerosbolddimen=\wd0
\setbox0=\hbox{\hskip\twozerosdimen. }
\twozerosperioddimen=\wd0
\setbox0=\hbox{{\medium 000}}
\threezerosdimen=\wd0
\setbox1=\hbox{\hbox to \threezerosdimen{\hfil}\hbox{.\space}}
\threezerosperioddimen=\wd1
\newcount\songctr
\songctr=0
\newcount\leadsheetctr
\leadsheetctr=0
\catcode`\@=\active
\def@#1{{\"#1}}
\newif\ifthreezeros
\threezerosfalse
\newskip\titleskip
\titleskip=8pt
\newskip\sourceskip
\sourceskip=8pt
\newskip\posttitleskip
\posttitleskip=0pt
\newskip\basichskip
\basichskip=2em
\newskip\copyrightskip
\copyrightskip=6pt
\newskip\composerskip
\composerskip=4pt
\def\M{\leavevmode\hbox to \twozerosperioddimen{\hss\the\songctr\global\advance\songctr by 1 . }}
\def\N{\threezerostrue\leavevmode\hbox to \threezerosperioddimen{\hss
\the\songctr\global\advance\songctr by 1 . }}
\def\P{\threezerostrue\leavevmode\hbox to \threezerosperioddimen{\hfil}}
\def\R{\threezerosfalse\hskip\twozerosperioddimen}
\def\S{\ifthreezeros\dimen0=\threezerosperioddimen\else\dimen0=\twozerosperioddimen\fi
\leavevmode\hbox to \dimen0{\hfil}}
\def\leaderfill{\leaders\hbox to .5em{\hss.\hss}\hfil}
%% All lead sheets, in `../music/Lead_Sheets/'.
\def\HLA#1#2{\hlstart{filepage}{bwidth=0,newwin=,file=../music/Lead_Sheets/#1}{1}%
{\mediumtt\ifnum#2=0\RawSienna{#1}\else\Blue{#1}\fi}\hlend}
%% Public domain lead sheets, in `./lead_sheets/'.
\def\HLP#1{\hlstart{filepage}{bwidth=0,newwin=,file=./lead_sheets/#1}{1}{\mediumtt\Blue{#1}}\hlend}
\def\SCANNED#1#2#3{\begingroup\setbox0=\hbox{{\medium Pretty A Girl is Like a Melody}}%
\setbox1=\hbox{{\medium 00. }}\setbox2=\hbox{#1}%
\ifdim\wd2<\wd0\line{\hbox to \wd1{\hss\the\songctr. }#1\leaderfill\HLA{#2}{#3}}\else
\vtop{\line{\hbox to \wd1{\hss\the\songctr . }#1\hfil}%
\line{\quad\leaderfill\HLA{#2}{#3}}\vskip.25\baselineskip}\fi
\global\advance\songctr by 1
\endgroup}
\enablehyperlinks[dvipdfm]
%\enablehyperlinks[pdftex]
\hlopts{bwidth=0}
\newcount\pagecnt
\newcount\prevpagecnt
\newcount\tempcnt
\newif\ifseparate
\newwrite\pagenoout
\newcount\filecardctr
\filecardctr=0
\newlinechar=`^^J
\newbox\commabox
\setbox\commabox=\vbox{{\medium ,}}
\newread\newfilecards
\medium
%% *** (3)
%% ** (2)
%% Local Variables:
%% mode:plain-TeX
%% mode:show-paren
%% eval:(outline-minor-mode)
%% End: