this is for holding javascript data
Dylan Freedman edited keyfinding.tex
about 9 years ago
Commit id: d7692284fa5dadf18b23ff34e74827e47cccdce6
deletions | additions
diff --git a/keyfinding.tex b/keyfinding.tex
index 643c96b..95340e1 100644
--- a/keyfinding.tex
+++ b/keyfinding.tex
...
The revised key finding algorithm takes a summation of $r$ calculations involving every key-to-chord function, with an emphasis on $one$, and incentivizes matching first and final chords with the key, returning the key that satisfies:
\begin{multline} \begin{multline*}
K_e(s) = \min_{k_0}\left( 4 \cdot r(s,one,k_0) + r(s,four,k_0) + r(s,five,k_0) + r(s,six,k_0) +\\
\hspace{2cm} \begin{cases} -4 &\text{if the first chord of }s\text{ matches }k_0\text{, and} \\ -4 &\text{if the last chord of }s\text{ matches }k_0 \end{cases} \right)
\end{multline} \end{multline*}
In my implementation, a chord was determined \textit{matching} if its raw TPS score (0.0-13.0) was at most 2.0 when compared with $one(k_0)$.