csong@52
|
1 %\usepackage{algorithmic}
|
csong@52
|
2 %\usepackage{algpseudocode}
|
christopher@54
|
3 %\usepackage{epsfig} % This package allows encapsulated postscript
|
csong@52
|
4 %\usepackage{subfigure} % This package allows subfigures
|
csong@52
|
5 \usepackage{amsmath}
|
csong@52
|
6 \usepackage{amssymb}
|
csong@52
|
7
|
csong@52
|
8 \DeclareMathOperator*{\argmax}{arg\,max}
|
csong@52
|
9 \DeclareMathOperator*{\argmin}{arg\,min}
|
csong@52
|
10
|
csong@52
|
11 \newcommand{\subdiv}[2]{#1\!\!\parallel_#2\,}
|
csong@52
|
12
|
csong@52
|
13 \def\seqmember{q} % member of example sequence
|
csong@52
|
14 \def\seqnmember{\acute{\seqmember}} % member of second example sequence
|
csong@52
|
15 \def\seqindex{n} % index
|
csong@52
|
16 %\def\subseq{M}
|
csong@52
|
17 \def\seqdiv{\lambda} % sequence division
|
csong@52
|
18 \def\subseqiter{\theta} %iteration of subsequence elements
|
csong@52
|
19 \def\seqalpha{\Theta} % number of elements per subsequence
|
csong@52
|
20 \def\seqiter{a} % index for subsequences in super sequence
|
csong@52
|
21 \def\seqdef{Q} % example sequence
|
csong@52
|
22 \def\seqndef{\acute{\seqdef}} % example sequence 2
|
csong@52
|
23 %\def\seqdeflength{K} %
|
csong@52
|
24 \def\demoa{\vartriangle} % example elements
|
csong@52
|
25 \def\demob{\blacktriangledown} % example elements
|
csong@52
|
26
|
csong@52
|
27 \def\ssep{\,:\,} % set builder separator symbol
|
csong@52
|
28
|
csong@52
|
29 \newcommand{\seqlength}[1]{|#1|}
|
csong@52
|
30
|
csong@52
|
31
|
csong@52
|
32 %General symbols
|
csong@52
|
33 \def\time{t}
|
csong@52
|
34 \def\timeorigin{\time_\textrm{org}}
|
csong@52
|
35 \def\timeend{\time_\textrm{end}}
|
csong@52
|
36 \def\timespan{\time_\textrm{span}}
|
csong@52
|
37 \def\delt{\Delta \time}
|
csong@52
|
38 \def\duration{\textrm{d}} % duration of a note
|
csong@52
|
39 \def\start{\textrm{s}} % onset time of a note
|
csong@52
|
40 \def\starttime{{\time_{\start}}}
|
csong@52
|
41 \def\durationtime{{\time_{\duration}}}
|
csong@52
|
42 \def\velocity{\nu} % velocity/dynamic of a note
|
csong@52
|
43 \def\dist{d} % distance function
|
csong@52
|
44 \def\sync{\textsf{\emph{S}}} % total syncopation value for a model (subscripted with model name e.g. \sync_\textrm{LHL}
|
csong@52
|
45 \def\sequence{Y} % for a sequence of notes
|
csong@52
|
46 \def\note{y} % a note
|
csong@52
|
47 \def\sequenceindex{n} % for a sequence of notes
|
csong@52
|
48 \def\sequencelength{{|\sequence|}}%N
|
csong@52
|
49
|
csong@52
|
50 %\def\metricset{XXX}
|
csong@52
|
51 \def\metricvector{H}
|
csong@52
|
52 \def\metricmember{h}
|
csong@52
|
53 \def\metricweight{w}
|
csong@52
|
54 \def\metricweightset{W}
|
csong@52
|
55 \def\metriclevel{L}
|
csong@52
|
56 \def\levelmax{\metriclevel_\textrm{max}}
|
csong@52
|
57 \def\metricindex{j}
|
csong@52
|
58 \def\metrictotal{I}
|
csong@52
|
59 \def\subdivision{\lambda}
|
csong@52
|
60 \def\subdivisionset{\Lambda}
|
csong@52
|
61 \def\allseqs{\mathbb{S}}
|
csong@52
|
62 \def\repnum{\alpha}
|
csong@52
|
63
|
csong@52
|
64
|
csong@52
|
65 \def\conitersum{\bigodot}
|
csong@52
|
66
|
csong@52
|
67 \newcommand{\dsum}[2]{
|
csong@52
|
68 \hspace{-0.1cm}
|
csong@52
|
69 \begin{array}{c}
|
csong@52
|
70 _{{#1}}%
|
csong@52
|
71 %\vspace{-0.2cm}
|
csong@52
|
72 \\ \conitersum% \vspace{-0.2cm}
|
csong@52
|
73 \\ ^{{#2}}\\
|
csong@52
|
74 \end{array} \hspace{-0.2cm}
|
csong@52
|
75 }
|
csong@52
|
76
|
csong@52
|
77 \def\concatplus{\ast}
|
csong@52
|
78 \def\concatmul{\otimes}
|
csong@52
|
79
|
csong@52
|
80 %time-span symbols
|
csong@52
|
81 \def\timespansequence{T}
|
csong@52
|
82 \def\spanlength{\time_\textrm{span}} % length of a timespan
|
csong@52
|
83 \def\spanvector{V} % timespan vector
|
csong@52
|
84 \def\binaryspanvector{B}
|
csong@52
|
85 \def\binaryspanmember{b}
|
csong@52
|
86 \def\spanmember{v} % member of a timespan vector
|
csong@52
|
87 \def\spanindex{m} % index of timespan vector
|
csong@52
|
88 \def\spandim{{|\spanvector|}}%M % dimension of a timespan vector
|
csong@52
|
89 \def\binaryspandim{{|\binaryspanvector|}}%B
|
csong@52
|
90
|
csong@52
|
91 \def\true{\textrm{True}}
|
csong@52
|
92
|
csong@52
|
93 \def\dontcare{\textrm{X}}
|
csong@52
|
94
|
csong@52
|
95 %LHL specific
|
csong@52
|
96 \def\lhl{LHL}
|
csong@52
|
97 %\def\lhlsumfunc{\varphi}
|
csong@52
|
98 \def\lhlfunc{\kappa}
|
csong@52
|
99 \def\lhlnode{\psi}
|
csong@52
|
100 \def\lhliter{a}
|
csong@52
|
101 %\def\terminals{\mathcal{S}} % the set of all terminal nodes
|
csong@52
|
102 \def\NoteNode{\textsf{\small{N}}} % node type N (note)
|
csong@52
|
103 \def\RestNode{\textsf{\small{R}}} % node type R (rest)
|
csong@52
|
104 \def\NoteNodeIndex{j} % node type N (note)
|
csong@52
|
105 \def\RestNodeIndex{i} % node type R (rest)
|
csong@52
|
106 %\def\lhlnr{f(\lhlnode_\RestNodeIndex)} % local syncopation value in LHL
|
csong@52
|
107
|
csong@52
|
108
|
csong@52
|
109 \def\NodeType{\eta} % a node
|
csong@52
|
110 %\def\NRpairs{P}
|
csong@52
|
111 \def\lhlindex{a}
|
csong@52
|
112 \def\lhlseq{\Psi}
|
csong@52
|
113
|
csong@52
|
114
|
csong@52
|
115 %Keith specific
|
csong@52
|
116 \def\keith{KTH}
|
csong@52
|
117 \def\keithD{c} % keith's D value (highest power of 2 that is less than the note duration)
|
csong@52
|
118 \def\keithk{k} % keith local syncopation score for a note
|
csong@52
|
119 \def\keithostart{\mathfrak{o}}
|
csong@52
|
120 \def\keithoend{\mathfrak{e}}
|
csong@52
|
121 \def\keithd{g}
|
csong@52
|
122 \def\keitha{\xi}
|
csong@52
|
123
|
csong@52
|
124 % Pressing specific
|
csong@52
|
125 \def\pressing{PRS}
|
csong@52
|
126 \def\prssubdiv{\mathcal{L}}
|
csong@52
|
127 \def\prstotalfunc{f}
|
csong@52
|
128 \def\prstypefunc{g}
|
csong@52
|
129 \def\prssumfunc{q}
|
csong@52
|
130
|
csong@52
|
131
|
csong@52
|
132 % metrical
|
csong@52
|
133 \def\metrical{TMC} %tousaint's metrical complexity
|
csong@52
|
134 \def\metricity{\varphi}
|
csong@52
|
135 \def\binaryspanvectorhat{\hat{\binaryspanvector}}
|
csong@52
|
136 \def\binaryspanmemberhat{\hat{\binaryspanmember}}
|
csong@52
|
137
|
csong@52
|
138 %off-beatness
|
csong@52
|
139 \def\offbeat{TOB}
|
csong@52
|
140 \def\tobweight{\varsigma}
|
csong@52
|
141
|
csong@52
|
142
|
csong@52
|
143 \def\sioros{SG}
|
csong@52
|
144 \def\levelsrange{\beta}
|
csong@52
|
145 \def\previousweight{\gamma}
|
csong@52
|
146 \def\sgdif{\vartheta}
|
csong@52
|
147 \def\sgaverage{u}
|
csong@52
|
148 \def\sgpotential{\phi}
|
csong@52
|
149 \def\sgscore{s}
|
csong@52
|
150 %\def\sgx{{1}}
|
csong@52
|
151 %\def\sgy{{2}}
|
csong@52
|
152 \def\sgnext{{\rho}}
|
csong@52
|
153 \def\sgprev{{\varrho}}
|
csong@52
|
154 \def\sghhat{\ell}%{\hat{\metricweight}}}
|
csong@52
|
155 \def\sgmhat{{\hat{\spanindex}}}
|
csong@52
|
156 \def\maxmetricweight{\metricmember_\textrm{max}}
|
csong@52
|
157
|
csong@52
|
158
|
csong@52
|
159 % WNBD specific
|
csong@52
|
160 \def\wnbd{WNBD}
|
csong@52
|
161 \def\wnbdD{\mathcal{W}}
|
csong@52
|
162 \def\wnbdT{\mathcal{T}}
|
csong@52
|
163 \def\strongbeat{\mu}
|
csong@52
|
164 \def\strongbeatindex{i}
|
csong@52
|
165
|
csong@52
|
166 %Keller-Schubert Autocorrelation
|
csong@52
|
167 \def\ksa{KSA}
|
csong@52
|
168
|
csong@52
|
169
|
csong@52
|
170 \def\pvalue{p}
|
csong@52
|
171 \def\regression{r}
|
csong@52
|
172
|
csong@52
|
173 % Best-Single Combined
|
csong@52
|
174 \def\bsingle{\textrm{BSC}}
|
csong@52
|
175 \def\bsingletwo{\bsingle_2}
|
csong@52
|
176 \def\bsinglethree{\bsingle_3}
|
csong@52
|
177
|
csong@52
|
178 %Weighted-Multiple Combined
|
csong@52
|
179 \def\wmultiple{\textrm{WMC}}
|
csong@52
|
180
|
csong@52
|
181 % Tempo-Dependent
|
csong@52
|
182 \def\tempo{\Upsilon}
|
csong@52
|
183 \def\td{\textsf{T}}
|
csong@52
|
184 \def\tdmodel{\textrm{M}}
|
csong@52
|
185 \def\bigtild{\hspace{-0.12cm}\sim\hspace{-0.12cm}}
|
csong@52
|
186 \def\littletild{\sim}
|
csong@52
|
187
|
csong@52
|
188
|
csong@52
|
189 \def\scalingfunction{F}
|
csong@52
|
190
|
csong@52
|
191 % rhythm categories
|
csong@52
|
192 \def\binary{4/4 monorhythms}
|
csong@52
|
193 \def\ternary{6/8 monorhythms}
|
csong@52
|
194 \def\polyrhythms{polyrhythms}
|
csong@52
|
195
|
csong@52
|
196 \newcommand{\refFig}[1] {Figure~\ref{#1}}
|
csong@52
|
197 \newcommand{\shortCap}[2] {\caption[#1]{#1 #2}}
|
csong@52
|
198 %\newcommand{\url}[1] {\texttt{#1}}
|
csong@52
|
199
|
csong@52
|
200 % Quadratic function
|
csong@52
|
201 \def\parameterA{a}
|
csong@52
|
202 \def\parameterB{b}
|
csong@52
|
203 \def\parameterC{c}
|
csong@52
|
204
|
csong@52
|
205 \def\sigp{0.001} |