\hypertarget{printing_8c}{}\doxysection{src/printing.c File Reference}
\label{printing_8c}\index{src/printing.c@{src/printing.c}}
{\ttfamily \#include \char`\"{}printing.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}modsigned.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}mydefs.\+h\char`\"{}}\newline
{\ttfamily \#include $<$math.\+h$>$}\newline
{\ttfamily \#include $<$stdarg.\+h$>$}\newline
{\ttfamily \#include $<$stdio.\+h$>$}\newline
{\ttfamily \#include $<$string.\+h$>$}\newline
Include dependency graph for printing.\+c\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{printing_8c__incl}
\end{center}
\end{figure}
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{printing_8c_a82573859711fce56f1aa0a76b18a9b18}{COLOR\+\_\+\+CYAN}}~\char`\"{}\textbackslash{}033\mbox{[}96m\char`\"{}
\item 
\#define \mbox{\hyperlink{printing_8c_ad86358bf19927183dd7b4ae215a29731}{COLOR\+\_\+\+RED}}~\char`\"{}\textbackslash{}033\mbox{[}31m\char`\"{}
\item 
\#define \mbox{\hyperlink{printing_8c_afc9149f5de51bd9ac4f5ebbfa153f018}{COLOR\+\_\+\+GREEN}}~\char`\"{}\textbackslash{}033\mbox{[}32m\char`\"{}
\item 
\#define \mbox{\hyperlink{printing_8c_a17f760256046df23dd0ab46602f04d02}{COLOR\+\_\+\+RESET}}~\char`\"{}\textbackslash{}033\mbox{[}0m\char`\"{}
\item 
\#define \mbox{\hyperlink{printing_8c_ae188a9aa3029d42e76efeeb396df83c8}{CURSOR\+\_\+\+SAVE}}~\char`\"{}\textbackslash{}033\mbox{[}s\char`\"{}
\item 
\#define \mbox{\hyperlink{printing_8c_ae1f33ef35adad7959431cffafec1401d}{CURSOR\+\_\+\+RESTORE}}~\char`\"{}\textbackslash{}033\mbox{[}u\char`\"{}
\item 
\#define \mbox{\hyperlink{printing_8c_a87990c4d7817bed9fd3783aef0b2b2c7}{CLEAR\+\_\+\+LINE}}~\char`\"{}\textbackslash{}033\mbox{[}0K\char`\"{}
\item 
\#define \mbox{\hyperlink{printing_8c_a4d42a5dd83e59974b3ffeba2a3ac1202}{CURSOR\+\_\+\+ROW12}}~\char`\"{}\textbackslash{}033\mbox{[}12;0H\char`\"{}
\item 
\#define \mbox{\hyperlink{printing_8c_a517e02855c0b1dac215c87911fa7a21c}{CURSOR\+\_\+\+ROW2}}~\char`\"{}\textbackslash{}033\mbox{[}2;0H\char`\"{}
\item 
\#define \mbox{\hyperlink{printing_8c_a6af1e42cf7d16e04d1508f4342d2f38f}{CURSOR\+\_\+\+COL\+\_\+\+FMT}}~\char`\"{}\textbackslash{}033\mbox{[}\%dG\char`\"{}
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{printing_8c_ae2c8f43060cd30d4fcb5a2685e7806c4}{printmsg}} (const char $\ast$fmt,...)
\item 
void \mbox{\hyperlink{printing_8c_a42e65774c872bb2ffd35e7827f481776}{print}} (const char $\ast$fmt,...)
\item 
void \mbox{\hyperlink{printing_8c_a91f68f3cbafc4d522a76c7c45b39f57c}{printheader}} (double fitted\+Rate, unsigned int everyline, double beat\+Error, double seconds)
\item 
void \mbox{\hyperlink{printing_8c_aa747a45ec0e097c47255688f3ef8aa52}{printspaces}} (int maxpos, size\+\_\+t hexvalue, size\+\_\+t mod, size\+\_\+t acolumns, double avg\+Pos, size\+\_\+t correlation\+Threshold)
\begin{DoxyCompactList}\small\item\em Prints spaces to visually represent the position of the maximum correlation in the capture output, based on the provided parameters. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
volatile unsigned int \mbox{\hyperlink{printing_8c_aa28b5120102abf19b078541a17404a86}{columns}}
\end{DoxyCompactItemize}


\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{printing_8c_a87990c4d7817bed9fd3783aef0b2b2c7}\label{printing_8c_a87990c4d7817bed9fd3783aef0b2b2c7}} 
\index{printing.c@{printing.c}!CLEAR\_LINE@{CLEAR\_LINE}}
\index{CLEAR\_LINE@{CLEAR\_LINE}!printing.c@{printing.c}}
\doxysubsubsection{\texorpdfstring{CLEAR\_LINE}{CLEAR\_LINE}}
{\footnotesize\ttfamily \#define CLEAR\+\_\+\+LINE~\char`\"{}\textbackslash{}033\mbox{[}0K\char`\"{}}

\mbox{\Hypertarget{printing_8c_a82573859711fce56f1aa0a76b18a9b18}\label{printing_8c_a82573859711fce56f1aa0a76b18a9b18}} 
\index{printing.c@{printing.c}!COLOR\_CYAN@{COLOR\_CYAN}}
\index{COLOR\_CYAN@{COLOR\_CYAN}!printing.c@{printing.c}}
\doxysubsubsection{\texorpdfstring{COLOR\_CYAN}{COLOR\_CYAN}}
{\footnotesize\ttfamily \#define COLOR\+\_\+\+CYAN~\char`\"{}\textbackslash{}033\mbox{[}96m\char`\"{}}

\mbox{\Hypertarget{printing_8c_afc9149f5de51bd9ac4f5ebbfa153f018}\label{printing_8c_afc9149f5de51bd9ac4f5ebbfa153f018}} 
\index{printing.c@{printing.c}!COLOR\_GREEN@{COLOR\_GREEN}}
\index{COLOR\_GREEN@{COLOR\_GREEN}!printing.c@{printing.c}}
\doxysubsubsection{\texorpdfstring{COLOR\_GREEN}{COLOR\_GREEN}}
{\footnotesize\ttfamily \#define COLOR\+\_\+\+GREEN~\char`\"{}\textbackslash{}033\mbox{[}32m\char`\"{}}

\mbox{\Hypertarget{printing_8c_ad86358bf19927183dd7b4ae215a29731}\label{printing_8c_ad86358bf19927183dd7b4ae215a29731}} 
\index{printing.c@{printing.c}!COLOR\_RED@{COLOR\_RED}}
\index{COLOR\_RED@{COLOR\_RED}!printing.c@{printing.c}}
\doxysubsubsection{\texorpdfstring{COLOR\_RED}{COLOR\_RED}}
{\footnotesize\ttfamily \#define COLOR\+\_\+\+RED~\char`\"{}\textbackslash{}033\mbox{[}31m\char`\"{}}

\mbox{\Hypertarget{printing_8c_a17f760256046df23dd0ab46602f04d02}\label{printing_8c_a17f760256046df23dd0ab46602f04d02}} 
\index{printing.c@{printing.c}!COLOR\_RESET@{COLOR\_RESET}}
\index{COLOR\_RESET@{COLOR\_RESET}!printing.c@{printing.c}}
\doxysubsubsection{\texorpdfstring{COLOR\_RESET}{COLOR\_RESET}}
{\footnotesize\ttfamily \#define COLOR\+\_\+\+RESET~\char`\"{}\textbackslash{}033\mbox{[}0m\char`\"{}}

\mbox{\Hypertarget{printing_8c_a6af1e42cf7d16e04d1508f4342d2f38f}\label{printing_8c_a6af1e42cf7d16e04d1508f4342d2f38f}} 
\index{printing.c@{printing.c}!CURSOR\_COL\_FMT@{CURSOR\_COL\_FMT}}
\index{CURSOR\_COL\_FMT@{CURSOR\_COL\_FMT}!printing.c@{printing.c}}
\doxysubsubsection{\texorpdfstring{CURSOR\_COL\_FMT}{CURSOR\_COL\_FMT}}
{\footnotesize\ttfamily \#define CURSOR\+\_\+\+COL\+\_\+\+FMT~\char`\"{}\textbackslash{}033\mbox{[}\%dG\char`\"{}}

\mbox{\Hypertarget{printing_8c_ae1f33ef35adad7959431cffafec1401d}\label{printing_8c_ae1f33ef35adad7959431cffafec1401d}} 
\index{printing.c@{printing.c}!CURSOR\_RESTORE@{CURSOR\_RESTORE}}
\index{CURSOR\_RESTORE@{CURSOR\_RESTORE}!printing.c@{printing.c}}
\doxysubsubsection{\texorpdfstring{CURSOR\_RESTORE}{CURSOR\_RESTORE}}
{\footnotesize\ttfamily \#define CURSOR\+\_\+\+RESTORE~\char`\"{}\textbackslash{}033\mbox{[}u\char`\"{}}

\mbox{\Hypertarget{printing_8c_a4d42a5dd83e59974b3ffeba2a3ac1202}\label{printing_8c_a4d42a5dd83e59974b3ffeba2a3ac1202}} 
\index{printing.c@{printing.c}!CURSOR\_ROW12@{CURSOR\_ROW12}}
\index{CURSOR\_ROW12@{CURSOR\_ROW12}!printing.c@{printing.c}}
\doxysubsubsection{\texorpdfstring{CURSOR\_ROW12}{CURSOR\_ROW12}}
{\footnotesize\ttfamily \#define CURSOR\+\_\+\+ROW12~\char`\"{}\textbackslash{}033\mbox{[}12;0H\char`\"{}}

\mbox{\Hypertarget{printing_8c_a517e02855c0b1dac215c87911fa7a21c}\label{printing_8c_a517e02855c0b1dac215c87911fa7a21c}} 
\index{printing.c@{printing.c}!CURSOR\_ROW2@{CURSOR\_ROW2}}
\index{CURSOR\_ROW2@{CURSOR\_ROW2}!printing.c@{printing.c}}
\doxysubsubsection{\texorpdfstring{CURSOR\_ROW2}{CURSOR\_ROW2}}
{\footnotesize\ttfamily \#define CURSOR\+\_\+\+ROW2~\char`\"{}\textbackslash{}033\mbox{[}2;0H\char`\"{}}

\mbox{\Hypertarget{printing_8c_ae188a9aa3029d42e76efeeb396df83c8}\label{printing_8c_ae188a9aa3029d42e76efeeb396df83c8}} 
\index{printing.c@{printing.c}!CURSOR\_SAVE@{CURSOR\_SAVE}}
\index{CURSOR\_SAVE@{CURSOR\_SAVE}!printing.c@{printing.c}}
\doxysubsubsection{\texorpdfstring{CURSOR\_SAVE}{CURSOR\_SAVE}}
{\footnotesize\ttfamily \#define CURSOR\+\_\+\+SAVE~\char`\"{}\textbackslash{}033\mbox{[}s\char`\"{}}



\doxysubsection{Function Documentation}
\mbox{\Hypertarget{printing_8c_a42e65774c872bb2ffd35e7827f481776}\label{printing_8c_a42e65774c872bb2ffd35e7827f481776}} 
\index{printing.c@{printing.c}!print@{print}}
\index{print@{print}!printing.c@{printing.c}}
\doxysubsubsection{\texorpdfstring{print()}{print()}}
{\footnotesize\ttfamily void print (\begin{DoxyParamCaption}\item[{const char $\ast$}]{fmt,  }\item[{}]{... }\end{DoxyParamCaption})}

\mbox{\Hypertarget{printing_8c_a91f68f3cbafc4d522a76c7c45b39f57c}\label{printing_8c_a91f68f3cbafc4d522a76c7c45b39f57c}} 
\index{printing.c@{printing.c}!printheader@{printheader}}
\index{printheader@{printheader}!printing.c@{printing.c}}
\doxysubsubsection{\texorpdfstring{printheader()}{printheader()}}
{\footnotesize\ttfamily void printheader (\begin{DoxyParamCaption}\item[{double}]{fitted\+Rate,  }\item[{unsigned int}]{everyline,  }\item[{double}]{beat\+Error,  }\item[{double}]{seconds }\end{DoxyParamCaption})}

\mbox{\Hypertarget{printing_8c_ae2c8f43060cd30d4fcb5a2685e7806c4}\label{printing_8c_ae2c8f43060cd30d4fcb5a2685e7806c4}} 
\index{printing.c@{printing.c}!printmsg@{printmsg}}
\index{printmsg@{printmsg}!printing.c@{printing.c}}
\doxysubsubsection{\texorpdfstring{printmsg()}{printmsg()}}
{\footnotesize\ttfamily void printmsg (\begin{DoxyParamCaption}\item[{const char $\ast$}]{fmt,  }\item[{}]{... }\end{DoxyParamCaption})}

\mbox{\Hypertarget{printing_8c_aa747a45ec0e097c47255688f3ef8aa52}\label{printing_8c_aa747a45ec0e097c47255688f3ef8aa52}} 
\index{printing.c@{printing.c}!printspaces@{printspaces}}
\index{printspaces@{printspaces}!printing.c@{printing.c}}
\doxysubsubsection{\texorpdfstring{printspaces()}{printspaces()}}
{\footnotesize\ttfamily void printspaces (\begin{DoxyParamCaption}\item[{int}]{maxpos,  }\item[{size\+\_\+t}]{hexvalue,  }\item[{size\+\_\+t}]{mod,  }\item[{size\+\_\+t}]{acolumns,  }\item[{double}]{avg\+Pos,  }\item[{size\+\_\+t}]{correlation\+Threshold }\end{DoxyParamCaption})}



Prints spaces to visually represent the position of the maximum correlation in the capture output, based on the provided parameters. 


\begin{DoxyParams}{Parameters}
{\em maxpos} & The position of the maximum correlation. \\
\hline
{\em hexvalue} & The hexadecimal value representing the correlation strength. \\
\hline
{\em mod} & The modulus used for calculating the width of the spaces. \\
\hline
{\em acolumns} & The total number of columns available for printing. \\
\hline
{\em avg\+Pos} & The average position of the correlation. \\
\hline
{\em correlation\+Threshold} & The threshold for determining the color of the output. \\
\hline
\end{DoxyParams}


\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{printing_8c_aa28b5120102abf19b078541a17404a86}\label{printing_8c_aa28b5120102abf19b078541a17404a86}} 
\index{printing.c@{printing.c}!columns@{columns}}
\index{columns@{columns}!printing.c@{printing.c}}
\doxysubsubsection{\texorpdfstring{columns}{columns}}
{\footnotesize\ttfamily volatile unsigned int columns\hspace{0.3cm}{\ttfamily [extern]}}

