\documentclass{article}
\usepackage{scalefnt} %Mandatory: used to scale font in the pitch class histo
\usepackage{tikz} %Mandatory: used to draw the pitch class histo
\usepackage{hyperref}

\title{Bobby McFerrin Demonstrates the Power of the Pentatonic Scale}

\begin{document}

\maketitle

This shows the pentatonic scale used in \url{http://www.youtube.com/watch?v=ne6tB2KiZuk}
The analysis was done with Tarsos  \url{http://tarsos.0110.be}.

\begin{figure}
\centering
\begin{tikzpicture}[x=0.008cm,y=0.008cm,scale=0.7]

  \def\xmin{0}
  \def\xmax{1200}
  \def\ymin{0}
  \def\ymax{650}
  \def\ticksize{12}
    
  % plot the data from the file data.dat
  % smooth the curve and mark the data point with a dot
  \draw[color=blue] plot[mark=*,mark size=0.5pt] file
  {audio.dat};  

  % xticks
 \foreach \x in {87,255,453,753,981}
     \draw[style=solid] (\x,\ymin+\ticksize) -- (\x,\ymin-\ticksize);
     
 % xticks labels
  \foreach \x in {87,255,453,753,981}
    \node at (\x, \ymin) [below] {$\x$};
 
  % Scale as a reference (dashed light gray)
  \foreach \x in {87,255,453,753,981}
    \draw[style=dashed,color=gray] (\x,\ymin) -- (\x,\ymax);
   
  % y ticks (every 100 annotations)
  \foreach \y in {100,200,...,600}
    \draw[style=solid] (\xmin+\ticksize,\y) -- (\xmin-\ticksize,\y);
    
  %yticks labels
  \foreach \y in {100,200,...,600}
    \node at (\xmin,\y) [left] {$\y$};
  
  % axes
  \draw[-|] (\xmin,\ymin) -- (\xmax,\ymin); 
  \draw[->] (\xmin,\ymin) -- (\xmin,\ymax+50);
  
  % axes labels
  \node at (625,-60) [below] {$Pitch\ (cent)$};
  \node at (-200,325) [below,rotate=90] {$Number\ of\ annotations$};
 

\end{tikzpicture}
\label{fig:pitch_class_histogram}
\caption{Pitch class histogram}
\end{figure}
\begin{table}
\begin{center}
\begin{tabular}{c||  c  c  c  c  c  }	
P.C. & 87 & 255 & 453 & 753 & 981 \\
\hline
\hline
87 & 0 & 168 & 366 & 666 & 894\\
255 & 1032 & 0 & 198 & 498 & 726\\
453 & 834 & 1002 & 0 & 300 & 528\\
753 & 534 & 702 & 900 & 0 & 228\\
981 & 306 & 474 & 672 & 972 & 0     	
\end{tabular}
\end{center}
\label{tbl:pitch_class_interval_matrix}
\caption{Pitch class interval matric. P.C. stands for Pitch Class, the values are given in cents.}
\end{table}

\end{document}
