Debian Codegraph @

texmf-dist/doc/latex/octave/octave.tex

raw
1 \documentclass{article}
2
3 \usepackage{lmodern}
4 \usepackage[T1]{fontenc}
5 \usepackage[utf8]{inputenc}
6 \usepackage{semantic-markup}
7 \usepackage{octave}
8 \usepackage{fancyvrb}
9 \frenchspacing
10 \usepackage[
11 pdftitle={The octave Package for Typesetting Musical Pitches with Octave
12 Designations},
13 pdfauthor={Andrew A. Cashner},
14 pdfsubject={LaTeX package},
15 pdfkeywords={LaTeX, music, musicology, humanities}
16 ]{hyperref}
17
18 \title{The \code{octave} Package for Typesetting Musical Pitches with Octave
19 Designations}
20 \author{Andrew A. Cashner\thanks{%
21 \href{mailto:[email protected]}
22 {\nolinkurl{[email protected]}}%
23 }%
24 }
25
26 \begin{document}
27 \maketitle
28
29 There are two standard ways of indicating the octave of a musical pitch:
30 \begin{enumerate}
31 \item The Helmholtz system, which uses subscript numerals after the pitch
32 letter name, where \soCalled{middle C} is \pitch{C}{4}
33 \item {\octaveprimes
34 The traditional system, which uses upper- and lowercase letters followed
35 by prime (tick) marks, where \soCalled{middle C} is \pitch{C}{4} and
36 an octave higher is \pitch{C}{5}.}
37 \end{enumerate}
38
39 This package allows you to typeset pitch names conveniently using either method
40 (or even switching between) without worrying about typography, with a simple,
41 semantically meaningful interface.
42 Authors can write their documents without worrying about which system of
43 nomenclature their editor or press will prefer.
44 Simply changing the option with which the package is called will change the
45 display of all the pitches in the document that have been written with this
46 package's commands.
47
48 \tableofcontents
49
50 \section{Package Options}
51
52 \begin{center}
53 \begin{tabular}{ll}
54 \code{number} & (Default) Use Helmholtz numbers \\
55 \code{prime} & Use the traditional system with prime/tick marks \\
56 \end{tabular}
57 \end{center}
58
59 To use octave numbers, just add \verb|\usepackage{octave}| to your preamble.
60 To use the traditional system, write \verb|\usepackage[prime]{octave}| instead.
61
62
63
64 \section{Switching Systems within One Document}
65
66 At any time, you can change from one system to the other.
67
68 \begin{center}
69 \begin{tabular}{ll}
70 \verb|\octaveprimes|
71 & Switch to the traditional system (prime/tick marks) \\
72 \verb|\octavenumbers|
73 & Switch to the Helmholtz system (numbers) \\
74 \end{tabular}
75 \end{center}
76
77 \section{Style}
78
79 The default setup (stored in the command \verb|\pitchfont|) is for pitch letters
80 and numbers in the Helmholtz system to be in the normal font, while pitch
81 letters and prime marks are in italic. You can change this, for example:
82
83 \verb|\renewcommand{\pitchfont}{\mdseries}|.
84
85 \section{Entering Pitch Names}
86
87 To enter a pitch name, use the \verb|\pitch| command.
88 It takes three arguments:
89 \begin{enumerate}
90 \item (Mandatory) Letter name of the pitch: Can be upper- or lowercase; the
91 package will adjust the case as necessary
92 \item (Optional, in square brackets) Accidental command, e.g., \verb|$\sharp$| or \verb|\sh|
93 from the \code{semantic-markup} package
94 \item (Mandatory) Number of the pitch in the Helmholtz system
95 \end{enumerate}
96
97 Yes, the package requires you to use the numbered system, even if you want the
98 output to be in the traditional system.
99 Thus middle C is \verb|\pitch{C}{4}|, and an octave and a semitone above that is
100 \verb|\pitch{C}[\sh]{5}| (using the \code{semantic-markup} package for the
101 accidental).
102
103
104 \section{Table of Octave Designations in the Two Systems}
105
106 The package also provides the \verb|\octavetable| which displays a comparison
107 of the two systems, shown in table~\ref{octavetable}.
108
109 \begin{table}
110 \caption{Pitch designations in traditional (\code{prime}) and Helmholtz
111 (\code{number}) systems}
112 \label{octavetable}
113 \begin{center}
114 \octavetable
115 \end{center}
116 \end{table}
117
118 \section{Code}
119
120 \VerbatimInput{octave.sty}
121
122 \section{Changes}
123
124 \begin{tabular}{r p{0.75\textwidth}}
125 2017/10/31 & Spelling corrections\\
126 2017/08/21 & First version on CTAN\\
127 \end{tabular}
128 \end{document}