ponytracker/documentation/html/motifs_8c_source.html

214 lines
32 KiB
HTML
Raw Permalink Normal View History

2014-05-20 13:17:26 +02:00
<!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.c</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="namespaces.html"><span>Espaces&#160;de&#160;nommage</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>Espaces de nommage</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Définitions de type</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Énumérations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Valeurs énumérées</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><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.c</div> </div>
</div><!--header-->
<div class="contents">
<a href="motifs_8c.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">#include &lt;string.h&gt;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="motifs_8h.html">motifs.h</a>&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;</div>
2014-05-22 00:12:25 +02:00
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="motifs_8h.html#a7d602ef1c04ef5126146f9b1b3c71c8f"> 14</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="motifs_8c.html#a7d602ef1c04ef5126146f9b1b3c71c8f">getIdMotif</a>(<a class="code" href="struct__motif.html">Motif</a>* <a class="code" href="maintest_8c.html#ac40192e3e23a44637d81f0c9a2030600">m</a>){</div>
2014-05-20 13:17:26 +02:00
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160; <span class="keywordflow">if</span> (m == NULL) {</div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160; <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160; } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; <span class="keywordflow">return</span> <a class="code" href="motifs_8c.html#a7d602ef1c04ef5126146f9b1b3c71c8f">getIdMotif</a>(m-&gt;<a class="code" href="struct__motif.html#af5562e6f68c59bdb2e1c8366be359f49">suivant</a>)+1;</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; }</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;}</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;</div>
2014-05-22 00:12:25 +02:00
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="motifs_8h.html#ad004e9f91ca7bcc9411c549a4fe62451"> 22</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="motifs_8c.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> <a class="code" href="main_8c.html#aefd1b139142a277f5da5d87f084b7230">nbrPortees</a>){</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; <a class="code" href="struct__motif.html">Motif</a>* <a class="code" href="maintest_8c.html#ac40192e3e23a44637d81f0c9a2030600">m</a> = malloc(<span class="keyword">sizeof</span>(<a class="code" href="struct__motif.html">Motif</a>));</div>
2014-05-20 13:17:26 +02:00
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; m-&gt;<a class="code" href="struct__motif.html#a2eabad4d5a8a75f82ac6f4a70ce453d3">nbrTmp</a> = <a class="code" href="motifs_8h.html#aaf37e7b044bcdb8ee75fd121f1813dbe">DEFNBRTMP</a>;</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; m-&gt;<a class="code" href="struct__motif.html#af5562e6f68c59bdb2e1c8366be359f49">suivant</a> = *pliste;</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; m-&gt;<a class="code" href="struct__motif.html#ab11468d3826ca780892815ec1fcf6b79">motif</a> = malloc(nbrPortees*<span class="keyword">sizeof</span>(<a class="code" href="motifs_8h.html#aa1507fd96f9b21d8e3ebff92453ac728">Portee</a>*));</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; strcpy(m-&gt;<a class="code" href="struct__motif.html#aa192e522685e809efc7e08f1a9fc3583">nom</a>,<span class="stringliteral">&quot;Motif &quot;</span>);</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; <span class="keywordtype">char</span> nombre[10];</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; sprintf(nombre,<span class="stringliteral">&quot;%d&quot;</span>,<a class="code" href="motifs_8c.html#a7d602ef1c04ef5126146f9b1b3c71c8f">getIdMotif</a>(m));</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; strcat(m-&gt;<a class="code" href="struct__motif.html#aa192e522685e809efc7e08f1a9fc3583">nom</a>, nombre);</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <span class="keywordtype">int</span> i;</div>
2014-05-22 00:12:25 +02:00
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; <span class="keywordflow">for</span> (i=0; i&lt;<a class="code" href="main_8c.html#aefd1b139142a277f5da5d87f084b7230">nbrPortees</a>; i++) {</div>
2014-05-20 13:17:26 +02:00
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; (*m-&gt;<a class="code" href="struct__motif.html#ab11468d3826ca780892815ec1fcf6b79">motif</a>)[i] = calloc(<a class="code" href="motifs_8h.html#aaf37e7b044bcdb8ee75fd121f1813dbe">DEFNBRTMP</a>,<span class="keyword">sizeof</span>(<a class="code" href="struct__note.html">Note</a>));</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; }</div>
2014-05-22 00:12:25 +02:00
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; *pliste = <a class="code" href="maintest_8c.html#ac40192e3e23a44637d81f0c9a2030600">m</a>;</div>
2014-05-20 13:17:26 +02:00
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;}</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;</div>
2014-05-22 00:12:25 +02:00
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="motifs_8h.html#acc86e3bfa2b84ae375ca472e95967ac6"> 38</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="motifs_8c.html#acc86e3bfa2b84ae375ca472e95967ac6">definirNomMotif</a>(<a class="code" href="struct__motif.html">Motif</a>* <a class="code" href="maintest_8c.html#ac40192e3e23a44637d81f0c9a2030600">m</a>, <span class="keywordtype">char</span>* nom){</div>
2014-05-20 13:17:26 +02:00
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; strcpy(m-&gt;<a class="code" href="struct__motif.html#aa192e522685e809efc7e08f1a9fc3583">nom</a>,nom);</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;}</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;</div>
2014-05-22 00:12:25 +02:00
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="motifs_8h.html#acd5428841ea3c29a618974d40bc9efe9"> 42</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="motifs_8c.html#acd5428841ea3c29a618974d40bc9efe9">supprimerMotif</a>(<a class="code" href="struct__motif.html">Motif</a>** cellule, <span class="keywordtype">int</span> <a class="code" href="main_8c.html#aefd1b139142a277f5da5d87f084b7230">nbrPortees</a>){</div>
2014-05-20 13:17:26 +02:00
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keywordtype">int</span> i;</div>
2014-05-22 00:12:25 +02:00
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <span class="keywordflow">for</span> (i=0; i&lt;<a class="code" href="main_8c.html#aefd1b139142a277f5da5d87f084b7230">nbrPortees</a>; i++) {</div>
2014-05-20 13:17:26 +02:00
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; free((*((*cellule)-&gt;motif))[i]);</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; }</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; free((*cellule)-&gt;motif);</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <a class="code" href="struct__motif.html">Motif</a>* aux = (*cellule)-&gt;<a class="code" href="struct__motif.html#af5562e6f68c59bdb2e1c8366be359f49">suivant</a>;</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; free((*cellule));</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; *cellule = aux;</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;}</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;</div>
2014-05-22 00:12:25 +02:00
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="motifs_8h.html#af42173fbd180b1aa00e97a49d77f56f6"> 53</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="motifs_8c.html#af42173fbd180b1aa00e97a49d77f56f6">definirNote</a>(<a class="code" href="struct__motif.html">Motif</a>* <a class="code" href="maintest_8c.html#ac40192e3e23a44637d81f0c9a2030600">m</a>, <span class="keywordtype">int</span> portee, <span class="keywordtype">int</span> tmp, <span class="keywordtype">int</span> note){</div>
2014-05-20 13:17:26 +02:00
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; (*(*m-&gt;<a class="code" href="struct__motif.html#ab11468d3826ca780892815ec1fcf6b79">motif</a>)[portee])[tmp].note = note;</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;}</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;</div>
2014-05-22 00:12:25 +02:00
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="motifs_8h.html#a46fa52652960a1485a604a3e1017e3cc"> 57</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="motifs_8c.html#a46fa52652960a1485a604a3e1017e3cc">definirOctave</a>(<a class="code" href="struct__motif.html">Motif</a>* <a class="code" href="maintest_8c.html#ac40192e3e23a44637d81f0c9a2030600">m</a>, <span class="keywordtype">int</span> portee, <span class="keywordtype">int</span> tmp, <span class="keywordtype">int</span> octave){</div>
2014-05-20 13:17:26 +02:00
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; (*(*m-&gt;<a class="code" href="struct__motif.html#ab11468d3826ca780892815ec1fcf6b79">motif</a>)[portee])[tmp].octave = octave;</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;</div>
2014-05-22 00:12:25 +02:00
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="motifs_8h.html#a8cd4b2ed51ecbaeb3ecd64da4127c2cc"> 61</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="motifs_8c.html#af1e94966c6af95f5a3091721dd62f7db">definirInstrument</a>(<a class="code" href="struct__motif.html">Motif</a>* <a class="code" href="maintest_8c.html#ac40192e3e23a44637d81f0c9a2030600">m</a>, <span class="keywordtype">int</span> portee, <span class="keywordtype">int</span> tmp, <span class="keywordtype">int</span> instrument){</div>
2014-05-20 13:17:26 +02:00
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; (*(*m-&gt;<a class="code" href="struct__motif.html#ab11468d3826ca780892815ec1fcf6b79">motif</a>)[portee])[tmp].instrument = instrument;</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;}</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;</div>
2014-05-22 00:12:25 +02:00
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="motifs_8h.html#a8aee8833f47e110e27de823ac557e8ac"> 65</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="motifs_8c.html#a8aee8833f47e110e27de823ac557e8ac">definirVolume</a>(<a class="code" href="struct__motif.html">Motif</a>* <a class="code" href="maintest_8c.html#ac40192e3e23a44637d81f0c9a2030600">m</a>, <span class="keywordtype">int</span> portee, <span class="keywordtype">int</span> tmp, <span class="keywordtype">int</span> volume){</div>
2014-05-20 13:17:26 +02:00
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; (*(*m-&gt;<a class="code" href="struct__motif.html#ab11468d3826ca780892815ec1fcf6b79">motif</a>)[portee])[tmp].volume = volume;</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;}</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;</div>
2014-05-22 00:12:25 +02:00
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="motifs_8h.html#adc0b31b456f810c890b94357f3ba8a85"> 69</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="motifs_8c.html#adc0b31b456f810c890b94357f3ba8a85">definirEffet</a>(<a class="code" href="struct__motif.html">Motif</a>* <a class="code" href="maintest_8c.html#ac40192e3e23a44637d81f0c9a2030600">m</a>, <span class="keywordtype">int</span> portee, <span class="keywordtype">int</span> tmp, <span class="keywordtype">int</span> effet){</div>
2014-05-20 13:17:26 +02:00
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; (*(*m-&gt;<a class="code" href="struct__motif.html#ab11468d3826ca780892815ec1fcf6b79">motif</a>)[portee])[tmp].effet = effet;</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;}</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;</div>
2014-05-22 00:12:25 +02:00
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="motifs_8h.html#aa74ce94a714f4487b60b3ddcac7bb645"> 73</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="motifs_8c.html#aa74ce94a714f4487b60b3ddcac7bb645">supprimerNote</a>(<a class="code" href="struct__motif.html">Motif</a>* <a class="code" href="maintest_8c.html#ac40192e3e23a44637d81f0c9a2030600">m</a>, <span class="keywordtype">int</span> portee, <span class="keywordtype">int</span> tmp){</div>
2014-05-20 13:17:26 +02:00
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; (*(*m-&gt;<a class="code" href="struct__motif.html#ab11468d3826ca780892815ec1fcf6b79">motif</a>)[portee])[tmp].note = 0;</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;}</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;</div>
2014-05-22 00:12:25 +02:00
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="motifs_8h.html#ad9706b025d4ab4474778af8b6a3c1a66"> 77</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="motifs_8c.html#ad9706b025d4ab4474778af8b6a3c1a66">getNote</a>(<a class="code" href="struct__motif.html">Motif</a>* <a class="code" href="maintest_8c.html#ac40192e3e23a44637d81f0c9a2030600">m</a>, <span class="keywordtype">int</span> portee, <span class="keywordtype">int</span> tmp){</div>
2014-05-20 13:17:26 +02:00
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <span class="keywordflow">return</span> (*(*m-&gt;<a class="code" href="struct__motif.html#ab11468d3826ca780892815ec1fcf6b79">motif</a>)[portee])[tmp].note;</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;}</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;</div>
2014-05-22 00:12:25 +02:00
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="motifs_8h.html#a5e7e5ab1812e838fddfa82c3682c4708"> 81</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="motifs_8c.html#a5e7e5ab1812e838fddfa82c3682c4708">getOctave</a>(<a class="code" href="struct__motif.html">Motif</a>* <a class="code" href="maintest_8c.html#ac40192e3e23a44637d81f0c9a2030600">m</a>, <span class="keywordtype">int</span> portee, <span class="keywordtype">int</span> tmp){</div>
2014-05-20 13:17:26 +02:00
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <span class="keywordflow">return</span> (*(*m-&gt;<a class="code" href="struct__motif.html#ab11468d3826ca780892815ec1fcf6b79">motif</a>)[portee])[tmp].octave;</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;}</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;</div>
2014-05-22 00:12:25 +02:00
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="motifs_8h.html#a6b6a18807e4f73c7710d611c7ff6d9f6"> 85</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="motifs_8c.html#a6b6a18807e4f73c7710d611c7ff6d9f6">getInstrument</a>(<a class="code" href="struct__motif.html">Motif</a>* <a class="code" href="maintest_8c.html#ac40192e3e23a44637d81f0c9a2030600">m</a>, <span class="keywordtype">int</span> portee, <span class="keywordtype">int</span> tmp){</div>
2014-05-20 13:17:26 +02:00
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keywordflow">return</span> (*(*m-&gt;<a class="code" href="struct__motif.html#ab11468d3826ca780892815ec1fcf6b79">motif</a>)[portee])[tmp].instrument;</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;}</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;</div>
2014-05-22 00:12:25 +02:00
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="motifs_8h.html#a8c81aabb9b5fa55bad1c2ddb8d2ee6a9"> 89</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="motifs_8c.html#a8c81aabb9b5fa55bad1c2ddb8d2ee6a9">getVolume</a>(<a class="code" href="struct__motif.html">Motif</a>* <a class="code" href="maintest_8c.html#ac40192e3e23a44637d81f0c9a2030600">m</a>, <span class="keywordtype">int</span> portee, <span class="keywordtype">int</span> tmp){</div>
2014-05-20 13:17:26 +02:00
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="keywordflow">return</span> (*(*m-&gt;<a class="code" href="struct__motif.html#ab11468d3826ca780892815ec1fcf6b79">motif</a>)[portee])[tmp].volume;</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;}</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160;</div>
2014-05-22 00:12:25 +02:00
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="motifs_8h.html#a8c6e71f1d25b4a9fba76a3527a592a8b"> 93</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="motifs_8c.html#a8c6e71f1d25b4a9fba76a3527a592a8b">getEffet</a>(<a class="code" href="struct__motif.html">Motif</a>* <a class="code" href="maintest_8c.html#ac40192e3e23a44637d81f0c9a2030600">m</a>, <span class="keywordtype">int</span> portee, <span class="keywordtype">int</span> tmp){</div>
2014-05-20 13:17:26 +02:00
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keywordflow">return</span> (*(*m-&gt;<a class="code" href="struct__motif.html#ab11468d3826ca780892815ec1fcf6b79">motif</a>)[portee])[tmp].note;</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;}</div>
<div class="ttc" id="motifs_8c_html_a6b6a18807e4f73c7710d611c7ff6d9f6"><div class="ttname"><a href="motifs_8c.html#a6b6a18807e4f73c7710d611c7ff6d9f6">getInstrument</a></div><div class="ttdeci">int getInstrument(Motif *m, int portee, int tmp)</div><div class="ttdef"><b>Definition:</b> <a href="motifs_8c_source.html#l00085">motifs.c:85</a></div></div>
<div class="ttc" id="motifs_8c_html_ad004e9f91ca7bcc9411c549a4fe62451"><div class="ttname"><a href="motifs_8c.html#ad004e9f91ca7bcc9411c549a4fe62451">ajouterMotif</a></div><div class="ttdeci">void ajouterMotif(Motif **pliste, int nbrTmp, int nbrPortees)</div><div class="ttdef"><b>Definition:</b> <a href="motifs_8c_source.html#l00022">motifs.c:22</a></div></div>
<div class="ttc" id="motifs_8c_html_ad9706b025d4ab4474778af8b6a3c1a66"><div class="ttname"><a href="motifs_8c.html#ad9706b025d4ab4474778af8b6a3c1a66">getNote</a></div><div class="ttdeci">int getNote(Motif *m, int portee, int tmp)</div><div class="ttdef"><b>Definition:</b> <a href="motifs_8c_source.html#l00077">motifs.c:77</a></div></div>
<div class="ttc" id="struct__motif_html_aa192e522685e809efc7e08f1a9fc3583"><div class="ttname"><a href="struct__motif.html#aa192e522685e809efc7e08f1a9fc3583">_motif::nom</a></div><div class="ttdeci">char nom[10]</div><div class="ttdef"><b>Definition:</b> <a href="motifs_8h_source.html#l00032">motifs.h:32</a></div></div>
2014-05-22 00:12:25 +02:00
<div class="ttc" id="maintest_8c_html_ac40192e3e23a44637d81f0c9a2030600"><div class="ttname"><a href="maintest_8c.html#ac40192e3e23a44637d81f0c9a2030600">m</a></div><div class="ttdeci">Motif * m</div><div class="ttdef"><b>Definition:</b> <a href="maintest_8c_source.html#l00013">maintest.c:13</a></div></div>
2014-05-20 13:17:26 +02:00
<div class="ttc" id="motifs_8c_html_a8c6e71f1d25b4a9fba76a3527a592a8b"><div class="ttname"><a href="motifs_8c.html#a8c6e71f1d25b4a9fba76a3527a592a8b">getEffet</a></div><div class="ttdeci">int getEffet(Motif *m, int portee, int tmp)</div><div class="ttdef"><b>Definition:</b> <a href="motifs_8c_source.html#l00093">motifs.c:93</a></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> <a href="motifs_8h_source.html#l00031">motifs.h:31</a></div></div>
<div class="ttc" id="motifs_8c_html_a46fa52652960a1485a604a3e1017e3cc"><div class="ttname"><a href="motifs_8c.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> <a href="motifs_8c_source.html#l00057">motifs.c:57</a></div></div>
<div class="ttc" id="motifs_8c_html_acc86e3bfa2b84ae375ca472e95967ac6"><div class="ttname"><a href="motifs_8c.html#acc86e3bfa2b84ae375ca472e95967ac6">definirNomMotif</a></div><div class="ttdeci">void definirNomMotif(Motif *m, char *nom)</div><div class="ttdef"><b>Definition:</b> <a href="motifs_8c_source.html#l00038">motifs.c:38</a></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> <a href="motifs_8h_source.html#l00019">motifs.h:19</a></div></div>
<div class="ttc" id="struct__motif_html_ab11468d3826ca780892815ec1fcf6b79"><div class="ttname"><a href="struct__motif.html#ab11468d3826ca780892815ec1fcf6b79">_motif::motif</a></div><div class="ttdeci">Mesure * motif</div><div class="ttdef"><b>Definition:</b> <a href="motifs_8h_source.html#l00034">motifs.h:34</a></div></div>
<div class="ttc" id="motifs_8c_html_af42173fbd180b1aa00e97a49d77f56f6"><div class="ttname"><a href="motifs_8c.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> <a href="motifs_8c_source.html#l00053">motifs.c:53</a></div></div>
<div class="ttc" id="struct__motif_html_a2eabad4d5a8a75f82ac6f4a70ce453d3"><div class="ttname"><a href="struct__motif.html#a2eabad4d5a8a75f82ac6f4a70ce453d3">_motif::nbrTmp</a></div><div class="ttdeci">int nbrTmp</div><div class="ttdef"><b>Definition:</b> <a href="motifs_8h_source.html#l00033">motifs.h:33</a></div></div>
<div class="ttc" id="struct__motif_html_af5562e6f68c59bdb2e1c8366be359f49"><div class="ttname"><a href="struct__motif.html#af5562e6f68c59bdb2e1c8366be359f49">_motif::suivant</a></div><div class="ttdeci">struct _motif * suivant</div><div class="ttdef"><b>Definition:</b> <a href="motifs_8h_source.html#l00035">motifs.h:35</a></div></div>
<div class="ttc" id="motifs_8h_html_aa1507fd96f9b21d8e3ebff92453ac728"><div class="ttname"><a href="motifs_8h.html#aa1507fd96f9b21d8e3ebff92453ac728">Portee</a></div><div class="ttdeci">Note Portee[]</div><div class="ttdef"><b>Definition:</b> <a href="motifs_8h_source.html#l00027">motifs.h:27</a></div></div>
<div class="ttc" id="motifs_8c_html_a8c81aabb9b5fa55bad1c2ddb8d2ee6a9"><div class="ttname"><a href="motifs_8c.html#a8c81aabb9b5fa55bad1c2ddb8d2ee6a9">getVolume</a></div><div class="ttdeci">int getVolume(Motif *m, int portee, int tmp)</div><div class="ttdef"><b>Definition:</b> <a href="motifs_8c_source.html#l00089">motifs.c:89</a></div></div>
<div class="ttc" id="motifs_8c_html_a7d602ef1c04ef5126146f9b1b3c71c8f"><div class="ttname"><a href="motifs_8c.html#a7d602ef1c04ef5126146f9b1b3c71c8f">getIdMotif</a></div><div class="ttdeci">int getIdMotif(Motif *m)</div><div class="ttdef"><b>Definition:</b> <a href="motifs_8c_source.html#l00014">motifs.c:14</a></div></div>
<div class="ttc" id="motifs_8c_html_aa74ce94a714f4487b60b3ddcac7bb645"><div class="ttname"><a href="motifs_8c.html#aa74ce94a714f4487b60b3ddcac7bb645">supprimerNote</a></div><div class="ttdeci">void supprimerNote(Motif *m, int portee, int tmp)</div><div class="ttdef"><b>Definition:</b> <a href="motifs_8c_source.html#l00073">motifs.c:73</a></div></div>
2014-05-22 00:12:25 +02:00
<div class="ttc" id="main_8c_html_aefd1b139142a277f5da5d87f084b7230"><div class="ttname"><a href="main_8c.html#aefd1b139142a277f5da5d87f084b7230">nbrPortees</a></div><div class="ttdeci">int nbrPortees</div><div class="ttdef"><b>Definition:</b> <a href="main_8c_source.html#l00045">main.c:45</a></div></div>
2014-05-20 13:17:26 +02:00
<div class="ttc" id="motifs_8c_html_adc0b31b456f810c890b94357f3ba8a85"><div class="ttname"><a href="motifs_8c.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> <a href="motifs_8c_source.html#l00069">motifs.c:69</a></div></div>
<div class="ttc" id="motifs_8h_html_aaf37e7b044bcdb8ee75fd121f1813dbe"><div class="ttname"><a href="motifs_8h.html#aaf37e7b044bcdb8ee75fd121f1813dbe">DEFNBRTMP</a></div><div class="ttdeci">#define DEFNBRTMP</div><div class="ttdef"><b>Definition:</b> <a href="motifs_8h_source.html#l00017">motifs.h:17</a></div></div>
<div class="ttc" id="motifs_8h_html"><div class="ttname"><a href="motifs_8h.html">motifs.h</a></div></div>
<div class="ttc" id="motifs_8c_html_af1e94966c6af95f5a3091721dd62f7db"><div class="ttname"><a href="motifs_8c.html#af1e94966c6af95f5a3091721dd62f7db">definirInstrument</a></div><div class="ttdeci">void definirInstrument(Motif *m, int portee, int tmp, int instrument)</div><div class="ttdef"><b>Definition:</b> <a href="motifs_8c_source.html#l00061">motifs.c:61</a></div></div>
<div class="ttc" id="motifs_8c_html_a8aee8833f47e110e27de823ac557e8ac"><div class="ttname"><a href="motifs_8c.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> <a href="motifs_8c_source.html#l00065">motifs.c:65</a></div></div>
<div class="ttc" id="motifs_8c_html_a5e7e5ab1812e838fddfa82c3682c4708"><div class="ttname"><a href="motifs_8c.html#a5e7e5ab1812e838fddfa82c3682c4708">getOctave</a></div><div class="ttdeci">int getOctave(Motif *m, int portee, int tmp)</div><div class="ttdef"><b>Definition:</b> <a href="motifs_8c_source.html#l00081">motifs.c:81</a></div></div>
<div class="ttc" id="motifs_8c_html_acd5428841ea3c29a618974d40bc9efe9"><div class="ttname"><a href="motifs_8c.html#acd5428841ea3c29a618974d40bc9efe9">supprimerMotif</a></div><div class="ttdeci">void supprimerMotif(Motif **cellule, int nbrPortees)</div><div class="ttdef"><b>Definition:</b> <a href="motifs_8c_source.html#l00042">motifs.c:42</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
2014-05-22 00:12:25 +02:00
Généré le Jeudi 22 Mai 2014 00:09:13 pour PonyTracker par &#160;<a href="http://www.doxygen.org/index.html">
2014-05-20 13:17:26 +02:00
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>