| 1 |
%%% |
| 2 |
%%% TeXChord. Macros for typesetting guitar-chord diagrams. |
| 3 |
%%% Version 0.8. |
| 4 |
%%% |
| 5 |
%%% (C) Copyright 1993 by Joel M. Hoffman <[email protected]> |
| 6 |
%%% |
| 7 |
%%% |
| 8 |
%%% Unlimited non-comercial use is hereby granted. Any comercial use |
| 9 |
%%% requires permission from the author. For information on how |
| 10 |
%%% to contact the author, see below. |
| 11 |
%%% |
| 12 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 13 |
%%% |
| 14 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 15 |
%%% |
| 16 |
%%% This package defines macros for producing guitar-chord diagrams |
| 17 |
%%% with TeX. In general, the command to produce a chord pattern |
| 18 |
%%% consists of three parts: the chord name, modifiers, and the |
| 19 |
%%% string ``chord.'' Upper-case letters are used for Major and |
| 20 |
%%% lower-case letter for minor. Possible modifiers are ``s'' for |
| 21 |
%%% ``seven,'' ``sh'' for ``sharp,'' ``f'' for ``flat'' and ``S'' |
| 22 |
%%% for ``major seven.'' When they are mixed, the incidentals |
| 23 |
%%% (sharp, flat) preceed the others. |
| 24 |
%%% |
| 25 |
%%% So, for example, \Cchord is a simple C-major chord; \cshchord is |
| 26 |
%%% a c-sharp-minor chord; \DshSchord is a D-sharp-major-seven chord. |
| 27 |
%%% As of version 0.8, I have not entered all of the possible chord |
| 28 |
%%% patterns. See the end of this file for examples of how to add |
| 29 |
%%% chords of your own. |
| 30 |
%%% |
| 31 |
%%% I have included the chord patterns I usually use; your |
| 32 |
%%% choices for some obscure chords may vary. Again, you can add |
| 33 |
%%% your own chords by copying the examples at the end of this file. |
| 34 |
%%% |
| 35 |
%%% I have included both sharps and flats for every chord, even |
| 36 |
%%% though some are seldom used (C-flat comes to mind). As of |
| 37 |
%%% version 0.8, many chords are still missing. Sorry. |
| 38 |
%%% |
| 39 |
%%% In addition to the chord macros themselves, the following |
| 40 |
%%% ``control'' commands are provided: |
| 41 |
%%% |
| 42 |
%%% \bigchords Use big chord patterns. |
| 43 |
%%% \smallchords Use small chord patterns. |
| 44 |
%%% \raisedchords Place chords over text at current location. |
| 45 |
%%% \textchords Place chords in current text. |
| 46 |
%%% |
| 47 |
%%% For example, if you wanted to discuss chords, you might say: |
| 48 |
%%% |
| 49 |
%%% \smallchords\textchords This is how a C-chord is played: \Cchord. |
| 50 |
%%% |
| 51 |
%%% On the other hand, in music, you might use: |
| 52 |
%%% |
| 53 |
%%% \bigchords\raisedchords \Dchord This is played with a D-chord. |
| 54 |
%%% |
| 55 |
%%% \bigchords\raisedchords is the default. |
| 56 |
%%% |
| 57 |
%%% I don't know how reliable the \raisedchords is. You may have |
| 58 |
%%% to tweek the definition of \raisedchords at the end of this |
| 59 |
%%% file if you are not using 10pt text. |
| 60 |
%%% |
| 61 |
%%% Other dimentions you can freely change are \chordheight and |
| 62 |
%%% \chordwidth. Be sure to do so both in the initialization and |
| 63 |
%%% in the definitions of \bigchords and \smallchords. Also |
| 64 |
%%% change \extchordheight to match \chordheight. Feel free to |
| 65 |
%%% change the fonts, too. |
| 66 |
%%% |
| 67 |
%%% |
| 68 |
%%% --> I would like to thank Merri Lovinger Arian, a long time friend |
| 69 |
%%% --> and my guitar teacher, without whom I would never have learned |
| 70 |
%%% --> the joy of guitar. |
| 71 |
%%% |
| 72 |
%%% |
| 73 |
%%% |
| 74 |
%%% By version 1.0, this package will also have better provisions |
| 75 |
%%% for bar-chords; provisions for optionally printing the name of |
| 76 |
%%% the chord to the left of (instead of above) the diagram; |
| 77 |
%%% provisions for printing fret-numbers to the left of the |
| 78 |
%%% diagrams, instead of the hideously ugly extended patterns; |
| 79 |
%%% provisions for printing little x's and o's atop the chord |
| 80 |
%%% patterns to indicate which strings are sounded. Also, the |
| 81 |
%%% code will be cleaned up and commented. |
| 82 |
%%% |
| 83 |
%%% Other bugs include numerous spacing problems, most notably in |
| 84 |
%%% f-minor chords. |
| 85 |
%%% |
| 86 |
%%% |
| 87 |
%%% If you have suggestions, or bug-fixes, please let me know |
| 88 |
%%% |
| 89 |
%%% |
| 90 |
%%% You can reach me, the author of this package at: |
| 91 |
%%% |
| 92 |
%%% Internet: [email protected] -or- [email protected] |
| 93 |
%%% Compuserve: 72700,402 |
| 94 |
%%% USPSnet: Joel Hoffman |
| 95 |
%%% 1703 Mt. Pisgah Le. #23 |
| 96 |
%%% Silver Spring, MD 20903 |
| 97 |
%%% USA |
| 98 |
%%% |
| 99 |
%%% Smile and be happy. Like this: o o |
| 100 |
%%% > |
| 101 |
%%% \__/ |
| 102 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 103 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 104 |
|
| 105 |
|
| 106 |
\newdimen\chordwidth\chordwidth=.28in |
| 107 |
\newdimen\chordheight\chordheight=.3in |
| 108 |
\newdimen\extchordheight\extchordheight=.525in % 7/4 of \chordheight |
| 109 |
\newdimen\chordlinewidth\chordlinewidth=.3pt |
| 110 |
\newdimen\chordbaselinewidth\chordbaselinewidth=1pt |
| 111 |
\newdimen\chordraise\chordraise=2pt |
| 112 |
\font\chordmarkfont=cmsy8\def\chordchar{\char15} |
| 113 |
\font\chordnamefont=cmr12 |
| 114 |
\font\chordnamesfont=cmr8 |
| 115 |
\font\chordsymfont=cmmi8 |
| 116 |
|
| 117 |
\newdimen\chordi\newdimen\chordj\newdimen\chordk |
| 118 |
\newcount\chordl |
| 119 |
|
| 120 |
\def\bigchords{\chordwidth=.28in\chordheight=.3in\extchordheight=.525in\chordlinewidth=.3pt\chordbaselinewidth=1pt\font\chordmarkfont=cmsy8\def\chordchar{\char15}\font\chordnamefont=cmr12\font\chordnamesfont=cmr8\font\chordsymfont=cmmi8\chordraise=3pt} |
| 121 |
|
| 122 |
%\def\smallchords{\chordwidth=.14in\chordheight=.15in\extchordheight=.2625in\chordlinewidth=.15pt\chordbaselinewidth=.5pt\font\chordmarkfont=cmsy5\font\chordnamefont=cmr6\chordraise=1.5pt} |
| 123 |
\def\smallchords{\chordwidth=.14in\chordheight=.15in\extchordheight=.2625in\chordlinewidth=.15pt\chordbaselinewidth=.5pt\font\chordmarkfont=cmr12 scaled \magstep1\def\chordchar{.}\font\chordnamefont=cmr6\font\chordnamesfont=cmr5\font\chordsymfont=cmmi5\chordraise=1.5pt} |
| 124 |
|
| 125 |
\bigchords |
| 126 |
|
| 127 |
\def\vchordrule{{\vrule height \chordheight width \chordlinewidth depth 0pt}} |
| 128 |
\def\extvchordrule{{\vrule height \extchordheight width \chordlinewidth depth 0pt}} |
| 129 |
\def\hchordrule{{\hrule height \chordlinewidth width \chordwidth depth 0pt}} |
| 130 |
\def\basechordrule{{\hrule height \chordbaselinewidth width \chordwidth |
| 131 |
depth 0pt}} |
| 132 |
\def\chordmark{{\chordmarkfont\chordchar}} |
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
\def\finger#1#2{%string, fret |
| 138 |
\chordi=\chordwidth% |
| 139 |
\divide\chordi by 5% |
| 140 |
\chordl=#1\advance\chordl by 0% |
| 141 |
\multiply\chordi by \chordl% |
| 142 |
\chordj=\chordheight% |
| 143 |
\divide\chordj by 4% |
| 144 |
\chordk=.5\chordj% |
| 145 |
\divide\chordk by 2% |
| 146 |
\chordl=#2\advance\chordl by 1% |
| 147 |
\multiply\chordj by \chordl% |
| 148 |
\advance\chordj by \chordk% |
| 149 |
\setbox0\hbox{\chordmark}% |
| 150 |
\chordk=\wd0% |
| 151 |
\multiply\chordk by 10% |
| 152 |
\divide\chordk by 21 %=2.1. 2 doesn't seem to work. Hmmm.% |
| 153 |
\advance \chordi by -\chordk% |
| 154 |
\chordk=\ht0% |
| 155 |
\divide\chordk by 2% |
| 156 |
\advance\chordj by -\chordk% |
| 157 |
% \vskip\chordj\hbox{}\hskip\chordi\chordmark |
| 158 |
% \hskip-\wd0\hskip-\chordi\vskip-\ht0\vskip-\chordj} |
| 159 |
\lower\chordj\hbox{\hskip\chordi\chordmark}% |
| 160 |
\hskip-\wd0\hskip-\chordi} |
| 161 |
|
| 162 |
|
| 163 |
\def\craise#1#2{#1\raise 1ex\hbox{\chordnamesfont #2}} |
| 164 |
\def\minor#1{\craise{#1}{m}} |
| 165 |
\def\seven#1{\craise{#1}{7}} |
| 166 |
\def\Flat#1{\craise{#1}{{\chordsymfont\char91}}} |
| 167 |
\def\Sharp#1{\craise{#1}{{\chordsymfont\char93}}} |
| 168 |
\def\Flatm#1{\craise{#1}{{\chordsymfont\char91}m}} |
| 169 |
\def\Sharpm#1{\craise{#1}{{\chordsymfont\char93}m}} |
| 170 |
\def\minors#1{\craise{#1}{m7}} |
| 171 |
\def\Sharps#1{\craise{#1}{{\chordsymfont\char93}7}} |
| 172 |
\def\Flats#1{\craise{#1}{{\chordsymfont\char91}7}} |
| 173 |
\def\Flatms#1{\craise{#1}{{\chordsymfont\char91}m7}} |
| 174 |
\def\Sharpms#1{\craise{#1}{{\chordsymfont\char93}m7}} |
| 175 |
|
| 176 |
\def\chord#1{\hbox to 0pt{\smash{\offinterlineskip |
| 177 |
\raise\chordraise\hbox to 0pt{\hbox to \chordwidth{\chordnamefont\hss #1 \hss}\hss}% |
| 178 |
\vbox to 0pt{\hbox to 0pt{\hbox to \chordwidth{\vchordrule \hfil \vchordrule \hfil \vchordrule \hfil \vchordrule \hfil \vchordrule \hfil \vchordrule}\hss}\vss}\vbox to 0pt{\vbox to \chordheight{\basechordrule\vfil \hchordrule \vfil \hchordrule \vfil \hchordrule \vfil \hchordrule}\vss}}\hss}} |
| 179 |
\def\emptychord{\chord{}} |
| 180 |
|
| 181 |
\def\extchord#1{\hbox to 0pt{\smash{\offinterlineskip |
| 182 |
\raise\chordraise\hbox to 0pt{\hbox to \chordwidth{\chordnamefont\hss #1 \hss}\hss}% |
| 183 |
\vbox to 0pt{\hbox to 0pt{\hbox to \chordwidth{\extvchordrule \hfil \extvchordrule \hfil \extvchordrule \hfil \extvchordrule \hfil \extvchordrule \hfil \extvchordrule}\hss}\vss}\vbox to 0pt{\vbox to \extchordheight{\basechordrule\vfil \hchordrule \vfil \hchordrule \vfil \hchordrule \vfil \hchordrule \vfil \hchordrule \vfil \hchordrule \vfil \hchordrule}\vss}}\hss}} |
| 184 |
|
| 185 |
% Definition added by Christopher Rath ([email protected]). This macro left justifies |
| 186 |
% the chord-name instead of pseudo centering it. |
| 187 |
\def\lextchord#1{\hbox to 0pt{\smash{\offinterlineskip |
| 188 |
\raise\chordraise\hbox to 0pt{\hbox to \chordwidth{\chordnamefont #1}}% |
| 189 |
\vbox to 0pt{\hbox to 0pt{\hbox to \chordwidth{\extvchordrule \hfil \extvchordrule \hfil \extvchordrule \hfil \extvchordrule \hfil \extvchordrule \hfil \extvchordrule}\hss}\vss}\vbox to 0pt{\vbox to \extchordheight{\basechordrule\vfil \hchordrule \vfil \hchordrule \vfil \hchordrule \vfil \hchordrule \vfil \hchordrule \vfil \hchordrule \vfil \hchordrule}\vss}}\hss}} |
| 190 |
|
| 191 |
% Definition added by Christopher Rath ([email protected]). This macro prints a normal |
| 192 |
% chord picture, except that the top fret-mark is not heavy-weight and it picture |
| 193 |
% prints the top fret-number beside the top fret-mark (this allows chords to be shown |
| 194 |
% that are played ``up the neck''. |
| 195 |
\def\upchord#1#2{\hbox to 0pt{\smash{\offinterlineskip |
| 196 |
\raise\chordraise\hbox to 0pt{\hbox to \chordwidth{\chordnamefont\hss #1 \hss}\hss}% |
| 197 |
\vbox to 0pt{\hbox to 0pt{\hbox to \chordwidth{\vchordrule \hfil \vchordrule \hfil \vchordrule \hfil \vchordrule \hfil \vchordrule \hfil \vchordrule}\hss}\vss}% |
| 198 |
\vbox to 0pt{\vskip1pt\hbox to 0pt{\hskip\chordwidth\hbox{\chordnamesfont ~#2}\hss}\vss}% |
| 199 |
\vbox to 0pt{\vbox to \chordheight{\vfil \hchordrule \vfil \hchordrule \vfil \hchordrule \vfil \hchordrule}\vss}}\hss}} |
| 200 |
|
| 201 |
% Definition added by Christopher Rath ([email protected]). The same function as |
| 202 |
% \upchord, except this is for the \extchord. |
| 203 |
\def\upextchord#1#2{\hbox to 0pt{\smash{\offinterlineskip |
| 204 |
\raise\chordraise\hbox to 0pt{\hbox to \chordwidth{\chordnamefont\hss #1 \hss}\hss}% |
| 205 |
\vbox to 0pt{\hbox to 0pt{\hbox to \chordwidth{\extvchordrule \hfil \extvchordrule \hfil \extvchordrule \hfil \extvchordrule \hfil \extvchordrule \hfil \extvchordrule}\hss}\vss}% |
| 206 |
\vbox to 0pt{\vskip1pt\hbox to 0pt{\hskip\chordwidth\hbox{\chordnamesfont ~#2}\hss}\vss}% |
| 207 |
\vbox to 0pt{\vbox to \extchordheight{\vfil \hchordrule \vfil \hchordrule \vfil \hchordrule \vfil \hchordrule \vfil \hchordrule \vfil \hchordrule \vfil \hchordrule}\vss}}\hss}} |
| 208 |
|
| 209 |
\def\anychord#1{\dochord{\offinterlineskip\relax #1}} |
| 210 |
\def\anyextchord#1{\doextchord{\offinterlineskip\relax #1}} |
| 211 |
|
| 212 |
%Ordinary major chords. |
| 213 |
\def\Afchord{\anychord{\chord{\Flat{A}}\finger{2}{0}\finger{3}{0}\finger{4}{0}\finger{5}{0}\finger{5}{3}}} |
| 214 |
\def\Achord{\anychord{\chord{A}\finger{2}{1}\finger{3}{1}\finger{4}{1}}} |
| 215 |
\def\Ashchord{\anychord{\chord{\Sharp{A}}\finger{0}{0}\finger{1}{0}\finger{2}{0}\finger{3}{0}\finger{4}{0}\finger{5}{0}\finger{2}{2}\finger{3}{2}\finger{4}{2}}} |
| 216 |
\def\Bfchord{\anychord{\chord{\Flat{B}}\finger{0}{0}\finger{1}{0}\finger{2}{0}\finger{3}{0}\finger{4}{0}\finger{5}{0}\finger{2}{2}\finger{3}{2}\finger{4}{2}}} |
| 217 |
\def\Bchord{\anychord{\chord{B}\finger{2}{3}\finger{3}{3}\finger{4}{3}\finger{5}{1}}} |
| 218 |
\def\Cfchord{\anychord{\chord{\Flat{C}}\finger{2}{3}\finger{3}{3}\finger{4}{3}\finger{5}{1}}} |
| 219 |
\def\Bshchord{\anychord{\chord{\Sharp{B}}\finger{1}{2}\finger{2}{1}\finger{4}{0}}} |
| 220 |
\def\Cchord{\anychord{\chord{C}\finger{1}{2}\finger{2}{1}\finger{4}{0}}} |
| 221 |
\def\Cshchord{\anychord{\chord{\Sharp{C}}\finger{1}{3}\finger{2}{2}\finger{3}{0}\finger{4}{0}\finger{4}{1}\finger{5}{0}}} |
| 222 |
\def\Dfchord{\anychord{\chord{\Flat{D}}\finger{1}{3}\finger{2}{2}\finger{3}{0}\finger{4}{0}\finger{4}{1}\finger{5}{0}}} |
| 223 |
\def\Dchord{\anychord{\chord{D}\finger{3}{1}\finger{4}{2}\finger{5}{1}}} |
| 224 |
\def\Dshchord{\anychord{\chord{\Sharp{D}}\finger{2}{0}\finger{3}{2}\finger{4}{3}\finger{5}{2}}} |
| 225 |
\def\Efchord{\anychord{\chord{\Flat{E}}\finger{2}{0}\finger{3}{2}\finger{4}{3}\finger{5}{2}}} |
| 226 |
\def\Echord{\anychord{\chord{E}\finger{1}{1}\finger{2}{1}\finger{3}{0}}} |
| 227 |
\def\Ffchord{\anychord{\chord{\Flat{F}}\finger{1}{1}\finger{2}{1}\finger{3}{0}}} |
| 228 |
\def\Eshchord{\anychord{\chord{\Sharp{E}}\finger{2}{2}\finger{3}{1}\finger{4}{0}\finger{5}{0}}} |
| 229 |
\def\Fchord{\anychord{\chord{F}\finger{2}{2}\finger{3}{1}\finger{4}{0}\finger{5}{0}}} |
| 230 |
\def\Fshchord{\anychord{\chord{\Sharp{F}}\finger{2}{3}\finger{3}{2}\finger{4}{1}\finger{5}{1}}} |
| 231 |
\def\Gfchord{\anychord{\chord{\Flat{G}}\finger{2}{3}\finger{3}{2}\finger{4}{1}\finger{5}{1}}} |
| 232 |
\def\Gchord{\anychord{\chord{G}\finger{0}{2}\finger{1}{1}\finger{5}{2}}} |
| 233 |
\def\Gshchord{\anychord{\chord{\Sharp{G}}\finger{2}{0}\finger{3}{0}\finger{4}{0}\finger{5}{0}\finger{5}{3}}} |
| 234 |
|
| 235 |
%minor chords |
| 236 |
\def\afchord{\anyextchord{\extchord{\Flatm{a}}\finger{0}{3}\finger{1}{3}\finger{2}{3}\finger{3}{3}\finger{4}{3}\finger{5}{3}\finger{1}{5}\finger{2}{5}}} |
| 237 |
\def\achord{\anychord{\chord{\minor{a}}\finger{2}{1}\finger{3}{1}\finger{4}{0}}} |
| 238 |
\def\ashchord{\anychord{\chord{\Sharpm{a}}\finger{0}{0}\finger{1}{0}\finger{2}{0}\finger{3}{0}\finger{4}{0}\finger{5}{0}\finger{2}{2}\finger{3}{2}\finger{4}{1}}} |
| 239 |
\def\bfchord{\anychord{\chord{\Flatm{b}}\finger{0}{0}\finger{1}{0}\finger{2}{0}\finger{3}{0}\finger{4}{0}\finger{5}{0}\finger{2}{2}\finger{3}{2}\finger{4}{1}}} |
| 240 |
\def\bchord{\anychord{\chord{\minor{b}}\finger{2}{3}\finger{3}{3}\finger{4}{2}\finger{5}{1}}} |
| 241 |
\def\cfchord{\anychord{\chord{\Flatm{c}}\finger{2}{3}\finger{3}{3}\finger{4}{2}\finger{5}{1}}} |
| 242 |
\def\bshchord{\anyextchord{\extchord{\Sharpm{b}}\finger{2}{4}\finger{3}{4}\finger{4}{3}\finger{5}{2}}} |
| 243 |
\def\cchord{\anyextchord{\extchord{\minor{c}}\finger{2}{4}\finger{3}{4}\finger{4}{3}\finger{5}{2}}} |
| 244 |
\def\cshchord{\anychord{\chord{\Sharpm{c}}\finger{2}{1}\finger{3}{0}\finger{4}{1}}} |
| 245 |
\def\dfchord{\anychord{\chord{\Flatm{d}}\finger{2}{1}\finger{3}{0}\finger{4}{1}}} |
| 246 |
\def\dchord{\anychord{\chord{\minor{d}}\finger{3}{1}\finger{4}{2}\finger{5}{0}}} |
| 247 |
\def\dshchord{\anychord{\chord{\Sharpm{d}}\finger{2}{3}\finger{3}{2}\finger{4}{3}\finger{5}{1}}} |
| 248 |
\def\efchord{\anychord{\chord{\Flatm{e}}\finger{2}{3}\finger{3}{2}\finger{4}{3}\finger{5}{1}}} |
| 249 |
\def\echord{\anychord{\chord{\minor{e}}\finger{1}{1}\finger{2}{1}}} |
| 250 |
\def\ffchord{\anychord{\chord{\Flatm{f}}\finger{1}{1}\finger{2}{1}}} |
| 251 |
\def\eshchord{\anychord{\chord{\Sharpm{e}}\finger{2}{2}\finger{3}{0}\finger{4}{0}\finger{5}{0}}} |
| 252 |
\def\fchord{\anychord{\chord{\minor{f}}\finger{2}{2}\finger{3}{0}\finger{4}{0}\finger{5}{0}}} |
| 253 |
\def\fshchord{\anychord{\chord{\Sharpm{f}}\finger{0}{1}\finger{1}{1}\finger{2}{1}\finger{3}{1}\finger{4}{1}\finger{5}{1}\finger{1}{3}\finger{2}{3}}} |
| 254 |
\def\gfchord{\anychord{\chord{\Flatm{g}}\finger{0}{1}\finger{1}{1}\finger{2}{1}\finger{3}{1}\finger{4}{1}\finger{5}{1}\finger{1}{3}\finger{2}{3}}} |
| 255 |
\def\gchord{\anyextchord{\extchord{\minor{g}}\finger{2}{4}\finger{3}{2}\finger{4}{2}\finger{5}{2}}} |
| 256 |
\def\gshchord{\anyextchord{\extchord{\Sharpm{g}}\finger{0}{3}\finger{1}{3}\finger{2}{3}\finger{3}{3}\finger{4}{3}\finger{5}{3}\finger{1}{5}\finger{2}{5}}} |
| 257 |
|
| 258 |
%Seventh chords (majors) |
| 259 |
\def\Afschord{\anychord{\chord{\Flats{A}}\finger{1}{2}\finger{2}{3}\finger{3}{0}\finger{4}{3}}} |
| 260 |
\def\Aschord{\anychord{\chord{\seven{A}}\finger{2}{1}\finger{4}{1}}} |
| 261 |
\def\Ashschord{\anychord{\chord{\Sharps{A}}\finger{0}{0}\finger{1}{0}\finger{2}{0}\finger{3}{0}\finger{4}{0}\finger{5}{0}\finger{2}{2}\finger{4}{2}}} |
| 262 |
\def\Bfschord{\anychord{\chord{\Flats{B}}\finger{0}{0}\finger{1}{0}\finger{2}{0}\finger{3}{0}\finger{4}{0}\finger{5}{0}\finger{2}{2}\finger{4}{2}}} |
| 263 |
\def\Bschord{\anychord{\chord{\seven{B}}\finger{1}{1}\finger{2}{0}\finger{3}{1}\finger{5}{1}}} |
| 264 |
\def\Cfschord{\anychord{\chord{\Flats{C}}\finger{1}{1}\finger{2}{0}\finger{3}{1}\finger{5}{1}}} |
| 265 |
\def\Bshschord{\anychord{\chord{\Sharps{B}}\finger{1}{2}\finger{2}{1}\finger{3}{2}\finger{4}{0}}} |
| 266 |
\def\Cschord{\anychord{\chord{\seven{C}}\finger{1}{2}\finger{2}{1}\finger{3}{2}\finger{4}{0}}} |
| 267 |
\def\Cshschord{\anychord{\chord{\Sharps{C}}\finger{2}{2}\finger{3}{3}\finger{4}{1}\finger{5}{3}}} |
| 268 |
\def\Dfschord{\anychord{\chord{\Flats{D}}\finger{2}{2}\finger{3}{3}\finger{4}{1}\finger{5}{3}}} |
| 269 |
\def\Dschord{\anychord{\chord{\seven{D}}\finger{3}{1}\finger{4}{0}\finger{5}{1}}} |
| 270 |
\def\Dshschord{\anychord{\chord{\Sharps{D}}\finger{2}{0}\finger{3}{2}\finger{4}{1}\finger{5}{2}}} |
| 271 |
\def\Efschord{\anychord{\chord{\Flats{E}}\finger{2}{0}\finger{3}{2}\finger{4}{1}\finger{5}{2}}} |
| 272 |
\def\Eschord{\anychord{\chord{\seven{E}}\finger{1}{1}\finger{3}{0}}} |
| 273 |
\def\Ffschord{\anychord{\chord{\Flats{F}}\finger{1}{1}\finger{3}{0}}} |
| 274 |
\def\Eshschord{\anyextchord{\extchord{\Sharps{E}}\finger{2}{2}\finger{3}{4}\finger{4}{5}\finger{5}{4}}} |
| 275 |
\def\Fschord{\anyextchord{\extchord{\seven{F}}\finger{2}{2}\finger{3}{4}\finger{4}{5}\finger{5}{4}}} |
| 276 |
\def\Fshschord{\anychord{\chord{\Sharps{F}}\finger{2}{3}\finger{3}{2}\finger{4}{1}}} |
| 277 |
\def\Gfschord{\anychord{\chord{\Flats{G}}\finger{2}{3}\finger{3}{2}\finger{4}{1}}} |
| 278 |
\def\Gschord{\anychord{\chord{\seven{G}}\finger{0}{2}\finger{1}{1}\finger{5}{0}}} |
| 279 |
\def\Gshschord{\anychord{\chord{\Sharps{G}}\finger{1}{2}\finger{2}{3}\finger{3}{0}\finger{4}{3}}} |
| 280 |
|
| 281 |
%seventh chords (minors) |
| 282 |
|
| 283 |
\def\afschord{\anychord{\chord{\Flatms{a}}\finger{2}{0}\finger{3}{0}\finger{5}{1}}} |
| 284 |
\def\aschord{\anychord{\chord{\minors{a}}\finger{2}{1}\finger{4}{0}}} |
| 285 |
\def\ashschord{\anychord{\chord{\Sharpms{a}}\finger{2}{2}\finger{3}{2}\finger{4}{1}\finger{5}{3}}} |
| 286 |
\def\bfschord{\anychord{\chord{\Flatms{b}}\finger{2}{2}\finger{3}{2}\finger{4}{1}\finger{5}{3}}} |
| 287 |
\def\bschord{\anychord{\chord{\minors{b}}\finger{0}{1}\finger{1}{1}\finger{2}{1}\finger{3}{1}\finger{4}{1}\finger{5}{1}\finger{2}{3}\finger{4}{2}}} |
| 288 |
\def\cfschord{\anychord{\chord{\Flatms{c}}\finger{0}{1}\finger{1}{1}\finger{2}{1}\finger{3}{1}\finger{4}{1}\finger{5}{1}\finger{2}{3}\finger{4}{2}}} |
| 289 |
\def\bshschord{\anychord{\chord{\Sharpms{b}}\finger{2}{0}\finger{3}{2}\finger{4}{0}\finger{5}{2}}} |
| 290 |
\def\cschord{\anychord{\chord{\minors{c}}\finger{2}{0}\finger{3}{2}\finger{4}{0}\finger{5}{2}}} |
| 291 |
\def\cshschord{\anychord{\chord{\Sharpms{c}}\finger{1}{1}\finger{2}{1}\finger{3}{0}\finger{4}{1}}} |
| 292 |
\def\dfschord{\anychord{\chord{\Flatms{d}}\finger{1}{1}\finger{2}{1}\finger{3}{0}\finger{4}{1}}} |
| 293 |
\def\dschord{\anychord{\chord{\minors{d}}\finger{3}{1}\finger{4}{0}\finger{5}{0}}} |
| 294 |
\def\dshschord{\anychord{\chord{\Sharpms{d}}\finger{2}{0}\finger{3}{2}\finger{4}{1}\finger{5}{1}}} |
| 295 |
\def\efschord{\anychord{\chord{\Flatms{e}}\finger{2}{0}\finger{3}{2}\finger{4}{1}\finger{5}{1}}} |
| 296 |
\def\eschord{\anychord{\chord{\minors{e}}\finger{1}{1}\finger{2}{1}\finger{4}{2}}} |
| 297 |
\def\ffschord{\anychord{\chord{\Flatms{f}}\finger{1}{1}\finger{2}{1}\finger{4}{2}}} |
| 298 |
\def\eshschord{\anychord{\chord{\Sharpms{e}}\finger{2}{0}\finger{3}{0}\finger{4}{0}\finger{5}{0}}} |
| 299 |
\def\fschord{\anychord{\chord{\minors{f}}\finger{2}{0}\finger{3}{0}\finger{4}{0}\finger{5}{0}}} |
| 300 |
\def\fshschord{\anychord{\chord{\Sharpms{f}}\finger{2}{1}\finger{3}{1}\finger{4}{1}\finger{5}{1}}} |
| 301 |
\def\gfschord{\anychord{\chord{\Flatms{g}}\finger{2}{1}\finger{3}{1}\finger{4}{1}\finger{5}{1}}} |
| 302 |
\def\gschord{\anychord{\chord{\minors{g}}\finger{1}{0}\finger{2}{2}\finger{4}{2}}} |
| 303 |
\def\gshschord{\anychord{\chord{\Sharpms{g}}\finger{2}{0}\finger{3}{0}\finger{5}{1}}} |
| 304 |
|
| 305 |
\def\textchords{\def\dochord##1{\leavevmode\raise\chordheight\hbox{##1}\hskip\chordwidth}} |
| 306 |
\def\raisedchords{\def\dochord##1{\leavevmode\raise10pt\hbox{\raise\chordheight\hbox{##1}}}\def\doextchord##1{\leavevmode\raise10pt\hbox{\raise\extchordheight\hbox{##1}}}} |
| 307 |
\raisedchords |
| 308 |
%% |
| 309 |
%% |
| 310 |
%% Tue Mar 30 20:40:00 1993 |
| 311 |
%% |
| 312 |
%% |
| 313 |
%% To: Christopher (C.J.) Rath (BNR) Dept 4Y13 CAR |
| 314 |
%% |
| 315 |
%% From: '[email protected]' (BNR400) |
| 316 |
%% |
| 317 |
%% Subject: [ANNOUNCE] Guitar-chord-diagram macros for TeX (and LaTex) |
| 318 |
%% |
| 319 |
%% Attachment: 1) UNIX File: ORIGINAL.HEADER - 960 bytes |
| 320 |
%% |
| 321 |
%% There are TWO files here: test.tex, followed by texchord.tex. |
| 322 |
%% |
| 323 |
%% Look for the two --CUT HERE-- lines below. |
| 324 |
%% |
| 325 |
%% |
| 326 |
%% Save the second file as texchord.tex, the first one as test.tex, and |
| 327 |
%% run tex on test.tex. |
| 328 |
%% |
| 329 |
%% -------------------------------CUT HERE------------------------------- |
| 330 |
%% %Test file for TeXChord. (C) 1993 by Joel M. Hoffman |
| 331 |
%% |
| 332 |
%% \font\titfont=cmr17\narrower % Some fonts |
| 333 |
%% \font\capfont=cmbx12 scaled \magstep1 |
| 334 |
%% \def\mycaption#1{\bigskip{\capfont #1}\nobreak} |
| 335 |
%% \long\def\boxit#1{\vbox{\hrule\hbox{\vrule\kern3pt |
| 336 |
%% \vbox{\kern3pt#1\kern3pt}\kern3pt\vrule}\hrule}} |
| 337 |
%% \long\def\dboxit#1{\boxit{\vbox{\boxit{\hbox{#1}}}}} |
| 338 |
%% |
| 339 |
%% |
| 340 |
%% |
| 341 |
%% \input texchord % Include the macros. |
| 342 |
%% \textchords\smallchords % Put chords in the text; use small chords. |
| 343 |
%% |
| 344 |
%% \centerline{\dboxit{\vbox{\hbox{\titfont \TeX Chord Demonstration} |
| 345 |
%% \hbox{Copyright 1993 by Joel M.\ Hoffman}}}} |
| 346 |
%% \bigskip |
| 347 |
%% \bigskip\hrule\bigskip\bigskip |
| 348 |
%% |
| 349 |
%% This is the size of a small C-chord: \Cchord. |
| 350 |
%% \bigchords |
| 351 |
%% This is the size of a big C-chord: \Cchord. |
| 352 |
%% |
| 353 |
%% \bigskip\hrule\bigskip\bigskip |
| 354 |
%% |
| 355 |
%% |
| 356 |
%% \raisedchords\advance\baselineskip by 50pt |
| 357 |
%% \def\dummytext{\leavevmode\kern.6 true in} |
| 358 |
%% |
| 359 |
%% \bigchords |
| 360 |
%% |
| 361 |
%% \mycaption{Major chords:} |
| 362 |
%% |
| 363 |
%% \Achord \dummytext |
| 364 |
%% \Bchord \dummytext |
| 365 |
%% \Cchord \dummytext |
| 366 |
%% \Dchord \dummytext |
| 367 |
%% \Echord \dummytext |
| 368 |
%% \Fchord \dummytext |
| 369 |
%% \Gchord \dummytext |
| 370 |
%% |
| 371 |
%% \Ashchord \dummytext |
| 372 |
%% \Bshchord \dummytext |
| 373 |
%% \Cshchord \dummytext |
| 374 |
%% \Dshchord \dummytext |
| 375 |
%% \Eshchord \dummytext |
| 376 |
%% \Fshchord \dummytext |
| 377 |
%% \Gshchord \dummytext |
| 378 |
%% |
| 379 |
%% \Afchord \dummytext |
| 380 |
%% \Bfchord \dummytext |
| 381 |
%% \Cfchord \dummytext |
| 382 |
%% \Dfchord \dummytext |
| 383 |
%% \Efchord \dummytext |
| 384 |
%% \Ffchord \dummytext |
| 385 |
%% \Gfchord \dummytext |
| 386 |
%% |
| 387 |
%% \mycaption{Minor chords:} |
| 388 |
%% |
| 389 |
%% \achord \dummytext |
| 390 |
%% \bchord \dummytext |
| 391 |
%% \cchord \dummytext |
| 392 |
%% \dchord \dummytext |
| 393 |
%% \echord \dummytext |
| 394 |
%% \fchord \dummytext |
| 395 |
%% \gchord \dummytext |
| 396 |
%% |
| 397 |
%% \ashchord \dummytext |
| 398 |
%% \bshchord \dummytext |
| 399 |
%% \cshchord \dummytext |
| 400 |
%% \dshchord \dummytext |
| 401 |
%% \eshchord \dummytext |
| 402 |
%% \fshchord \dummytext |
| 403 |
%% \gshchord \dummytext |
| 404 |
%% |
| 405 |
%% \afchord \dummytext |
| 406 |
%% \bfchord \dummytext |
| 407 |
%% \cfchord \dummytext |
| 408 |
%% \dfchord \dummytext |
| 409 |
%% \efchord \dummytext |
| 410 |
%% \ffchord \dummytext |
| 411 |
%% \gfchord \dummytext |
| 412 |
%% |
| 413 |
%% \mycaption{Seventh chords (Major):} |
| 414 |
%% |
| 415 |
%% \Cschord \dummytext |
| 416 |
%% \Dschord \dummytext |
| 417 |
%% \Eschord \dummytext |
| 418 |
%% \Fschord \dummytext |
| 419 |
%% \Gschord \dummytext |
| 420 |
%% \Aschord \dummytext |
| 421 |
%% \Bschord \dummytext |
| 422 |
%% |
| 423 |
%% \Cfschord \dummytext |
| 424 |
%% \Dfschord \dummytext |
| 425 |
%% \Efschord \dummytext |
| 426 |
%% \Ffschord \dummytext |
| 427 |
%% \Gfschord \dummytext |
| 428 |
%% \Afschord \dummytext |
| 429 |
%% \Bfschord \dummytext |
| 430 |
%% |
| 431 |
%% \Cshschord \dummytext |
| 432 |
%% \Dshschord \dummytext |
| 433 |
%% \Eshschord \dummytext |
| 434 |
%% \Fshschord \dummytext |
| 435 |
%% \Gshschord \dummytext |
| 436 |
%% \Ashschord \dummytext |
| 437 |
%% \Bshschord \dummytext |
| 438 |
%% |
| 439 |
%% \mycaption{Seventh chords (Minor):} |
| 440 |
%% |
| 441 |
%% |
| 442 |
%% \aschord \dummytext |
| 443 |
%% \bschord \dummytext |
| 444 |
%% \cschord \dummytext |
| 445 |
%% \dschord \dummytext |
| 446 |
%% \eschord \dummytext |
| 447 |
%% \fschord \dummytext |
| 448 |
%% \gschord \dummytext |
| 449 |
%% |
| 450 |
%% \afschord \dummytext |
| 451 |
%% \bfschord \dummytext |
| 452 |
%% \cfschord \dummytext |
| 453 |
%% \dfschord \dummytext |
| 454 |
%% \efschord \dummytext |
| 455 |
%% \ffschord \dummytext |
| 456 |
%% \gfschord \dummytext |
| 457 |
%% |
| 458 |
%% \ashschord \dummytext |
| 459 |
%% \bshschord \dummytext |
| 460 |
%% \cshschord \dummytext |
| 461 |
%% \dshschord \dummytext |
| 462 |
%% \eshschord \dummytext |
| 463 |
%% \fshschord \dummytext |
| 464 |
%% \gshschord \dummytext |
| 465 |
%% |
| 466 |
%% |
| 467 |
%% \end |