| 1 |
%&plain |
| 2 |
%% This is a short write-up for bagpipe.tex |
| 3 |
%% Process this file with TeX using the plain format. |
| 4 |
% Computer modern fonts are used. Change the following three lines |
| 5 |
% if other fonts must be substituted. |
| 6 |
\font\twelverm=cmr12 scaled\magstephalf |
| 7 |
\font\twelvebf=cmbx12 scaled\magstephalf |
| 8 |
\font\fourteenrm=cmbx12 scaled\magstep1 |
| 9 |
% |
| 10 |
\def\bsl#1{{\twelvebf$\backslash$#1}} |
| 11 |
\twelverm |
| 12 |
\baselineskip=16pt |
| 13 |
% |
| 14 |
{\fourteenrm\centerline{Using bagpipe.tex}} |
| 15 |
\bigskip |
| 16 |
\leftline{\twelvebf 1. Introduction}% |
| 17 |
|
| 18 |
\bigskip |
| 19 |
|
| 20 |
Bagpipe.tex is a macro-package for use on top of MusicTeX, or |
| 21 |
MusixTeX, which are |
| 22 |
macro-packages for use with TeX or LaTeX. TeX is a language |
| 23 |
designed for typesetting technical documents. It is public domain and |
| 24 |
is available for most platforms. Musi(c$|$x)TeX were written and are maintained |
| 25 |
by Daniel Taupin. They are available via anonymous ftp at |
| 26 |
the CTAN sites and the Werner Icking Music Archive (WIMA). |
| 27 |
WIMA is also a good place to find installation instructions. |
| 28 |
Bagpipe.tex itself is available via WWW from |
| 29 |
http://www.stanford.edu/\~ wrinnes/bagpipe.tex/. |
| 30 |
Musi(c$|$x)TeX files are usually found in MSDOS$|$Windows format, and bagpipe.tex |
| 31 |
files in UNIX format. If you transfer them in binary mode |
| 32 |
(as you would for a compressed TAR or zip file), you may have |
| 33 |
to do some conversion to get the carriage returns and line feeds |
| 34 |
correct. TeX itself is not too fussy about such things, but a |
| 35 |
platform which doesn't see a line break in the files may cause TeX |
| 36 |
to choke (this happens on MACs if you don't convert the sources). |
| 37 |
|
| 38 |
This write-up is for version 3.02. Version 3.02 of bagpipe.tex |
| 39 |
works with version 5.20 of MusicTeX and version T.89 of MusixTeX. |
| 40 |
Since it redefines a few Musi(c$|$x)TeX macros, it may not work |
| 41 |
with later versions without modification. It will not work with |
| 42 |
versions of MusicTeX before 4.7. Musi(c$|$x) TeX are designed to |
| 43 |
set complex multi-part scores. As a result, as delivered, |
| 44 |
typesetting bagpipe music is needlessly tedious. So, as suggested |
| 45 |
by Taupin in his write-up, I have written macros for commonly |
| 46 |
recurring complex codings. The result is that very few |
| 47 |
Musi(c$|$x)TeX macros appear directly in a score set with |
| 48 |
bagpipe.tex. Nevertheless, one should read Taupin's documentation |
| 49 |
to get an understanding of Musi(c$|$x)TeX's mode of operation and |
| 50 |
to find those macros which {\twelvebf are} used. I will not |
| 51 |
describe any Musi(c$|$x)TeX macros except when they interact with |
| 52 |
bagpipe.tex macros. |
| 53 |
|
| 54 |
MusixTeX differs from MusicTeX in that it relies on a three pass |
| 55 |
system to adjust the spacing instead of glue (stretchable space). |
| 56 |
MusixTeX is also the version under active development and has |
| 57 |
many features which MusicTeX does not. Most of these are |
| 58 |
irrelevant for bagpipe music. As of version 3.02, MusixTeX is the |
| 59 |
default. To revert to MusicTeX, comment out the line:\hfil\break |
| 60 |
\bsl{let}\bsl{usemusixtex}\bsl{relax}\%\ this sets the flag to use MusixTeX instead of MusicTeX,\hfil\break |
| 61 |
which is located near the beginning of the bagpipe.tex file. |
| 62 |
|
| 63 |
|
| 64 |
Permission is granted to use bagpipe.tex according to the |
| 65 |
LaTeX Project Public License, LPPL version 1.3, which may be found |
| 66 |
at\hfil\break http://www.ctan.org/license/lppl1.3 . |
| 67 |
|
| 68 |
\bigskip |
| 69 |
\leftline{\twelvebf 2. Basic definitions, melody notes.}% |
| 70 |
|
| 71 |
\bigskip |
| 72 |
|
| 73 |
The (usually) single part and limited range of bagpipe music allows for simplification. |
| 74 |
There are two schemes for indicating pitch. The default is the |
| 75 |
new scheme in which |
| 76 |
pitch values are designated by one of N, a, b, c, d, e, f, g, h. |
| 77 |
|
| 78 |
In the following |
| 79 |
I will represent one of these by x. To specify a pitch one types |
| 80 |
x or \bsl{x}. |
| 81 |
In forming macro names G may be used in place of N and A may be |
| 82 |
used in place of h. These last alternates may also be used for |
| 83 |
pitches providing a leading \bsl\ is used. |
| 84 |
An alternative scheme may invoked by \bsl{oldpitch}. In this |
| 85 |
alternate scheme the pitch values are designated by one of |
| 86 |
g, a, b, c, d, e, f, G, or A. A a leading \bsl\ is required. |
| 87 |
The new scheme may be |
| 88 |
restored at any time with a \bsl{newpitch}. In the examples in the |
| 89 |
rest of this note I will use the new scheme as do the sample |
| 90 |
tunes. |
| 91 |
|
| 92 |
To specify an isolated (not connected to a beam) melody note |
| 93 |
type \bsl{whx} for a whole note, \bsl{hx} for a half note, |
| 94 |
\bsl{qlx} for a quarter note, |
| 95 |
\bsl{cx} for an eighth note, \bsl{sx} for a sixteenth note, \bsl{tx} for a thirty-second |
| 96 |
note, and \bsl{sfx} for sixty-fourth note. Dotted melody notes are specified |
| 97 |
\bsl{hp x}, \bsl{qlp x}, \bsl{cp x}, \bsl{sp x}, \bsl{tp x}, \bsl{sfp}. |
| 98 |
Similarly, \bsl{hpp x}, \bsl{qlpp x}, and \bsl{cpp x} |
| 99 |
are used for double dotted notes. |
| 100 |
Beamed notes are specified as arguments of beam macros which will be described below. |
| 101 |
The arguments are \bsl{bx} for a plain note, \bsl{bxp} |
| 102 |
for a dotted note, and \bsl{bxpp} for a double dotted note. |
| 103 |
The time value is controlled by the beam macro. |
| 104 |
|
| 105 |
|
| 106 |
\bigskip |
| 107 |
\leftline{\twelvebf 3. Embellishments.}% |
| 108 |
|
| 109 |
\bigskip |
| 110 |
|
| 111 |
The big breakthrough in MusicTeX was to make possible arbitrary grace |
| 112 |
note sequences. I have coded macros for all the common and many not so |
| 113 |
common bagpipe grace notes and embellishments. |
| 114 |
These macros specify only the grace notes proper and not the |
| 115 |
following melody notes. Simple grace notes and strikes |
| 116 |
are entered as \bsl{grx}. |
| 117 |
Doublings are \bsl{dblx}, half doublings \bsl{hdblx}, thumb doublings |
| 118 |
\bsl{tdblx}, and slurred doublings \bsl{sdblx}. |
| 119 |
The throw on D is \bsl{thrwd} |
| 120 |
and on f is \bsl{thrwf}, the |
| 121 |
grip is \bsl{grip}, and the grip from d is \bsl{dgrip}. |
| 122 |
The \bsl{thrwf} is the same as the dare \bsl{dare}. |
| 123 |
There is also a grip-throw on D (with an extra low G), \bsl{gripthrwd}. |
| 124 |
The half throw on d is \bsl{hthrwd} and the throw on d from low G |
| 125 |
is \bsl{Nthrwd}. The grip from low G is \bsl{Ngrip}. |
| 126 |
The note sequences specified by these grips are often called |
| 127 |
by other names in particular contexts such as throws or leumluaths. |
| 128 |
I have not defined many such synonyms. |
| 129 |
When coding, look at what grace notes are |
| 130 |
actually there, not at the surrounding melody notes. |
| 131 |
The taorluath is \bsl{taor}, |
| 132 |
the taorluath from g is \bsl{gtaor}, and from d \bsl{dtaor}. |
| 133 |
The half taorluath from low A is \bsl{ahtaor}. |
| 134 |
The birl is \bsl{birl}, |
| 135 |
the strong birl \bsl{sbirl}, the weak birl \bsl{wbirl}, and the thumb birl |
| 136 |
\bsl{tbirl}. |
| 137 |
The slurs take x values a to f only. |
| 138 |
They are the slur \bsl{slurx}, half slur \bsl{hslurx}, and the |
| 139 |
thumb slur \bsl{tslurx}. |
| 140 |
In all of the slurs, ``slap'' may be used in place of ``slur''. |
| 141 |
Similarly shakes are \bsl{shkx} for x from a to g. |
| 142 |
There are also half shakes \bsl{hskx} and thumb shakes \bsl{tshkx}. |
| 143 |
Note that for a, b, c, and e |
| 144 |
shakes and slurs are the same. |
| 145 |
I have not defined such a synonym. |
| 146 |
There are slurred doublings \bsl{sdblx}, slurred half doublings |
| 147 |
\bsl{shdblx}, and slurred thumb doublings \bsl{stdblx}. There are the |
| 148 |
shaken doubling and thumb doubling on d \bsl{shkdbld}, \bsl{shtdbld}. |
| 149 |
|
| 150 |
Some less commonly used embellishments are the double grace notes |
| 151 |
\bsl{ydgrx} where y goes from d to t (t instead h), the double |
| 152 |
strikes \bsl{dstrx}, strong double strikes \bsl{gdstrx}, thumb |
| 153 |
double strikes \bsl{tdbstrx}, and the half double strikes |
| 154 |
\bsl{hdbstrx}. There is also the special case of the light |
| 155 |
half doulbe strike on D \bsl{lhdbstrd}. In exactly the same |
| 156 |
pattern as the double strikes there are triple strikes |
| 157 |
\bsl{tstrx}, etc. For x=b,c,d,e there are the pele's, sometimes |
| 158 |
called hornpipe shakes \bsl{pelx}, \bsl{tpelx}, \bsl{hpelx}, |
| 159 |
\bsl{lpeld}, \bsl{ltpeld}, and \bsl{lhpeld}. For d and e these |
| 160 |
are the same as the slurred doublings. For x values of a through d there are |
| 161 |
catches \bsl{catchx}, strong catches \bsl{scatchx}, and |
| 162 |
thumb catches \bsl{tcatchx}. |
| 163 |
|
| 164 |
Note that some named movements such as tachums are |
| 165 |
not represented here because they consist of a combination of grace and |
| 166 |
melody notes. They need to be broken down for type setting. |
| 167 |
|
| 168 |
|
| 169 |
Piobaireachd embellishments include |
| 170 |
the crunluaths \bsl{crun}, \bsl{crunf}, \bsl{ahcrun}, \bsl{dcrun}, |
| 171 |
\bsl{Nhcrun}, |
| 172 |
crunluath an machs \bsl{crunmb}, |
| 173 |
\bsl{crunmc}, \bsl{crunmd}. |
| 174 |
The crunluath breabachs are \bsl{crunbr}, \bsl{dcrunbr}, |
| 175 |
\bsl{ahcrunbr}. |
| 176 |
\bsl{chelalho}, and the darodos \bsl{darodo} and \bsl{Ndarodo}. |
| 177 |
``darodo'' may be replaced by ``bubbly''. The \bsl{crunmd} is the same as |
| 178 |
the edre on d \bsl{edred}. There also the dre \bsl{dre}, |
| 179 |
the edre \bsl{edre}, and edre's on b and c \bsl{edrex}. |
| 180 |
Other dre's and dare's are \bsl{gedre}, \bsl{gdare}, \bsl{tedre}, |
| 181 |
bsl{tdare}, \bsl{Nedre}, \bsl{aedre}, \bsl{hdre}, \bsl{hedale}, |
| 182 |
\bsl{hchechere}, \bsl{hedari}, \bsl{tchechere}. |
| 183 |
|
| 184 |
The piobaireachd throws are \bsl{enbain}, \bsl{otro}, \bsl{odro}, |
| 185 |
\bsl{adela}, and similarly with leading g or t for the strong or |
| 186 |
thumb variations. |
| 187 |
There are also \bsl{dbstf} and \bsl{dbsth}. |
| 188 |
Special piobaireachd throws on D are \bsl{tra}, and |
| 189 |
\bsl{trac}. Themal grace notes are coded \bsl{themx} and echo notes |
| 190 |
\bsl{echox}. |
| 191 |
The cadences are coded \bsl{cadxx} or \bsl{cadxxx}. The retarded |
| 192 |
variations are \bsl{fcadxx} or \bsl{fcadxx}. |
| 193 |
|
| 194 |
If your favorite embellishment is not (?!!) included, note that |
| 195 |
any set notes may turned into grace notes using them as the |
| 196 |
argument of \bsl{ggr}$\{\}$. |
| 197 |
For the standard thirty second note embellishments, you can use the |
| 198 |
\bsl{multigr} and \bsl{smultigr} macros. See the bagpipe.tex |
| 199 |
source for many examples. |
| 200 |
|
| 201 |
Versions 2.00 and later offer a different means of generating grace note spacing. |
| 202 |
This option is invoked by \bsl{newgrace} or \bsl{multipart}. A |
| 203 |
byproduct is that the afterruleskip can be be restored to closer |
| 204 |
to the MusicTeX standard value making typesetting somewhat easier. |
| 205 |
The old (default) scheme may be restored |
| 206 |
with the macro \bsl{oldgrace}. |
| 207 |
Good practice would dictate that you put one or the |
| 208 |
other at the beginning of each piece to prevent problems if you |
| 209 |
later mix sources or the default changes in a future version. |
| 210 |
I recommend the new mechanism. |
| 211 |
|
| 212 |
\bigskip |
| 213 |
\leftline{\twelvebf 4. Beamed note pairs.} |
| 214 |
|
| 215 |
\bigskip |
| 216 |
|
| 217 |
Because of there being only two notes, the location and slopes of beams for |
| 218 |
note pairs may be calculated from the note pitches. This allows for |
| 219 |
comparatively simple entry. Here I describe a group of macros for |
| 220 |
specifying these note pairs. They all have the form \bsl{pd...d} where |
| 221 |
there two to four d's. d represents either a note length (c, s, or t) |
| 222 |
, p indicating that the previous note is dotted, |
| 223 |
or g for a grace note. For each d (except p) the macro requires an appropriate |
| 224 |
argument. Note lengths require a pitch value x and a g requires |
| 225 |
any grace note macro, e.g. \bsl{grx}. An example of use is \bsl{pcps ab} which |
| 226 |
would set a dotted eighth note at pitch a beamed to a sixteenth note |
| 227 |
at pitch b. Another is \bsl{psgcp b}\bsl{grd c} which sets a sixteenth note at pitch |
| 228 |
b followed by a d grace note and then a dotted eighth note at pitch c. |
| 229 |
The b and |
| 230 |
the c are connected by a beam. The complete list of macros can be |
| 231 |
determined by looking into bagpipe.tex. All reasonable combinations are |
| 232 |
defined. |
| 233 |
|
| 234 |
\bigskip |
| 235 |
\leftline{\twelvebf 5. More general beamed note groups.} |
| 236 |
|
| 237 |
\bigskip |
| 238 |
|
| 239 |
Combinatorics being what they are, the above approach becomes impractical |
| 240 |
for more than two notes. Also there are a few cases where more flexibility |
| 241 |
is required even for pairs (e.g. sometimes the auto beam code puts the |
| 242 |
beam on top of the grace note !). For these reasons I have defined |
| 243 |
more general macros. These have the form \bsl{bd...d} where there from two to |
| 244 |
four d's. The d's represent time values (c, s, or t). These control the |
| 245 |
beam structure. |
| 246 |
The first three |
| 247 |
arguments specify the beam: starting pitch, ending pitch, and length |
| 248 |
in note spacings. Often the pitches will be those of the starting and |
| 249 |
ending note but may differ for many reasons as you will soon find out. |
| 250 |
The length is an integer from 1 to 9. |
| 251 |
An additional argument is required for each d. In their simplest |
| 252 |
form these arguments are beamed note specifiers \bsl{bx}, or \bsl{bxp}. |
| 253 |
If there |
| 254 |
is a grace note between two melody notes within the beamed group, it |
| 255 |
is specified by replacing the argument for the first melody note by |
| 256 |
$\{$\bsl{bx}\bsl{g}$\}$ or $\{$\bsl{bxp}\bsl{g}$\}$ where \bsl{g} represents any grace note macro. |
| 257 |
An example which might be found in a jig is |
| 258 |
\bsl{bccc cc3}$\{$\bsl{bc}\bsl{grd}$\}$$\{$\bsl{bc}\bsl{gre}$\}$\bsl{bc}. |
| 259 |
Again the complete list |
| 260 |
of macros can be found in the code. It is intended that all |
| 261 |
possibilities are defined up to 4 'd's. Longer beamed groups can be specified if |
| 262 |
the number beams for successive notes (not including the last) are the same. |
| 263 |
This is done by including multiple \bsl{bx} macros within a pair of braces. |
| 264 |
|
| 265 |
A note for TeX neophytes: macro |
| 266 |
names consist of letters only. Thus they are terminated by spaces, \bsl{}'s, |
| 267 |
braces and numbers. |
| 268 |
If a macro requires arguments the processor will take the following |
| 269 |
``tokens'' until a sufficient number have been found to feed to the |
| 270 |
macro. The braces serve to group macros so that they will be counted |
| 271 |
as one argument. |
| 272 |
|
| 273 |
\bsl{bgrx} was a work around for a bug which has been squashed. It has |
| 274 |
been removed. |
| 275 |
|
| 276 |
\bigskip |
| 277 |
\leftline{\twelvebf 6. Multiple parts} |
| 278 |
\bigskip |
| 279 |
|
| 280 |
Version 2.00 introduces the ability to set multiple parts |
| 281 |
(parts as in the melody plus seconds). The |
| 282 |
standard Musi(c$|$x)TeX instrument and staff definitions will work |
| 283 |
(if you invoke \bsl{noautoglue}, see below), but |
| 284 |
if all your parts are on bagpipe, you can use |
| 285 |
\bsl{multipart}$\{$n$\}$ where n is the number of parts. |
| 286 |
Note that \bsl{multipart$\{$1$\}$} is a simple way of setting |
| 287 |
the options for the newgrace note scheme and no autoglue. |
| 288 |
If you are content to line up only the beginning of the beats, |
| 289 |
you can use all bagpipe.tex macros. Otherwise you are on your |
| 290 |
own for beams. Start a bar with \bsl{notes}, set the first beat |
| 291 |
of the bottom part, enter a $|$ then the corresponding beat of the next part. |
| 292 |
Proceed through all the parts and then terminate with a \bsl{etn}. |
| 293 |
Then enter the music for the bottom part of the next beat and continue on. |
| 294 |
Terminate the last beat of the bar with an \bsl{enotes}. |
| 295 |
A bar in a two part, two beat per bar piece would go like: |
| 296 |
|
| 297 |
\bsl{notes}$\ldots|\ldots$\bsl{etn}$\ldots|\ldots$\bsl{enotes}\bsl{xbarre} |
| 298 |
|
| 299 |
If you do go your own way, you may have pending beams in both parts. In |
| 300 |
this case you must specify different beam numbers for the parts. Some |
| 301 |
of the macros have these beam numbers built in. 0 is used by the beam |
| 302 |
macros and 1 is used by the grace note macros, so avoid using these |
| 303 |
in your own beam number assignments. |
| 304 |
|
| 305 |
$|$'s and \&'s mean different things within the music environment than without. |
| 306 |
Thus the typical pattern of defining bars before \bsl{debutmorceau} will not |
| 307 |
work. This can be corrected two ways. The bar definitions can be |
| 308 |
sandwiched by a\hfil\break |
| 309 |
\bsl{catcodesmusic} $\ldots$ \bsl{endcatcodesmusic} pair, |
| 310 |
or the defintions can be put immediately after the \bsl{debutmorceau}. |
| 311 |
If you do the latter, be very careful that there is no extraneous white |
| 312 |
space in the defintions. All definitions should be immediately followed |
| 313 |
by a \bsl{relax}. |
| 314 |
|
| 315 |
An \bsl{enotes} (or \bsl{etn}, \bsl{enn}, \bsl{ttn}) terminates a column of |
| 316 |
notes. Thus none of these can used in the interior of an intended note |
| 317 |
column. If you are building columns by the beat, then there can be none |
| 318 |
of these (and no glue) within the beat. This situation may arise when |
| 319 |
taking existing music for which the parts have been set separately and |
| 320 |
merging them into one multipart setting. |
| 321 |
|
| 322 |
|
| 323 |
\bigskip |
| 324 |
\leftline{\twelvebf 7. Miscellaneous macros.} |
| 325 |
\bigskip |
| 326 |
|
| 327 |
Pick-up notes require some special bookkeeping to keep the bar count correct. |
| 328 |
I have provided the following macro \bsl{pickup}$\{$any pick-up notes$\}$. This |
| 329 |
enters the specified notes, decrements the bar counter, and puts in a bar. |
| 330 |
Unfortunately this puts the bar number on the pick-up bar if this is not the |
| 331 |
first bar in the tune. |
| 332 |
Ending the previous line with \bsl{suspmorceau} and |
| 333 |
using \bsl{reppickup} in the place of \bsl{reprmorceau}\bsl{pickup} will |
| 334 |
fix this problem. It decrements the bar counter before the new line is started, |
| 335 |
thus suppressing the bar number on the pickup bar. An additional complication |
| 336 |
arises if the new line begins with a repeat symbol. In this case |
| 337 |
use \bsl{repreppickup} in place of \bsl{reprmorceau}\bsl{leftrepeat} |
| 338 |
\bsl{pickup}. The details of how these macros behave differ in the |
| 339 |
autoglue and noautoglue schemes. |
| 340 |
|
| 341 |
\bsl{psk}, and \bsl{fsk} provide for small horizontal spaces (they stand for |
| 342 |
point skip and flag skip). They are related to the note width for open |
| 343 |
music and to the note spacing for tight music. |
| 344 |
|
| 345 |
\bsl{Downtext} and \bsl{downtext} put text under the staff. These |
| 346 |
can be used for piobaireached shorthand and large scale repeat |
| 347 |
notations such as {\it Da Capo al Segno}. |
| 348 |
|
| 349 |
\bsl{etn} is the same as |
| 350 |
\bsl{enotes}\bsl{temps}\bsl{notes} which |
| 351 |
inserts some ``glue''. |
| 352 |
Glue stretches when there is space left on the line. I often use this |
| 353 |
after quarter notes and on beat boundaries in general. By default, |
| 354 |
beamed groups have one of these built in, so don't put one in explicitly. |
| 355 |
There is also implicit |
| 356 |
glue before a bar line which can double the glue at this point. To compensate |
| 357 |
one can put \bsl{etn} when the beat ends in a beamed group and |
| 358 |
\bsl{ttn} when it does not. \bsl{ttn} is \bsl{etn}\bsl{etn}. |
| 359 |
Best, turn off this feature with \bsl{noautoglue} and then |
| 360 |
use \bsl{etn} consistently between beats. No autoglue also turns |
| 361 |
\bsl{ttn} into \bsl{etn} so one gets about the same effect autoglue |
| 362 |
or no. \bsl{autoglue} turns autoglue back on. Note that autoglue |
| 363 |
is not compatible with multiple parts and \bsl{multipart} turns it off. |
| 364 |
|
| 365 |
\bsl{normalwidth}, \bsl{medwidewidth}, \bsl{widewidth} set up |
| 366 |
margins for various width layouts and odd and even pages. |
| 367 |
\bsl{normalheight}, \bsl{medtall}, and \bsl{tall} |
| 368 |
set vertical size and margins. |
| 369 |
|
| 370 |
\bsl{Afour} and \bsl{USletter} set the paper size. US letter is the |
| 371 |
default. Note that music optimized for one paper size will not look |
| 372 |
as good (or may not fit at all) on the other. |
| 373 |
|
| 374 |
\bsl{today} inserts the date. \bsl{USdate} and \bsl{Eurodate} specify |
| 375 |
the format. The US order (month day, year) is the default. |
| 376 |
|
| 377 |
\bsl{landscape} is implementation dependent. It will probably work if you |
| 378 |
use dvips by Tom Rokicki. \bsl{realwidewidth} is landscape with |
| 379 |
small margins. |
| 380 |
|
| 381 |
\bigskip |
| 382 |
|
| 383 |
\leftline{\twelvebf 8. Miscellaneous usage notes.} |
| 384 |
|
| 385 |
\bigskip |
| 386 |
|
| 387 |
This section will refer often to Musi(c$|$x)TeX macros. You need to have read |
| 388 |
the Musi(c$|$x)TeX documentation to follow the discussion. |
| 389 |
|
| 390 |
bagpipe.tex \bsl{inputs} the following MusicTeX files: muscinft.tex, |
| 391 |
musictex.tex, and musicvbm.tex or the follwing MusixTeX files:, |
| 392 |
musix.tex and musixcpt.tex. It sets Musi(c$|$x)TeX for single instruments |
| 393 |
and single staff. It adds teenynotes to the font definitions. |
| 394 |
|
| 395 |
I usually use \bsl{meterfrac} for the time signature. You may like to use \bsl{meterC} |
| 396 |
(commonly used for strathspeys) or |
| 397 |
\bsl{allabreve} (commonly used for reels). |
| 398 |
|
| 399 |
I prefer to keep complete control of line breaks. Therefore I use |
| 400 |
\bsl{xbarre}, and \bsl{alaligne} instead of \bsl{barre}. |
| 401 |
I recommend using \bsl{autolines} except when the music is tight. In |
| 402 |
this case the bagpipe.tex command \bsl{setelemq}$\{$f$\}$ |
| 403 |
will set the elementary |
| 404 |
note spacing to f times the quarter note width. f=1.2 is the smallest |
| 405 |
value that looks decent. |
| 406 |
|
| 407 |
TeX treats any number of consecutive spaces, carriage returns, and line |
| 408 |
feeds as ``white space''. White space which terminates a macro name |
| 409 |
is eaten and has no further effect. Other white space will insert a space |
| 410 |
and some ``glue'' in the document. Because Musi(c$|$x)TeX does not know |
| 411 |
about this space, any pending beams or slurs |
| 412 |
will be messed up. Therefore it is best, within the music, |
| 413 |
to avoid all white space that |
| 414 |
is not needed to terminate a macro name. |
| 415 |
To accomplish this, lines which do not end with a macro name should |
| 416 |
be terminated with a \bsl{relax} command. |
| 417 |
|
| 418 |
Musi(c$|$x)TeX does not like to tie notes that are closer than 2.3 |
| 419 |
quarternote-head widths. If the music is tightly set, extra |
| 420 |
space must be inserted between tied notes using \bsl{sk}, |
| 421 |
\bsl{fsk}, or \bsl{psk}. A dot on the first tied note counts as |
| 422 |
space. Expanded glue does not. |
| 423 |
If the tied note is the last one in a beamed group, the |
| 424 |
\bsl{psk} should be grouped with that final note by using braces. |
| 425 |
|
| 426 |
Musi(c$|$x)TeX appears to have a roundoff problem when constructing |
| 427 |
sloped beams with more than three notes. As a result there are |
| 428 |
sometimes little bumps and for certain note spacings near |
| 429 |
\bsl{setelemq}$\{$1.7$\}$\ small gaps appear. The problems are |
| 430 |
worst at low resolution such as with a previewer. Work-arounds |
| 431 |
are: avoid the gap producing note spacing, print at as |
| 432 |
high a resolution as is available, don't use excessive |
| 433 |
beam slopes. |
| 434 |
|
| 435 |
In previous versions bagpipe.tex and by default in this version |
| 436 |
(i.e. unless |
| 437 |
you invoke \bsl{newgrace} or \bsl{multipart}), |
| 438 |
the after bar spacing is quite small to keep the |
| 439 |
distance from the bar to |
| 440 |
the first grace notes from being too large. |
| 441 |
If the bar began with a theme note, this resulted |
| 442 |
in too small a spacing, thus requiring that the |
| 443 |
bar begin with a \bsl{sk} or \bsl{psk} to alleviate this. |
| 444 |
This value is determined by |
| 445 |
\bsl{stdafterruleskip}. The Musi(c$|$x)TeX default is 4\bsl{Internote}. |
| 446 |
The default bagpipe.tex value is \bsl{Internote}. |
| 447 |
\bsl{newgrace} uses a different mechanism to set grace note |
| 448 |
spacing and does not suffer to the same degree. |
| 449 |
The \bsl{newgrace} value of \bsl{stdafterruleskip} is 3\bsl{Internote}. |
| 450 |
A similar problem can still occur between any pair of theme notes which |
| 451 |
do not have an embellishment in between. The solution is similar. |
| 452 |
|
| 453 |
In some tunes, it is difficult to squeeze four bars on a line. |
| 454 |
It may be better to just give up and use more paper. |
| 455 |
If you wish to persist, here are some techniques to save space. |
| 456 |
Set the width to \bsl{widewidth}. Set the \bsl{setelemq} to a number like 1.1. |
| 457 |
Use landscape or \bsl{realwidewidth}. Eliminate beginning of line bars |
| 458 |
unless there is a repeat on other than the |
| 459 |
first part. Use the reppickup macros. Use \bsl{musicsize}$=$16. |
| 460 |
|
| 461 |
Bagpipe.tex can be used by putting a \bsl{input bagpipe} at the |
| 462 |
beginning of your file. MusixTeX is the default. To use MusicTeX, |
| 463 |
the bagipe.tex file must be modified as described above. |
| 464 |
Alternatively, you can generate and use a bagpipe.fmt or a |
| 465 |
bagpipex.fmt file. The file bagpipe.ini may be used as the argument |
| 466 |
of initex to generate bagpipe.fmt (after the above modification to bagpipe.tex) |
| 467 |
and bagpipex.ini used to generate bagpipex.fmt. |
| 468 |
|
| 469 |
\bigskip |
| 470 |
\leftline{\twelvebf 9. MusixTex} |
| 471 |
|
| 472 |
The MusixTeX option is now the default. You may not shift between |
| 473 |
MusixTeX and MusicTeX in the same job. |
| 474 |
Be sure to read the fine MusixTeX manual. |
| 475 |
I give here a brief summary of the |
| 476 |
operation of MusixTeX and how it affects bagpipe.tex. |
| 477 |
On the first pass of MusixTeX over tune.tex, MusixTeX |
| 478 |
(via bagpipe.tex) generates |
| 479 |
a file tune.mx1 which contains the length of each line. The |
| 480 |
program musixflx is invoked to generate tune.mx2, which |
| 481 |
contains spatial scale factors for each line. A second |
| 482 |
pass of MusixTeX uses tune.mx2 (if available) to generate |
| 483 |
the final output. In principle, all the fussing needed to |
| 484 |
get good spacing with MusicTeX is done for you. For this |
| 485 |
to work, MusixTeX needs to know about ALL the space in the |
| 486 |
music. There must be NO extraneous white space. See the |
| 487 |
MusixTeX for descriptions of the likely symptoms and |
| 488 |
cures for extraneous space problems. |
| 489 |
|
| 490 |
This scheme can result in music which looks significantly |
| 491 |
different than with MusicTeX. In MusicTeX, only the glue |
| 492 |
is adjusted to fill out a line. In MusixTeX all spacing |
| 493 |
is adjusted. Glue is forbidden as are hard (not adjusted by |
| 494 |
musixflx) spaces. Putting glue on the beats and keeping the |
| 495 |
music within a beat relatively compact, gives results |
| 496 |
more in accord with usual bagpipe music setting practice than |
| 497 |
does MusixTeX. On the other hand, the MusixTeX scheme permits |
| 498 |
better looking ties because they don't have to stretch. |
| 499 |
|
| 500 |
Another area of different results peculiar to bagpipe music |
| 501 |
is the spacing of complex embellishments. Stretching the spaces |
| 502 |
within an embellishment can look ugly. This was a problem with |
| 503 |
the old grace note scheme that was cured with the new grace |
| 504 |
note scheme in MusicTeX. The fixed space used by the new grace |
| 505 |
scheme is not permitted by MusixTeX. For the old grace note |
| 506 |
scheme I just let them stretch. In the new grace note scheme |
| 507 |
I put the extra space before the embellishment and keep the |
| 508 |
embellishment itself compact. This may cause ugliness if |
| 509 |
the stretch is too large or too small. |
| 510 |
|
| 511 |
The musixtex option in bagpipe.tex \bsl{inputs} musixtex.tex |
| 512 |
and musixcpt.tex. The latter contains macros for compatibility |
| 513 |
with MusicTeX. Most of these are synonyms for macros whose |
| 514 |
names changed (usually to English from French) in MusixTeX. |
| 515 |
For a few such as \bsl{autolines}, the actual function has |
| 516 |
changed due to the fundamental difference between the packages. |
| 517 |
The default MusicTeX version has a number of synonyms for MusixTeX |
| 518 |
macros as an aid to backward compatibility for tunes coded in |
| 519 |
MusixTeX. These cover only a few of the most likely to be |
| 520 |
used macros and of course functions unique to MusixTeX cannot |
| 521 |
be handled by MusicTeX. If you care about other people |
| 522 |
using your settings, I recommend using the MusicTeX versions |
| 523 |
so that code is compatible with older bagpipe.tex versions. |
| 524 |
The synonyms are: \hfil\break |
| 525 |
\bsl{en}~= \bsl{enotes},\hfil\break |
| 526 |
\bsl{instrumentnumber}~= \bsl{nbinstruments},\hfil\break |
| 527 |
\bsl{startpiece}~= \bsl{debutmorceau},\hfil\break |
| 528 |
\bsl{bar}~= \bsl{barre},\hfil\break |
| 529 |
\bsl{itie}~= \bsl{iten},\hfil\break |
| 530 |
\bsl{ttie}~= \bsl{tten},\hfil\break |
| 531 |
\bsl{contpiece}~= \bsl{reprmorceau},\hfil\break |
| 532 |
\bsl{stoppiece}~= \bsl{suspmorceau},\hfil\break |
| 533 |
\bsl{Stoppiece}~= \bsl{finmorceau},\hfil\break |
| 534 |
\bsl{Endpiece}~= \bsl{finmorceau},\hfil\break |
| 535 |
\bsl{leftrepeat}~= \bsl{leftrepeatsymbol},\hfil\break |
| 536 |
\bsl{rightrepeat}~= \bsl{rightrepeatsymbol},\hfil\break |
| 537 |
\bsl{setstaffs}1\#2~= \bsl{nbporteesi}\#2. |
| 538 |
|
| 539 |
\bigskip |
| 540 |
\leftline{\twelvebf 10. Concluding comments.} |
| 541 |
|
| 542 |
\bigskip |
| 543 |
|
| 544 |
The best way to understand this guide is to preview and study the |
| 545 |
examples. The ``example'' entitled quickref.tex is a sample sheet. |
| 546 |
It is often convenient to define a macro for each bar of music. |
| 547 |
Many definitions will then consist of previous bars, and the |
| 548 |
music proper will be mostly a list of bar macros. |
| 549 |
Using the template files and a good cut and paste type editor |
| 550 |
will save a lot of time. |
| 551 |
I have found that with practice it takes between |
| 552 |
one half and one hour to type-set a complex four part 6/8 march. |
| 553 |
This includes proofing and adjusting. |
| 554 |
A simple two part 3/4 march can be done in less than fifteen minutes. |
| 555 |
Send any comments, suggestions, or bug reports |
| 556 |
to [email protected] . |
| 557 |
|
| 558 |
\vskip 0.5in |
| 559 |
Good luck and happy piping, |
| 560 |
|
| 561 |
Walt Innes |
| 562 |
|
| 563 |
\bye |