Debian Codegraph @

texmf-dist/doc/latex/guitarchordschemes/guitarchordschemes_en.tex

raw
1 % arara: pdflatex
2 % arara: biber
3 % arara: pdflatex
4 % arara: pdflatex
5 % --------------------------------------------------------------------------
6 % the GUITARCHORDSCHEMES package
7 %
8 % Guitar Chord and Scale Tablatures with TikZ
9 %
10 % --------------------------------------------------------------------------
11 % Clemens Niederberger
12 % Web: https://bitbucket.org/cgnieder/guitarchordschemes/
13 % E-Mail: [email protected]
14 % --------------------------------------------------------------------------
15 % Copyright 2013--2016 Clemens Niederberger
16 %
17 % This work may be distributed and/or modified under the
18 % conditions of the LaTeX Project Public License, either version 1.3
19 % of this license or (at your option) any later version.
20 % The latest version of this license is in
21 % http://www.latex-project.org/lppl.txt
22 % and version 1.3 or later is part of all distributions of LaTeX
23 % version 2005/12/01 or later.
24 %
25 % This work has the LPPL maintenance status `maintained'.
26 %
27 % The Current Maintainer of this work is Clemens Niederberger.
28 % --------------------------------------------------------------------------
29 % The guitarchordschemes package consists of the files
30 % - guitarchordschemes.sty,
31 % - guitarchordschemes_en.tex,
32 % - guitarchordschemes_en.pdf,
33 % - README
34 % --------------------------------------------------------------------------
35 % If you have any ideas, questions, suggestions or bugs to report, please
36 % feel free to contact me.
37 % --------------------------------------------------------------------------
38 \documentclass[load-preamble+]{cnltx-doc}
39 \usepackage{guitarchordschemes}
40 \usepackage[chords]{leadsheets}
41
42 \setcnltx{
43 package = guitarchordschemes ,
44 authors = Clemens Niederberger ,
45 email = [email protected] ,
46 url = https://bitbucket.org/cgnieder/guitarchordschemes/ ,
47 info = guitar chord schemes and fingering scales with \TikZ ,
48 add-cmds = {
49 chordscheme,
50 setchordscheme,
51 setfingering ,
52 scales
53 } ,
54 add-silent-cmds = textsuperscript ,
55 abstract = {%
56 \centering
57 \chordscheme[
58 name = Gmi7 ,
59 position = II ,
60 barre = {2/2-4:3} ,
61 show-root = {4/4} ,
62 root = {2/6:2} ,
63 mute = {1,5}
64 ]%
65 } ,
66 index-setup = {
67 othercode = \footnotesize ,
68 level = \addsec ,
69 noclearpage
70 } ,
71 makeindex-setup = {
72 columns = 3 ,
73 columnsep = 1em
74 }
75 }
76
77 \addbibresource{\jobname.bib}
78 \begin{filecontents}{\jobname.bib}
79 @online{web:pietsch:fonts,
80 author = {Jochen Pietsch} ,
81 title = {Jazz Fonts} ,
82 url = {http://notation.jochenpietsch.de/index_e.html} ,
83 urldate = {2012-05-10}
84 }
85 @book{leavitt:mmfg:1,
86 author = {William G. Leavitt},
87 title = {A Modern Method for Guitar},
88 volume = {1},
89 publisher = {Berklee Press Publications, Boston},
90 year = {1966}
91 }
92 \end{filecontents}
93
94 \usepackage{ccicons}
95
96 \setchordscheme{
97 finger-format+ = \biolinumLF ,
98 name-format+ = \libertineLF ,
99 chord-name-cs = \chordname
100 }
101
102 \newcommand*\TikZ{Ti\textit{k}Z}
103
104 \begin{document}
105
106 \section{License and Requirements}
107
108 \license
109
110 \guitarchordschemes{} loads the packages \TikZ~\cite{pkg:pgf},
111 \pkg{etoolbox}~\cite{pkg:etoolbox} and \pkg{pgfopts}~\cite{pkg:pgfopts}. It
112 also loads the \TikZ{} libraries \code{shapes.misc}, \code{arrows} and
113 \code{calc}.
114
115 % Depending on an option it also loads
116 % \pkg{realbookchords}~\cite{pkg:realbookchords}. This package is not yet
117 % published on \CTAN{} and thus not part of any \TeX{} distribution. Until it is
118 % you can find it at \url{https://bitbucket.org/cgnieder/realbookchords/}. See
119 % section~\ref{sec:realbookchords} for details on this option.
120
121 \section{The Commands}
122 This package mainly provides two commands:
123 \begin{commands}
124 \command{chordscheme}[\oarg{options}]
125 Typeset a guitar chord scheme.
126 \command{scales}[\oarg{option}]
127 Typeset a fingering scale.
128 \end{commands}
129 These commands set the frame for the chord and scale tablatures and can be used
130 to create sheets for manually writing down tablatures:
131 \begin{example}[side-by-side]
132 \chordscheme
133 \end{example}
134
135 Similarly \cs{scales} creates a frame with two more frets:
136 \begin{example}
137 \scales
138 \end{example}
139
140 \subsection{Options for \cs*{chordscheme}}
141 The \meta{options} argument is where the actual details for a chord
142 happen. These are the available ones for \cs{chordscheme}:
143 \begin{options}
144 \keyval{fret-number}{number}\Default{4}
145 \sinceversion{0.6}The number of frets that are drawn. This number must be
146 at least 4. The option should be set as first option since it influences
147 other options.
148 \keyval{name}{chordsymbol}
149 Set the chord symbol. This option accepts a comma separated list of
150 entries.
151 \keyval{position}{position}
152 Set the position for the first of the four frets.
153 \keychoice{finger}{\meta{fret}/\meta{string}:\meta{label}}
154 Specify the finger positions for a chord. This option accepts a comma
155 separated list of entries. The \code{:\meta{label}} is optional.
156 \keychoice{root}{\meta{fret}/\meta{string}:\meta{label}}
157 The same as finger but uses a square instead of a circle to indicate that
158 this finger is playing the root of the chord. This option accepts a comma
159 separated list of entries. The \code{:\meta{label}} is optional.
160 \keychoice{show-root}{\meta{fret}/\meta{string}}
161 Specify positions of the root that are \emph{not} part of the actual chord
162 but are somewhere in the vicinity of it on the guitar neck. This option
163 accepts a comma separated list of entries.
164 \keychoice{barre}{\meta{fret}/\meta{string range}:\meta{label}}
165 Specify a barr\'e position for a chord. The \meta{string range} part must
166 contain a two string numbers separated with a dash. This option accepts a
167 list of entries. The \code{:\meta{label}} is optional.
168 \keyval{ring}{string}
169 Specify open strings. This option accepts a comma separatedlist of
170 entries.
171 \keyval{mute}{string}
172 Specify muted/un-played strings. This option accepts a comma separated
173 list of entries.
174 \end{options}
175
176 Let's take a look at a few examples:
177
178 \begin{example}[side-by-side]
179 \chordscheme[
180 name = G ,
181 position = I ,
182 finger = {2/5:1} ,
183 root = {3/6:2, 3/1:4} ,
184 ring = {2,3,4}
185 ]
186 \end{example}
187 \makeatletter
188 \setchordscheme{chord-name-cs=\@firstofone}
189 \makeatother
190
191 Or a more "`jazzy"' chord:
192 \begin{example}[side-by-side]
193 \chordscheme[
194 name = G\textsuperscript{6} ,
195 position = II ,
196 finger = {1/4:1, 3/3:4, 2/2:3} ,
197 root = 2/6:2 ,
198 show-root = 4/4 ,
199 mute = {1,5}
200 ]
201 \end{example}
202
203 One with a barr\'e:
204
205 \begin{example}[side-by-side]
206 \chordscheme[
207 name = Gmi\textsuperscript{7} ,
208 position = II ,
209 barre = 2/2-4:3 ,
210 show-root = 4/4 ,
211 root = 2/6:2 ,
212 mute = {1,5}
213 ]
214 \end{example}
215
216 \subsection{Options for \cs*{scales}}
217 The \meta{options} argument for \cs{scales} are similar to the ones for
218 \cs{chordscheme}:
219 \begin{options}
220 \keyval{fret-number}{number}\Default{6}
221 \sinceversion{0.6}The number of frets that are drawn. This number must be
222 at least 6. The option should be set as first option since it influences
223 other options.
224 \keyval{name}{title}
225 Set a title for the scale.
226 \keyval{position}{position}
227 Set the position for the first of the six frets.
228 \keychoice{finger}{\meta{fret}/\meta{string}:\meta{label}}
229 Specify the finger positions for the scale. This option accepts a comma
230 separated list of entries. The \code{:\meta{label}} is optional.
231 \keychoice{root}{\meta{fret}/\meta{string}:\meta{label}}
232 The same as finger but uses a square instead of a circle to indicate that
233 this finger is playing the root of the scale. This option accepts a comma
234 separated list of entries. The \code{:\meta{label}} is optional.
235 \keyval{fret number}{integer}\Default{6}
236 The number of frets displayed for a scale. The minimum number is 6.
237 \keychoice{fingering}{type 1,type 1A,type 2,type 3,type 4}
238 Set a whole predefined fingering. The types correspond to ones taught
239 in \citeauthor{leavitt:mmfg:1}'s
240 \citetitle{leavitt:mmfg:1}~\cite{leavitt:mmfg:1}. This option assumes an
241 ionic scale and places the roots correspondingly.
242 \keychoice{fingering*}{type 1,type 1A,type 2,type 3,type 4}
243 The same as \option{fingering} but no scale is assumed and no roots are
244 indicated.
245 \keychoice{fingering?}{type 1,type 1A,type 2,type 3,type 4}
246 The same as \option{fingering*} but also no labels for the fingers are given.
247 \end{options}
248
249 Let's see an example:
250 \begin{example}
251 \scales[
252 name = F-major (Fingering Type~1A) ,
253 position = I ,
254 fingering = type 1A
255 ]
256 \end{example}
257
258 An example for \option{fingering*}:
259 \begin{example}
260 \scales[
261 name = Fingering Type~3 ,
262 fingering* = type 3
263 ]
264 \end{example}
265
266 Now an example for \option{fingering?}:
267 \begin{example}
268 \scales[
269 name = Fingering Type~2 ,
270 fingering? = type 2
271 ]
272 \end{example}
273
274 At last an example for an explicitly set scale:
275 \begin{example}
276 \scales[
277 finger = {
278 2/1:1, 5/1:4,
279 2/2:1, 5/2:4,
280 2/3:1, 4/3:3, 5/3:4,
281 2/4:1, 4/4:3,
282 2/5:1, 3/5:2, 4/5:3,
283 2/6:1, 5/6:4
284 }
285 ]
286 \end{example}
287
288 You can add other predefined fingerings or change the existing ones with the
289 following command:
290 \begin{commands}
291 \command{setfingering}[\marg{name}\marg{fingers}\marg{roots}]
292 \sinceversion{0.7}\marg{name} sets the name as chosen by
293 \option{fingering}, \option{fingering*} or \option{fingering?},
294 \meta{fingers} is passed to the \option{finger} option and \meta{roots}
295 either to the \option{finger} option or the \option{root} option depending
296 if the fingering is called by \option{fingering}, \option{fingering*} or
297 \option{fingering?}.
298 \end{commands}
299 As an example here is how fingering type 1A has been defined:
300 \begin{sourcecode}
301 \setfingering{type 1A}{
302 3/1:2, 5/1:4,
303 3/2:2, 5/2:4,
304 2/3:1, 3/3:2, 5/3:4,
305 2/4:1, 5/4:4,
306 1/5:1s, 3/5:2, 5/5:4,
307 3/6:2, 5/6:4
308 }{1/1:1s, 3/4:2, 1/6:1s}
309 \end{sourcecode}
310
311 \section{Options}
312 There are quite a number of options determining the layout of the tablatures.
313 They can either be set as package options or via the setup command:
314 \begin{commands}
315 \command{setchordscheme}[\marg{options}]
316 The setup command for \guitarchordschemes.
317 \end{commands}
318
319 Below every option and its corresponding default setting is described.
320 \begin{options}
321 \keyval{x-unit}{dim}\Default{.8cm}
322 The basic $x$ unit for the \TikZ{} picture the chord scheme is set in.
323 \keyval{y-unit}{dim}\Default{.8cm}
324 The basic $y$ unit for the \TikZ{} picture the chord scheme is set in.
325 \keyval{rotate}{angle}\Default{0}
326 \sinceversion{0.7}Rotates the diagram counter-clockwise by \meta{angle}.
327 \keyval{finger-format}{\TeX{} code}\Default{\cs*{sffamily}\cs*{small}}
328 The format the numbers for the fingers are typeset with.
329 \keyval{finger-format+}{\TeX{} code}\Default
330 Code to be appended to \option{finger-format}.
331 \keyval{position-format}{\TeX{} code}\Default{\cs*{sffamily}}
332 The format the number for the position is typeset with.
333 \keyval{position-format+}{\TeX{} code}\Default
334 Code to be appended to \option{position-format}.
335 \keyval{name-format}{\TeX{} code}\Default{\cs*{large}}
336 The format the chord name/symbol is typeset with.
337 \keyval{name-format+}{\TeX{} code}\Default
338 Code to be appended to \option{name-format}.
339 \keybool{name-below}\Default{false}
340 \sinceversion{0.7}If set to \code{true} the name will be written below
341 instead of above the diagram.
342 \keyval{name-distance}{dim}\Default{.5em}
343 \sinceversion{0.7}The distance between name and chord diagram.
344 \keyval{chord-name-cs}{cs}\Default{\cs*{@firstofone}}
345 \sinceversion{0.5}The command that is used to parse the chord name.
346 \meta{cs} needs to be a command that takes a mandatory argument.
347 \keyval{scales-name-cs}{cs}\Default{\cs*{@firstofone}}
348 \sinceversion{0.5}The command that is used to parse the scales name.
349 \meta{cs} needs to be a command that takes a mandatory argument.
350 \keyval{string-name-format}{\TeX{} code}\Default{\cs*{sffamily}\cs*{small}}
351 The format the names of the strings are typeset with.
352 \keyval{string-name-format+}{\TeX{} code}\Default
353 Code to be appended to \option{string-name-format}.
354 \keyval{strings}{num}\Default{6}
355 \sinceversion{0.7}Sets the number of strings.
356 \keyval{chord-frets}{number}\Default{4}
357 \sinceversion{0.6}The default number of frets of a chord scheme.
358 \meta{number} must be at least 4.
359 \keyval{scales-frets}{number}\Default{6}
360 \sinceversion{0.6}The default number of frets of a scales scheme.
361 \meta{number} must be at least 6.
362 \keyval{line-width}{dim}\Default{1pt}
363 The line width used for all lines drawn in the chord scheme.
364 \keyval{finger-radius}{num}\Default{.1875}
365 The radius of the circles that represent the fingers in multiples of
366 \option{x-unit}. Also determines the size of the root markers and the
367 barr\'e.
368 \keyval{finger-x-offset}{num}\Default{.375}
369 The $x$ offset of the number with respect to the circle in multiples of
370 \option{x-unit}.
371 \keyval{finger-y-offset}{num}\Default{.375}
372 The $y$ offset of the number with respect to the circle in multiples of
373 \option{y-unit}.
374 \keyval{finger-style}{\TikZ{} style}\Default{fill}
375 The \TikZ{} style the circles representing the fingers are drawn with.
376 This is equivalent to \cs*{tikzset}\Marg{finger
377 style/.style=\{\meta{\TikZ{} style}\}}.
378 \keyval{root-style}{\TikZ{} style}\Default{fill}
379 The \TikZ{} style the squares representing the roots are drawn with.
380 This is equivalent to \cs*{tikzset}\Marg{root style/.style=\{\meta{\TikZ{}
381 style}\}}.
382 \keyval{show-root-style}{\TikZ{} style}\Default{draw}
383 The \TikZ{} style the squares representing the "`ghost roots"' are drawn
384 with. This is equivalent to \cs*{tikzset}\Marg{show root
385 style/.style=\{\meta{\TikZ{} style}\}}.
386 \keyval{ringing-style}{\TikZ{} style}\Default{draw}
387 The \TikZ{} style the circles representing the open string markers are
388 drawn with. This is equivalent to \cs*{tikzset}\Marg{ringing
389 style/.style=\{\meta{\TikZ{} style}\}}.
390 \keyval{muted-style}{\TikZ{} style}\Default{cross out,draw}
391 The \TikZ{} style the nodes representing muted strings are drawn with.
392 This is equivalent to \cs*{tikzset}\Marg{muted style/.style=\{\meta{\TikZ{}
393 style}\}}.
394 \keyval{tuning}{comma separated list of string names}\Default{E,B,G,D,A,E}
395 The tuning. The strings are named from first to sixth string. If you
396 want to remove all names use \keyis{tuning}{,,,,,}.
397 \keybool{restrict-bounding-box}\Default{false}
398 \sinceversion{0.7}If set to \code{true} the bounding box of the \TikZ{}
399 picture is not extended by string names, position labels etc.\@ but
400 restricted (more or less) only to the chord scheme diagram itself.
401 \end{options}
402
403 \end{document}