Debian Codegraph @

debian/patches/1088853.patch

raw
1 --- texlive-bin.orig/utils/autosp/autosp-src/autosp.1 2024-12-02 02:35:04.211249200 +0000
2 +++ texlive-bin/utils/autosp/autosp-src/autosp.1 2024-12-02 03:24:31.150815128 +0000
3 @@ -1,12 +1,12 @@
4 .\" This manpage is licensed under the GNU Public License
5 -.TH AUTOSP 1 2023-09-01 "" ""
6 +.TH AUTOSP 1 2023-09-01 "" ""
7
8 .SH NAME
9 autosp \- preprocessor to generate note-spacing commands for MusiXTeX scores
10
11 .SH SYNOPSIS
12 -.B autosp
13 -.RB [ \-v\ |\ \-\-version\ |\ \-h\ |\ \-\-help ]
14 +.B autosp
15 +.RB [ \-v\ |\ \-\-version\ |\ \-h\ |\ \-\-help ]
16
17 .B autosp
18 .RB [ \-d\ |\ \-\-dotted ]
19 @@ -15,289 +15,322 @@ autosp \- preprocessor to generate note-
20 .RI [ outfile [ \fR.tex\fP ]]
21
22 .SH DESCRIPTION
23 -This program makes it easier to create MusiXTeX scores by converting (non-standard) commands of the
24 -form \\anotes ... \\en (or \\an ... \\en) into one or more conventional
25 -note-spacing commands (\\notes \\Notes \\NOtes ...),
26 -determined by the actual note values, with \\sk spacing commands inserted as necessary.
27 +This program makes it easier to create MusiXTeX scores by
28 +converting
29 +(non-standard)
30 +commands of the form \eanotes ... \een
31 +(or \ean ... \een)
32 +into one or more conventional note-spacing commands
33 +(\enotes \eNotes \eNOtes ...),
34 +determined by the actual note values,
35 +with \esk spacing commands inserted as necessary.
36 The coding
37 -for an entire measure can be entered one part at a time,
38 -without
39 -concern for note-spacing changes within the part or spacing requirements of other parts.
40 +for an entire measure can be entered one part at a time,
41 +without concern for note-spacing changes within the part
42 +or spacing requirements of other parts.
43
44 For example, if applied to
45 .nf
46
47 - \\anotes\\qa J\\qa K&\\ca l\\qa m\\ca n\\en
48 + \eanotes\eqa J\eqa K&\eca l\eqa m\eca n\een
49
50 .fi
51 .B autosp
52 generates
53 .nf
54
55 - \\Notes\\qa J\\sk\\qa K\\sk&\\ca l\\qa m\\sk\\ca n\\en
56 + \eNotes\eqa J\esk\eqa K\esk&\eca l\eqa m\esk\eca n\een
57
58 .fi
59 Typically,
60 an
61 -\\anotes command generates several conventional
62 +\eanotes command generates several conventional
63 note-spacing commands.
64
65 -If the
66 +If the
67 .I infile
68 -argument
69 -does not have an .aspc extension, input is taken from
70 -.IR infile .aspc
71 +argument does not have an .aspc extension,
72 +input is taken from
73 +.IR infile .aspc
74 if that file exists.
75
76 If the
77 .I outfile
78 -argument does not have a .tex extension, output is sent to
79 +argument does not have a .tex extension,
80 +output is sent to
81 .IR outfile .tex.
82 -If no
83 -.I outfile
84 -argument is provided, output will go to
85 +If no
86 +.I outfile
87 +argument is provided,
88 +output will go to
89 .IR infile .tex
90 (or to
91 .IR infile .ltx
92 -if a \\documentclass declaration is encountered).
93 +if a \edocumentclass declaration is encountered).
94
95 For
96 -\\anotes commands,
97 -line breaks and spaces may precede note segments, allowing more flexible source formatting;
98 -the line breaks and spaces will be elided from the output.
99 +\eanotes commands,
100 +line breaks and spaces may precede note segments,
101 +allowing more flexible source formatting;
102 +the line breaks and spaces will be elided from the output.
103
104 -For example,
105 +For example,
106 .nf
107
108 - \\an
109 - \\ibl0K0\\qb0K\\nbbl0\\qb0{.K}\\tbbbl0\\tbbl0\\tql0L&
110 - \\ibbl1m{-2}\\qb1{.m}\\tbbbl1\\tbbl1\\qb1l\\tql1k\\en
111 + \ean
112 + \eibl0K0\eqb0K\enbbl0\eqb0{.K}\etbbbl0\etbbl0\etql0L&
113 + \eibbl1m{-2}\eqb1{.m}\etbbbl1\etbbl1\eqb1l\etql1k\een
114
115 .fi
116 is acceptable and generates
117 .nf
118
119 - \\notesp\\ibl0K0\\qb0K&\\ibbl1m{-2}\\qb1{.m}\\en
120 - \\nnotes\\sk&\\tbbbl1\\tbbl1\\qb1l\\en
121 - \\notesp\\nbbl0\\qb0{.K}&\\tql1k\\en
122 - \\nnotes\\tbbbl0\\tbbl0\\tql0L&\\sk\\en
123 + \enotesp\eibl0K0\eqb0K&\eibbl1m{-2}\eqb1{.m}\een
124 + \ennotes\esk&\etbbbl1\etbbl1\eqb1l\een
125 + \enotesp\enbbl0\eqb0{.K}&\etql1k\een
126 + \ennotes\etbbbl0\etbbl0\etql0L&\esk\een
127
128 .fi
129
130
131 -If the
132 -.B \-l
133 -( \fB\-\-log\fP ) option is used, a very detailed log
134 +If the
135 +.B \-l
136 +( \fB\-\-log\fP ) option is used, a very detailed log
137 .IR infile .alog
138 is generated.
139
140 -If the
141 -.B \-d
142 -( \fB--dotted\fP )
143 -option is used,
144 -.I dotted
145 -beam notes of the form \\qb{\fIn\fP}{\fB.\fP\fIp\fP} are
146 -.I not
147 +If the
148 +.B \-d
149 +( \fB\-\-dotted\fP )
150 +option is used,
151 +.I dotted
152 +beam notes of the form \eqb{\fIn\fP}{\fB.\fP\fIp\fP} are
153 +.I not
154 given extra space;
155 it is assumed that the subsequent note will be shifted
156 -by
157 -a \\roff-like command
158 -or a spacing command such as \\qsk or \\hqsk.
159 -Commands of the form \\qlp{\fIp\fP}, \\qlpp{\fIp\fP}, ..., \\qpb{\fIn\fP}{\fIp\fP} and
160 -\\qppb{\fIn\fP}{\fIp\fP} are always spaced
161 -as indicated.
162 -
163 -If there is a single staff, consecutive whole-bar rest bars
164 -are merged into a multi-bar rest. Bar-centered rests can be
165 -coded using the standard \\def\\atnextbar notation but
166 -the non-standard command \\Cpause (or \\Cp) in a note segment also generates a
167 -bar-centered rest.
168 -
169 -Spacing commands \\sk and \\bsk in the source are discarded,
170 -but not "small" skips \\hsk, \\qsk, \\tqsk, \\hqsk or \\qqsk,
171 -or the small "backward" skips \\hbsk, \\bqsk, \\btsk, or \\bhsk.
172 +by
173 +a \eroff-like command
174 +or a spacing command such as \eqsk or \ehqsk.
175 +Commands of the form \eqlp{\fIp\fP}, \eqlpp{\fIp\fP},
176 +\&..., \eqpb{\fIn\fP}{\fIp\fP}
177 +and \eqppb{\fIn\fP}{\fIp\fP} are always spaced as indicated.
178 +
179 +If there is a single staff,
180 +consecutive whole-bar rest bars are merged into a multi-bar rest.
181 +Bar-centered rests can be coded using the standard \edef\eatnextbar notation
182 +but the non-standard command \eCpause
183 +(or \eCp)
184 +in a note segment also generates a bar-centered rest.
185 +
186 +Spacing commands \esk and \ebsk in the source are discarded,
187 +but not "small" skips \ehsk, \eqsk, \etqsk, \ehqsk or \eqqsk,
188 +or the small "backward" skips \ehbsk, \ebqsk, \ebtsk, or \ebhsk.
189 Moreover,
190 non-standard commands
191 -\\QQsk, \\HQsk \\TQsk and \\Qsk in the source generate "global" skips; i.e., the effect of \\qqsk, \\hqsk, \\tqsk or \\qsk, respectively, in
192 -.I every
193 -staff. These ensure that staffs remain synchronized if additional spacing is needed in any staff(s).
194 +\eQQsk, \eHQsk \eTQsk and \eQsk in the source generate "global" skips;
195 +i.e., the effect of \eqqsk, \ehqsk, \etqsk or \eqsk, respectively, in
196 +.I every
197 +staff.
198 +These ensure that staffs remain synchronized
199 +if additional spacing is needed in any staff(s).
200
201 Global skips may also be obtained within collective-coding sequences by using
202 -up to four successive commas
203 -to get the effects of \\QQsk, \\HQsk, \\TQsk or \\Qsk, respectively.
204 -Global skips \\tqsk (or, for double-flats, \\qsk) are
205 -automatically inserted before accidentals ('^', '_', '=', '<', '>') on collective-coding notes
206 +up to four successive commas
207 +to get the effects of \eQQsk, \eHQsk, \eTQsk or \eQsk, respectively.
208 +Global skips \etqsk
209 +(or, for double-flats, \eqsk)
210 +are automatically inserted before accidentals
211 +('^', '_', '=', '<', '>')
212 +on collective-coding notes
213 (except when the preceding note is "virtual"; i.e., a skip).
214 -If this automatic additional spacing is
215 -.I not
216 +If this automatic additional spacing is
217 +.I not
218 wanted in some context, it may be avoided by
219 -replacing
220 +replacing
221 the accidental in the collective-coding sequence
222 -by
223 -any of the
224 -.I explicit
225 -accidental commands: \\sh, \\fl, \\na, \\smallsh, \\bigsh, etc.
226 -If the automatic spacing is insufficient, the spacing may be increased by adding sufficient commas or
227 -using a conventional notes command instead of \\an.
228 -
229 -
230 -A note segment can be completely empty, but if a note segment should start
231 -with or contain a "space," the note-value
232 -of that space must be made explicit with a command of the
233 -form \\ha{*}, \\qa{.*}, \\qa{*}, \\ca{*}, etc.
234 -
235 -From version 2017-06-14, the effects of \\TransformNotes calls are implemented by the
236 -.B autosp
237 -pre-processor. This
238 -enables use of
239 -musixlyr in
240 -.B autosp
241 -scores; musixlyr.tex
242 -is incompatible with the
243 -musixtnt.tex
244 -implementation of \\TransformNotes.
245 +by
246 +any of the
247 +.I explicit
248 +accidental commands: \esh, \efl, \ena, \esmallsh, \ebigsh, etc.
249 +If the automatic spacing is insufficient,
250 +the spacing may be increased by adding sufficient commas or
251 +using a conventional notes command instead of \ean.
252 +
253 +
254 +A note segment can be completely empty,
255 +but if a note segment should start with
256 +or contain a "space",
257 +the note-value of that space must be made explicit with a command of the
258 +form \eha{*}, \eqa{.*}, \eqa{*}, \eca{*}, etc.
259 +
260 +\&From version 2017-06-14,
261 +the effects of \eTransformNotes calls are implemented by the
262 +.B autosp
263 +pre-processor.
264 +This enables use of musixlyr in
265 +.B autosp
266 +scores;
267 +musixlyr.tex is incompatible with the musixtnt.tex implementation of
268 +\eTransformNotes.
269
270 -All other conventional MusiXTeX commands are output exactly as given in the input.
271 +All other conventional MusiXTeX commands are output exactly
272 +as given in the input.
273
274
275 .SH OPERATION
276
277 .B autosp
278 determines the spacing for ordinary notes from the note
279 -commands themselves; for example,
280 +commands themselves; for example,
281 .TP 3
282 +
283 -\\qa, \\qu, \\ql, \\qp result in
284 -\\NOtes;
285 +\eqa, \equ, \eql, \eqp result in
286 +\eNOtes;
287 .TP 3
288 +
289 -\\ca, \\cu, \\cl, \\ds result in \\Notes;
290 +\eca, \ecu, \ecl, \eds result in \eNotes;
291 .PP
292 -and so on.
293 -
294 -The spacing for
295 -.IR beamed
296 +and so on.
297 +
298 +The spacing for
299 +.I beamed
300 notes is determined by the beam
301 -multiplicity, so that \\ib... results in \\Notes, \\ibb... results in
302 -\\notes, etc.
303 +multiplicity, so that \eib... results in \eNotes, \eibb... results in
304 +\enotes, etc.
305
306 -Collective coding of note sequences (including accidentals and dots) is handled
307 -by expanding the sequence
308 -into a sequence of individual note commands.
309 +Collective coding of note sequences
310 +(including accidentals and dots)
311 +is handled by expanding the sequence into a sequence of individual note
312 +commands.
313
314
315 -.B autosp
316 +.B autosp
317 scales notes by the relevant instrument-size value.
318 -
319 +
320 .SH LIMITATIONS
321
322 .B autosp
323 -assumes that & and | (rather than \\nextinstrument and \\nextstaff) are used to separate instruments and staffs.
324 +assumes that & and |
325 +(rather than \enextinstrument and \enextstaff)
326 +are used to separate instruments and staffs.
327 +
328
329 +Appoggiaturas and grace notes are recognized by the use of \etinynotesize;
330 +note-spacing of 1.45\eelemskip is used.
331 +If this isn't suitable
332 +and can't be corrected with a small skip,
333 +a \evnotes command with any desired spacing can be used.
334
335 -Appoggiaturas and grace notes are recognized by the use of \\tinynotesize; note-spacing
336 -of 1.45\\elemskip is used. If this isn't suitable and can't be corrected with a small skip, a
337 -\\vnotes command with any desired spacing can be used.
338 -
339 -.B autosp
340 -supports
341 -.I x-tuplets
342 -introduced using \\xtuplet{\fIx\fP}
343 -or \\xxtuplet{\fIx:y\fP}
344 -and
345 -.I triplets
346 +.B autosp
347 +supports
348 +.I x-tuplets
349 +introduced using \extuplet{\fIx\fP}
350 +or \exxtuplet{\fIx:y\fP}
351 +and
352 +.I triplets
353 introduced
354 -using any of the following commands (regardless of any re-definition of \\txt or \\tuplettxt):
355 +using any of the following commands
356 +(regardless of any re-definition of \etxt or \etuplettxt):
357 .nf
358
359 - \\triolet
360 - \\uptrio
361 - \\downtrio
362 - \\uptuplet
363 - \\downtuplet
364 + \etriolet
365 + \euptrio
366 + \edowntrio
367 + \euptuplet
368 + \edowntuplet
369
370 .fi
371 -.B autosp
372 -assumes that an x-tuplet is to be played in
373 -(\fIx\fP\-1)/\fIx\fP
374 +.B autosp
375 +assumes that an x-tuplet is to be played in
376 +(\fIx\fP\-1)/\fIx\fP
377 of the apparent x-tuplet duration.
378 -So, for example, a triplet in eighths is assumed to be played in the time of one quarter note.
379 -If this assumption
380 -isn't valid, the x-tuplet must
381 -be coded explicitly using a suitable \\vnotes command; see the first
382 -measure of barsant2.aspc for an example of a non-standard x-tuplet: a 5-tuple
383 -of 64th notes with an intended duration
384 -of
385 -.I six
386 +So, for example,
387 +a triplet in eighths is assumed to be played in the time of one quarter note.
388 +If this assumption isn't valid,
389 +the x-tuplet must be coded explicitly using a suitable \evnotes command;
390 +see the first measure of barsant2.aspc for an example of a non-standard
391 +x-tuplet:
392 +a 5-tuple of 64th notes with an intended duration of
393 +.I six
394 64ths.
395
396 -In some polyrhythmic scores, the \\txt numeral may be displaced, even if the notes
397 -themselves are correctly spaced. In these cases, it is possible to suppress
398 -the normal output of \\txt by using the non-standard commands \\Triolet (no arguments)
399 -or \\Xtuplet{k}\\
400 -and placing a numeral at the correct location using \\zcn (i.e., \\zcharnote).
401 +In some polyrhythmic scores,
402 +the \etxt numeral may be displaced,
403 +even if the notes themselves are correctly spaced.
404 +In these cases,
405 +it is possible to suppress the normal output of \etxt
406 +by using the non-standard commands \eTriolet
407 +(no arguments)
408 +or \eXtuplet{k}\e
409 +and placing a numeral at the correct location using \ezcn
410 +(i.e., \ezcharnote).
411
412 .B autosp
413 -can deal with simultaneous x-tuplets in multiple staffs provided the x values and
414 -total note durations are identical.
415 -
416 -In some baroque scores, particularly by J.S. Bach, a beamed sixteenth note is vertically aligned
417 -with
418 -the third note of a triplet of eighth notes in another staff (implying that they should
419 -be sounded simultaneously); e.g.,
420 +can deal with simultaneous x-tuplets in multiple staffs
421 +provided the x values and total note durations are identical.
422 +
423 +In some baroque scores,
424 +particularly by J.S.\& Bach,
425 +a beamed sixteenth note is vertically aligned with
426 +the third note of a triplet of eighth notes in another staff
427 +(implying that they should be sounded simultaneously);
428 +e.g.,
429 .nf
430
431 - \\ibl0L0\\qb0{.L}\\tqql0L
432 + \eibl0L0\eqb0{.L}\etqql0L
433
434 .fi
435 -would be played as if notated
436 +would be played as if notated
437 .nf
438
439 - \\uptrio{b}10\\ql L\\hroff{\\cl L}
440 + \euptrio{b}10\eql L\ehroff{\ecl L}
441
442 .fi
443 -The following coding will align the beamed sixteenth note
444 +The following coding will align the beamed sixteenth note
445 with the third note of a triplet in another staff:
446 .nf
447
448 - \\ibl0L0\\qb0{.L}\\hbsk\\tqql0L
449 + \eibl0L0\eqb0{.L}\ehbsk\etqql0L
450
451 .fi
452 and, similarly, for triplets of sixteenth notes:
453 .nf
454
455 - \\ibbu0J0\\qb0{.J}\\hbsk\\nqqqu0J\\qb0{.J}\\hbsk\\tqqqu0J
456 + \eibbu0J0\eqb0{.J}\ehbsk\enqqqu0J\eqb0{.J}\ehbsk\etqqqu0J
457
458 .fi
459 -Generally, user-defined macros are not processed or expanded; however, definitions of the form
460 +Generally, user-defined macros are not processed or expanded;
461 +however, definitions of the form
462 .nf
463
464 - \\def\\atnextbar{\\znotes ... \\en}
465 + \edef\eatnextbar{\eznotes ... \een}
466
467 .fi
468 -generate definitions that do take account of \\TransformNotes.
469 +generate definitions that do take account of \eTransformNotes.
470
471 All staffs are assumed to have the same meter; see kinder2.aspc for
472 an example of how to work around this.
473
474 .B autosp
475 -may not be effective for music with more than one voice in a single staff. It might be
476 -advisable to use a separate staff for each voice, to avoid \\anotes when necessary,
477 -or to omit certain voices
478 -initially and add them into the resulting TeX file.
479 +may not be effective for music with more than one voice in a single staff.
480 +It might be advisable to use a separate staff for each voice,
481 +to avoid \eanotes when necessary,
482 +or to omit certain voices initially
483 +and add them into the resulting TeX file.
484
485 .SH EXAMPLES
486 -See files quod2.aspc, kinder2.aspc, geminiani.aspc and barsant2.aspc for scores suitable for input to
487 +See files quod2.aspc, kinder2.aspc, geminiani.aspc
488 +and barsant2.aspc for scores suitable for input to
489 .BR autosp .
490 The program
491 .B tex2aspc
492 can be used to convert "legacy" MusiXTeX scores to .aspc format.
493
494 .SH SEE ALSO
495 -.BR msxlint (1)
496 -.BR tex2aspc (1)
497 -.PP
498 +.BR msxlint (1),
499 +.BR tex2aspc (1).
500 +.PP
501 musixdoc.pdf
502
503 -.SH AUTHOR
504 +.SH AUTHOR
505 This program and manual page were written by Bob Tennent <[email protected]>.