ponytracker/documentation/html/motifs_8h_source.html

183 lines
21 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>PonyTracker: Fichier source de sources/motifs/motifs.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="vinyl.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">PonyTracker
</div>
<div id="projectbrief">Un projet de tracker de musique</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Généré par Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Page&#160;principale</span></a></li>
<li><a href="annotated.html"><span>Structures&#160;de&#160;données</span></a></li>
<li class="current"><a href="files.html"><span>Fichiers</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Recherche" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
<li><a href="globals.html"><span>Variables&#160;globale</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Structures de données</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Pages</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_08d237fc27d4ecd563f71c5d52f2fecc.html">sources</a></li><li class="navelem"><a class="el" href="dir_7616fbad042c86c3e2bddfa190c5322d.html">motifs</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">motifs.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="motifs_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;</div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#ifndef _motif_h</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _motif_h</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#include &lt;stdio.h&gt;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#define DEFNBRTMP 16</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="struct__note.html"> 19</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__note.html">_note</a>{</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; <span class="keywordtype">int</span> note;</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; <span class="keywordtype">int</span> octave;</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; <span class="keywordtype">int</span> instrument;</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; <span class="keywordtype">int</span> volume;</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; <span class="keywordtype">int</span> effet;</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;} <a class="code" href="struct__note.html">Note</a>;</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="keyword">typedef</span> <a class="code" href="struct__note.html">Note</a> Portee[];</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="keyword">typedef</span> Portee* Mesure[];</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="struct__motif.html"> 31</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__motif.html">_motif</a>{</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; <span class="keywordtype">char</span> nom[10];</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; <span class="keywordtype">int</span> nbrTmp;</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; Mesure* motif;</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <span class="keyword">struct </span><a class="code" href="struct__motif.html">_motif</a>* suivant;</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;} <a class="code" href="struct__motif.html">Motif</a>;</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="keywordtype">int</span> <a class="code" href="motifs_8h.html#a7d602ef1c04ef5126146f9b1b3c71c8f">getIdMotif</a>(<a class="code" href="struct__motif.html">Motif</a>* m);</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="keywordtype">void</span> <a class="code" href="motifs_8h.html#ad004e9f91ca7bcc9411c549a4fe62451">ajouterMotif</a>(<a class="code" href="struct__motif.html">Motif</a>** pliste, <span class="keywordtype">int</span> nbrTmp, <span class="keywordtype">int</span> nbrPortees);</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;<span class="keywordtype">void</span> <a class="code" href="motifs_8h.html#acc86e3bfa2b84ae375ca472e95967ac6">definirNomMotif</a>(<a class="code" href="struct__motif.html">Motif</a>* m, <span class="keywordtype">char</span>* nom);</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;<span class="comment">// void definirNbrTmp(Motif* m, int nbrTmp);</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;<span class="comment">// C&#39;est chiant de changer le nomre de temps en cours de route,</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;<span class="comment">// donc on le fera après le proto.</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;<span class="keywordtype">void</span> <a class="code" href="motifs_8h.html#acd5428841ea3c29a618974d40bc9efe9">supprimerMotif</a>(<a class="code" href="struct__motif.html">Motif</a>** cellule, <span class="keywordtype">int</span> nbrPortees); <span class="comment">// cellule correspond à l&#39;adresse de l&#39;élément de la liste (avec &amp;)</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;<span class="keywordtype">void</span> <a class="code" href="motifs_8h.html#af42173fbd180b1aa00e97a49d77f56f6">definirNote</a>(<a class="code" href="struct__motif.html">Motif</a>* m, <span class="keywordtype">int</span> portee, <span class="keywordtype">int</span> tmp, <span class="keywordtype">int</span> note);</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;<span class="keywordtype">void</span> <a class="code" href="motifs_8h.html#a46fa52652960a1485a604a3e1017e3cc">definirOctave</a>(<a class="code" href="struct__motif.html">Motif</a>* m, <span class="keywordtype">int</span> portee, <span class="keywordtype">int</span> tmp, <span class="keywordtype">int</span> octave);</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;<span class="keywordtype">void</span> <a class="code" href="motifs_8h.html#a8cd4b2ed51ecbaeb3ecd64da4127c2cc">definirInstrument</a>(<a class="code" href="struct__motif.html">Motif</a>* m, <span class="keywordtype">int</span> portee, <span class="keywordtype">int</span> tmp, <span class="keywordtype">int</span> intrument);</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;<span class="keywordtype">void</span> <a class="code" href="motifs_8h.html#a8aee8833f47e110e27de823ac557e8ac">definirVolume</a>(<a class="code" href="struct__motif.html">Motif</a>* m, <span class="keywordtype">int</span> portee, <span class="keywordtype">int</span> tmp, <span class="keywordtype">int</span> volume);</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;<span class="keywordtype">void</span> <a class="code" href="motifs_8h.html#adc0b31b456f810c890b94357f3ba8a85">definirEffet</a>(<a class="code" href="struct__motif.html">Motif</a>* m, <span class="keywordtype">int</span> portee, <span class="keywordtype">int</span> tmp, <span class="keywordtype">int</span> effet);</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;<span class="keywordtype">void</span> <a class="code" href="motifs_8h.html#aa74ce94a714f4487b60b3ddcac7bb645">supprimerNote</a>(<a class="code" href="struct__motif.html">Motif</a>* m, <span class="keywordtype">int</span> portee, <span class="keywordtype">int</span> tmp);</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;<span class="comment">// Maintenant, voici les getters (qui intéressent entre autres Majora)</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;<span class="keywordtype">int</span> <a class="code" href="motifs_8h.html#ad9706b025d4ab4474778af8b6a3c1a66">getNote</a>(<a class="code" href="struct__motif.html">Motif</a>* m, <span class="keywordtype">int</span> portee, <span class="keywordtype">int</span> tmp);</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;<span class="keywordtype">int</span> <a class="code" href="motifs_8h.html#a5e7e5ab1812e838fddfa82c3682c4708">getOctave</a>(<a class="code" href="struct__motif.html">Motif</a>* m, <span class="keywordtype">int</span> portee, <span class="keywordtype">int</span> tmp);</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160;<span class="keywordtype">int</span> <a class="code" href="motifs_8h.html#a6b6a18807e4f73c7710d611c7ff6d9f6">getInstrument</a>(<a class="code" href="struct__motif.html">Motif</a>* m, <span class="keywordtype">int</span> portee, <span class="keywordtype">int</span> tmp);</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160;<span class="keywordtype">int</span> <a class="code" href="motifs_8h.html#a8c81aabb9b5fa55bad1c2ddb8d2ee6a9">getVolume</a>(<a class="code" href="struct__motif.html">Motif</a>* m, <span class="keywordtype">int</span> portee, <span class="keywordtype">int</span> tmp);</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160;</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160;<span class="keywordtype">int</span> <a class="code" href="motifs_8h.html#a8c6e71f1d25b4a9fba76a3527a592a8b">getEffet</a>(<a class="code" href="struct__motif.html">Motif</a>* m, <span class="keywordtype">int</span> portee, <span class="keywordtype">int</span> tmp);</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160;</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="motifs_8h_html_aa74ce94a714f4487b60b3ddcac7bb645"><div class="ttname"><a href="motifs_8h.html#aa74ce94a714f4487b60b3ddcac7bb645">supprimerNote</a></div><div class="ttdeci">void supprimerNote(Motif *m, int portee, int tmp)</div><div class="ttdef"><b>Definition:</b> motifs.c:73</div></div>
<div class="ttc" id="motifs_8h_html_a8c81aabb9b5fa55bad1c2ddb8d2ee6a9"><div class="ttname"><a href="motifs_8h.html#a8c81aabb9b5fa55bad1c2ddb8d2ee6a9">getVolume</a></div><div class="ttdeci">int getVolume(Motif *m, int portee, int tmp)</div><div class="ttdef"><b>Definition:</b> motifs.c:89</div></div>
<div class="ttc" id="motifs_8h_html_ad004e9f91ca7bcc9411c549a4fe62451"><div class="ttname"><a href="motifs_8h.html#ad004e9f91ca7bcc9411c549a4fe62451">ajouterMotif</a></div><div class="ttdeci">void ajouterMotif(Motif **pliste, int nbrTmp, int nbrPortees)</div><div class="ttdef"><b>Definition:</b> motifs.c:22</div></div>
<div class="ttc" id="struct__motif_html"><div class="ttname"><a href="struct__motif.html">_motif</a></div><div class="ttdef"><b>Definition:</b> motifs.h:31</div></div>
<div class="ttc" id="motifs_8h_html_a7d602ef1c04ef5126146f9b1b3c71c8f"><div class="ttname"><a href="motifs_8h.html#a7d602ef1c04ef5126146f9b1b3c71c8f">getIdMotif</a></div><div class="ttdeci">int getIdMotif(Motif *m)</div><div class="ttdef"><b>Definition:</b> motifs.c:14</div></div>
<div class="ttc" id="motifs_8h_html_a5e7e5ab1812e838fddfa82c3682c4708"><div class="ttname"><a href="motifs_8h.html#a5e7e5ab1812e838fddfa82c3682c4708">getOctave</a></div><div class="ttdeci">int getOctave(Motif *m, int portee, int tmp)</div><div class="ttdef"><b>Definition:</b> motifs.c:81</div></div>
<div class="ttc" id="struct__note_html"><div class="ttname"><a href="struct__note.html">_note</a></div><div class="ttdef"><b>Definition:</b> motifs.h:19</div></div>
<div class="ttc" id="motifs_8h_html_ad9706b025d4ab4474778af8b6a3c1a66"><div class="ttname"><a href="motifs_8h.html#ad9706b025d4ab4474778af8b6a3c1a66">getNote</a></div><div class="ttdeci">int getNote(Motif *m, int portee, int tmp)</div><div class="ttdef"><b>Definition:</b> motifs.c:77</div></div>
<div class="ttc" id="motifs_8h_html_a46fa52652960a1485a604a3e1017e3cc"><div class="ttname"><a href="motifs_8h.html#a46fa52652960a1485a604a3e1017e3cc">definirOctave</a></div><div class="ttdeci">void definirOctave(Motif *m, int portee, int tmp, int octave)</div><div class="ttdef"><b>Definition:</b> motifs.c:57</div></div>
<div class="ttc" id="motifs_8h_html_a8aee8833f47e110e27de823ac557e8ac"><div class="ttname"><a href="motifs_8h.html#a8aee8833f47e110e27de823ac557e8ac">definirVolume</a></div><div class="ttdeci">void definirVolume(Motif *m, int portee, int tmp, int volume)</div><div class="ttdef"><b>Definition:</b> motifs.c:65</div></div>
<div class="ttc" id="motifs_8h_html_a8c6e71f1d25b4a9fba76a3527a592a8b"><div class="ttname"><a href="motifs_8h.html#a8c6e71f1d25b4a9fba76a3527a592a8b">getEffet</a></div><div class="ttdeci">int getEffet(Motif *m, int portee, int tmp)</div><div class="ttdef"><b>Definition:</b> motifs.c:93</div></div>
<div class="ttc" id="motifs_8h_html_acc86e3bfa2b84ae375ca472e95967ac6"><div class="ttname"><a href="motifs_8h.html#acc86e3bfa2b84ae375ca472e95967ac6">definirNomMotif</a></div><div class="ttdeci">void definirNomMotif(Motif *m, char *nom)</div><div class="ttdef"><b>Definition:</b> motifs.c:38</div></div>
<div class="ttc" id="motifs_8h_html_acd5428841ea3c29a618974d40bc9efe9"><div class="ttname"><a href="motifs_8h.html#acd5428841ea3c29a618974d40bc9efe9">supprimerMotif</a></div><div class="ttdeci">void supprimerMotif(Motif **cellule, int nbrPortees)</div><div class="ttdef"><b>Definition:</b> motifs.c:42</div></div>
<div class="ttc" id="motifs_8h_html_adc0b31b456f810c890b94357f3ba8a85"><div class="ttname"><a href="motifs_8h.html#adc0b31b456f810c890b94357f3ba8a85">definirEffet</a></div><div class="ttdeci">void definirEffet(Motif *m, int portee, int tmp, int effet)</div><div class="ttdef"><b>Definition:</b> motifs.c:69</div></div>
<div class="ttc" id="motifs_8h_html_af42173fbd180b1aa00e97a49d77f56f6"><div class="ttname"><a href="motifs_8h.html#af42173fbd180b1aa00e97a49d77f56f6">definirNote</a></div><div class="ttdeci">void definirNote(Motif *m, int portee, int tmp, int note)</div><div class="ttdef"><b>Definition:</b> motifs.c:53</div></div>
<div class="ttc" id="motifs_8h_html_a6b6a18807e4f73c7710d611c7ff6d9f6"><div class="ttname"><a href="motifs_8h.html#a6b6a18807e4f73c7710d611c7ff6d9f6">getInstrument</a></div><div class="ttdeci">int getInstrument(Motif *m, int portee, int tmp)</div><div class="ttdef"><b>Definition:</b> motifs.c:85</div></div>
<div class="ttc" id="motifs_8h_html_a8cd4b2ed51ecbaeb3ecd64da4127c2cc"><div class="ttname"><a href="motifs_8h.html#a8cd4b2ed51ecbaeb3ecd64da4127c2cc">definirInstrument</a></div><div class="ttdeci">void definirInstrument(Motif *m, int portee, int tmp, int intrument)</div><div class="ttdef"><b>Definition:</b> motifs.c:61</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Généré le Jeudi 15 Mai 2014 16:53:16 pour PonyTracker par &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>