Debian Codegraph @

utils/autosp/autosp-src/README

raw
1 This is the README for the autosp package,
2 version 2024-07-01.
3
4 autosp is a preprocessor that generates note-spacing
5 commands for MusiXTeX scores. It simplifies the creation
6 of MusiXTeX scores by converting (non-standard) commands
7 of the form \anotes ... \en into one or more conventional
8 note-spacing commands, as determined by the note values
9 themselves, with \sk spacing commands inserted as necessary.
10 The coding for an entire measure can be entered one part at
11 a time, without concern for note-spacing changes within the
12 part or spacing requirements of other parts.
13
14 For example,
15
16 \anotes\qa J\qa K&\ca l\qa m\ca n\en
17
18 generates
19
20 \Notes\qa J\sk\qa K\sk&\ca l\qa m\sk\ca n\en
21
22 The format of \anotes commands is similar to conventional
23 notes commands, except that line breaks and spaces may
24 precede note segments, allowing more flexible source
25 formatting; the line breaks and spaces will be elided from
26 the output.
27
28 If there is a single staff, consecutive whole-bar rest bars
29 are merged into a multi-bar rest. Bar-centered rests can be
30 coded using the standard \def\atnextbar notation but also by
31 using the non-standard command \Cpause (or \Cp) in a note
32 segment.
33
34 Spacing commands \sk and \hsk in the source are discarded,
35 but not \qsk, \hqsk or \qqsk; moreover non-standard commands
36 \Qsk, \TQsk, \HQsk and \QQsk generate "global" skips; i.e., the
37 effect of \qsk, \tqsk, \hqsk or \qqsk in *every* staff.
38
39 A note segment can be completely empty, but if a note
40 segment should start with or contain a "space," the
41 note-value of that space must be made explicit with a
42 command of the form \ha{*}, \qa{.*}, \qa{*}, \ca{*}, etc.
43
44 From version 2017-06-14, the effects of \TransformNotes calls are
45 implemented by the pre-processor. This enables use of autosp with
46 musixlyr.tex, which is incompatible with the musixtnt.tex implementation
47 of \TransformNotes.
48
49 All other conventional MusiXTeX commands are output exactly
50 as given in the input.
51
52 autosp determines the spacing for ordinary notes from the
53 note commands themselves; for example,
54
55 + \qa, \qu, \ql, \qp result in \NOtes;
56 + \ca, \cu, \cl, \ds result in \Notes;
57
58 and so on.
59
60 The spacing for beamed notes is determined by the beam
61 multiplicity: \ib... results in \Notes, \ibb... results in
62 \notes, etc.
63
64 Collective coding of note sequences (including accidentals
65 and dots) is handled by expanding the sequence into a
66 sequence of individual note commands.
67
68 autosp scales notes by the relevant instrument-size value.
69
70 Limitations
71
72 Appoggiaturas and grace notes are recognized by the use of
73 \tinynotesize; note-spacing of 1.45\elemskip is used. If
74 this isn't suitable and can't be corrected with a small
75 skip, a \vnotes command with any desired spacing can be
76 used.
77
78 autosp supports triplets introduced using any of the
79 following commands:
80
81 \triolet
82 \uptrio
83 \downtrio
84 \uptuplet
85 \downtuplet
86
87 and x-tuplets introduced using \xtuplet{x}; however,
88 MusiXTeX notation does not specify the intended duration
89 of an x-tuplet. autosp assumes that an x-tuplet is to be
90 played in (x-1)/x of the apparent x-tuplet duration. So, for
91 example, a triplet in eighths is assumed to be played in
92 the time of one quarter note. If these assumptions aren't
93 valid, the x-tuplet must be coded explicitly using a \vnotes
94 command; see the first measure of barsant2.aspc for an
95 example of a non-standard x-tuplet: a 5-tuple of 64th notes
96 with an intended duration of *six* 64ths.
97
98 User-defined macros are not processed or expanded.
99
100 All staffs are assumed to have the same meter; see
101 kinder2.aspc for an example of how to work around this.
102
103 autosp will not be effective for music with more than one
104 voice in a single staff. It might be advisable to use a
105 separate staff for each voice, or to omit certain voices
106 initially and add them into the resulting TeX file.
107
108 See files quod2.aspc, kinder2.aspc, geminiani.aspc and
109 barsant2.aspc for scores suitable for input to autosp.
110 musixtex.tex version 1.21 or later is needed.
111
112 Included in the autosp package is a small utility rebar that
113 reads a MusiXTeX score and generates a copy with bar-number
114 comments of the form %barno appended to commands such as
115 \bar, \alaligne, etc. replacing any existing comments.
116 Bar-numbering in the MusiXTeX output is not affected
117
118 Also included is the program tex2aspc which re-factors
119 conventional MusiXTeX scores to aspc format suitable for
120 autosp pre-processing by merging every conventional notes
121 commands in a measure into a single \anotes command.
122
123 To install the autosp package, install documentation and
124 examples.
125
126 On Windows, install the relevant binaries on the PATH of
127 executables.
128
129 On Unix-like systems, unpack the .tar.gz archive, and
130 compile and install using the sequence
131
132 ./configure && make && sudo make install
133
134 autosp is licensed under the GPL, version 2 or (at your
135 option) any later version.
136
137 Bob T.
138 rdtennent(at)gmail(dot)com