182 lines
9.0 KiB
TeX
182 lines
9.0 KiB
TeX
\hypertarget{instruments_8h}{\section{Référence du fichier sources/instruments/instruments.h}
|
|
\label{instruments_8h}\index{sources/instruments/instruments.\-h@{sources/instruments/instruments.\-h}}
|
|
}
|
|
{\ttfamily \#include $<$stdio.\-h$>$}\\*
|
|
{\ttfamily \#include $<$stdlib.\-h$>$}\\*
|
|
{\ttfamily \#include $<$string.\-h$>$}\\*
|
|
{\ttfamily \#include $<$math.\-h$>$}\\*
|
|
{\ttfamily \#include \char`\"{}../samples/samples.\-h\char`\"{}}\\*
|
|
Graphe des dépendances par inclusion de instruments.\-h\-:
|
|
Ce graphe montre quels fichiers incluent directement ou indirectement ce fichier \-:
|
|
\subsection*{Structures de données}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
struct \hyperlink{struct__enveloppe}{\-\_\-enveloppe}
|
|
\item
|
|
struct \hyperlink{struct__intrument}{\-\_\-intrument}
|
|
\end{DoxyCompactItemize}
|
|
\subsection*{Définitions de type}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
typedef struct \hyperlink{struct__enveloppe}{\-\_\-enveloppe} \hyperlink{instruments_8h_a936213c201d6c5cf8f5b9f47336efbb0}{Enveloppe}
|
|
\item
|
|
typedef struct \hyperlink{struct__intrument}{\-\_\-intrument} \hyperlink{instruments_8h_a3ea24ed3c5f97006fe85fb5e0d168ebf}{Instrument}
|
|
\end{DoxyCompactItemize}
|
|
\subsection*{Fonctions}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
\hyperlink{fmod_8h_a5e6281045c500b317fa3b60838542994}{void} \hyperlink{instruments_8h_a5bf07257c1018526706f17f5dd2e453d}{ajouter\-Instrument} (\hyperlink{instruments_8h_a3ea24ed3c5f97006fe85fb5e0d168ebf}{Instrument} $\ast$tab\mbox{[}$\,$\mbox{]}, int i)
|
|
\item
|
|
\hyperlink{fmod_8h_a5e6281045c500b317fa3b60838542994}{void} \hyperlink{instruments_8h_a1b4d0adf7a9012b51b6cf75146ce8e87}{supprimer\-Instrument} (\hyperlink{instruments_8h_a3ea24ed3c5f97006fe85fb5e0d168ebf}{Instrument} $\ast$tab\mbox{[}$\,$\mbox{]}, int i)
|
|
\item
|
|
int \hyperlink{instruments_8h_a61e64131ac7d4ab157492278e13c8c86}{get\-Volume} (\hyperlink{instruments_8h_a3ea24ed3c5f97006fe85fb5e0d168ebf}{Instrument} $\ast$inst)
|
|
\item
|
|
int \hyperlink{instruments_8h_a1bff83ef5393fa8e882dc0c5b7660fcd}{get\-Balance} (\hyperlink{instruments_8h_a3ea24ed3c5f97006fe85fb5e0d168ebf}{Instrument} $\ast$inst)
|
|
\item
|
|
char $\ast$ \hyperlink{instruments_8h_aa4f31c49f61e26b4b93aef01d63e5ec7}{get\-Nom\-Inst} (\hyperlink{instruments_8h_a3ea24ed3c5f97006fe85fb5e0d168ebf}{Instrument} $\ast$inst)
|
|
\item
|
|
\hyperlink{fmod_8h_a5e6281045c500b317fa3b60838542994}{void} \hyperlink{instruments_8h_abd1a070026808669fdf4b452da81d0f6}{set\-Volume} (\hyperlink{instruments_8h_a3ea24ed3c5f97006fe85fb5e0d168ebf}{Instrument} $\ast$inst, int volume)
|
|
\item
|
|
\hyperlink{fmod_8h_a5e6281045c500b317fa3b60838542994}{void} \hyperlink{instruments_8h_ae1988f980b621165d938c5ac6b541d25}{set\-Balance} (\hyperlink{instruments_8h_a3ea24ed3c5f97006fe85fb5e0d168ebf}{Instrument} $\ast$inst, int balance)
|
|
\item
|
|
\hyperlink{fmod_8h_a5e6281045c500b317fa3b60838542994}{void} \hyperlink{instruments_8h_a1f6ed72cbc1a2aa4dae0863269e728e2}{set\-Nom\-Inst} (\hyperlink{instruments_8h_a3ea24ed3c5f97006fe85fb5e0d168ebf}{Instrument} $\ast$inst, char $\ast$nom)
|
|
\item
|
|
\hyperlink{fmod_8h_aeb841aa4b4b5f444b5d739d865b420af}{float} \hyperlink{instruments_8h_a23b2d1a486a42541c8d094bacbf4c1b8}{rapport\-Pitch} (\hyperlink{instruments_8h_a3ea24ed3c5f97006fe85fb5e0d168ebf}{Instrument} $\ast$inst, int note, int octave)
|
|
\end{DoxyCompactItemize}
|
|
|
|
|
|
\subsection{Description détaillée}
|
|
Gestion des instruments
|
|
|
|
\begin{DoxyVersion}{Version}
|
|
1
|
|
\end{DoxyVersion}
|
|
\begin{DoxyAuthor}{Auteur}
|
|
Guy
|
|
\end{DoxyAuthor}
|
|
\begin{DoxyDate}{Date}
|
|
Mai 2014
|
|
\end{DoxyDate}
|
|
|
|
|
|
Définition dans le fichier \hyperlink{instruments_8h_source}{instruments.\-h}.
|
|
|
|
|
|
|
|
\subsection{Documentation des définitions de type}
|
|
\hypertarget{instruments_8h_a936213c201d6c5cf8f5b9f47336efbb0}{\index{instruments.\-h@{instruments.\-h}!Enveloppe@{Enveloppe}}
|
|
\index{Enveloppe@{Enveloppe}!instruments.h@{instruments.\-h}}
|
|
\subsubsection[{Enveloppe}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf \-\_\-enveloppe} {\bf Enveloppe}}}\label{instruments_8h_a936213c201d6c5cf8f5b9f47336efbb0}
|
|
\hypertarget{instruments_8h_a3ea24ed3c5f97006fe85fb5e0d168ebf}{\index{instruments.\-h@{instruments.\-h}!Instrument@{Instrument}}
|
|
\index{Instrument@{Instrument}!instruments.h@{instruments.\-h}}
|
|
\subsubsection[{Instrument}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf \-\_\-intrument} {\bf Instrument}}}\label{instruments_8h_a3ea24ed3c5f97006fe85fb5e0d168ebf}
|
|
|
|
|
|
\subsection{Documentation des fonctions}
|
|
\hypertarget{instruments_8h_a5bf07257c1018526706f17f5dd2e453d}{\index{instruments.\-h@{instruments.\-h}!ajouter\-Instrument@{ajouter\-Instrument}}
|
|
\index{ajouter\-Instrument@{ajouter\-Instrument}!instruments.h@{instruments.\-h}}
|
|
\subsubsection[{ajouter\-Instrument}]{\setlength{\rightskip}{0pt plus 5cm}{\bf void} ajouter\-Instrument (
|
|
\begin{DoxyParamCaption}
|
|
\item[{{\bf Instrument} $\ast$}]{tab\mbox{[}$\,$\mbox{]}, }
|
|
\item[{int}]{i}
|
|
\end{DoxyParamCaption}
|
|
)}}\label{instruments_8h_a5bf07257c1018526706f17f5dd2e453d}
|
|
|
|
|
|
Définition à la ligne 13 du fichier instruments.\-c.
|
|
|
|
\hypertarget{instruments_8h_a1bff83ef5393fa8e882dc0c5b7660fcd}{\index{instruments.\-h@{instruments.\-h}!get\-Balance@{get\-Balance}}
|
|
\index{get\-Balance@{get\-Balance}!instruments.h@{instruments.\-h}}
|
|
\subsubsection[{get\-Balance}]{\setlength{\rightskip}{0pt plus 5cm}int get\-Balance (
|
|
\begin{DoxyParamCaption}
|
|
\item[{{\bf Instrument} $\ast$}]{inst}
|
|
\end{DoxyParamCaption}
|
|
)}}\label{instruments_8h_a1bff83ef5393fa8e882dc0c5b7660fcd}
|
|
|
|
|
|
Définition à la ligne 26 du fichier instruments.\-c.
|
|
|
|
\hypertarget{instruments_8h_aa4f31c49f61e26b4b93aef01d63e5ec7}{\index{instruments.\-h@{instruments.\-h}!get\-Nom\-Inst@{get\-Nom\-Inst}}
|
|
\index{get\-Nom\-Inst@{get\-Nom\-Inst}!instruments.h@{instruments.\-h}}
|
|
\subsubsection[{get\-Nom\-Inst}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ get\-Nom\-Inst (
|
|
\begin{DoxyParamCaption}
|
|
\item[{{\bf Instrument} $\ast$}]{inst}
|
|
\end{DoxyParamCaption}
|
|
)}}\label{instruments_8h_aa4f31c49f61e26b4b93aef01d63e5ec7}
|
|
|
|
|
|
Définition à la ligne 30 du fichier instruments.\-c.
|
|
|
|
\hypertarget{instruments_8h_a61e64131ac7d4ab157492278e13c8c86}{\index{instruments.\-h@{instruments.\-h}!get\-Volume@{get\-Volume}}
|
|
\index{get\-Volume@{get\-Volume}!instruments.h@{instruments.\-h}}
|
|
\subsubsection[{get\-Volume}]{\setlength{\rightskip}{0pt plus 5cm}int get\-Volume (
|
|
\begin{DoxyParamCaption}
|
|
\item[{{\bf Instrument} $\ast$}]{inst}
|
|
\end{DoxyParamCaption}
|
|
)}}\label{instruments_8h_a61e64131ac7d4ab157492278e13c8c86}
|
|
|
|
|
|
Définition à la ligne 22 du fichier instruments.\-c.
|
|
|
|
\hypertarget{instruments_8h_a23b2d1a486a42541c8d094bacbf4c1b8}{\index{instruments.\-h@{instruments.\-h}!rapport\-Pitch@{rapport\-Pitch}}
|
|
\index{rapport\-Pitch@{rapport\-Pitch}!instruments.h@{instruments.\-h}}
|
|
\subsubsection[{rapport\-Pitch}]{\setlength{\rightskip}{0pt plus 5cm}{\bf float} rapport\-Pitch (
|
|
\begin{DoxyParamCaption}
|
|
\item[{{\bf Instrument} $\ast$}]{inst, }
|
|
\item[{int}]{note, }
|
|
\item[{int}]{octave}
|
|
\end{DoxyParamCaption}
|
|
)}}\label{instruments_8h_a23b2d1a486a42541c8d094bacbf4c1b8}
|
|
|
|
|
|
Définition à la ligne 45 du fichier instruments.\-c.
|
|
|
|
\hypertarget{instruments_8h_ae1988f980b621165d938c5ac6b541d25}{\index{instruments.\-h@{instruments.\-h}!set\-Balance@{set\-Balance}}
|
|
\index{set\-Balance@{set\-Balance}!instruments.h@{instruments.\-h}}
|
|
\subsubsection[{set\-Balance}]{\setlength{\rightskip}{0pt plus 5cm}{\bf void} set\-Balance (
|
|
\begin{DoxyParamCaption}
|
|
\item[{{\bf Instrument} $\ast$}]{inst, }
|
|
\item[{int}]{balance}
|
|
\end{DoxyParamCaption}
|
|
)}}\label{instruments_8h_ae1988f980b621165d938c5ac6b541d25}
|
|
|
|
|
|
Définition à la ligne 37 du fichier instruments.\-c.
|
|
|
|
\hypertarget{instruments_8h_a1f6ed72cbc1a2aa4dae0863269e728e2}{\index{instruments.\-h@{instruments.\-h}!set\-Nom\-Inst@{set\-Nom\-Inst}}
|
|
\index{set\-Nom\-Inst@{set\-Nom\-Inst}!instruments.h@{instruments.\-h}}
|
|
\subsubsection[{set\-Nom\-Inst}]{\setlength{\rightskip}{0pt plus 5cm}{\bf void} set\-Nom\-Inst (
|
|
\begin{DoxyParamCaption}
|
|
\item[{{\bf Instrument} $\ast$}]{inst, }
|
|
\item[{char $\ast$}]{nom}
|
|
\end{DoxyParamCaption}
|
|
)}}\label{instruments_8h_a1f6ed72cbc1a2aa4dae0863269e728e2}
|
|
|
|
|
|
Définition à la ligne 41 du fichier instruments.\-c.
|
|
|
|
\hypertarget{instruments_8h_abd1a070026808669fdf4b452da81d0f6}{\index{instruments.\-h@{instruments.\-h}!set\-Volume@{set\-Volume}}
|
|
\index{set\-Volume@{set\-Volume}!instruments.h@{instruments.\-h}}
|
|
\subsubsection[{set\-Volume}]{\setlength{\rightskip}{0pt plus 5cm}{\bf void} set\-Volume (
|
|
\begin{DoxyParamCaption}
|
|
\item[{{\bf Instrument} $\ast$}]{inst, }
|
|
\item[{int}]{volume}
|
|
\end{DoxyParamCaption}
|
|
)}}\label{instruments_8h_abd1a070026808669fdf4b452da81d0f6}
|
|
|
|
|
|
Définition à la ligne 33 du fichier instruments.\-c.
|
|
|
|
\hypertarget{instruments_8h_a1b4d0adf7a9012b51b6cf75146ce8e87}{\index{instruments.\-h@{instruments.\-h}!supprimer\-Instrument@{supprimer\-Instrument}}
|
|
\index{supprimer\-Instrument@{supprimer\-Instrument}!instruments.h@{instruments.\-h}}
|
|
\subsubsection[{supprimer\-Instrument}]{\setlength{\rightskip}{0pt plus 5cm}{\bf void} supprimer\-Instrument (
|
|
\begin{DoxyParamCaption}
|
|
\item[{{\bf Instrument} $\ast$}]{tab\mbox{[}$\,$\mbox{]}, }
|
|
\item[{int}]{i}
|
|
\end{DoxyParamCaption}
|
|
)}}\label{instruments_8h_a1b4d0adf7a9012b51b6cf75146ce8e87}
|
|
|
|
|
|
Définition à la ligne 18 du fichier instruments.\-c.
|
|
|