Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /proc/self/root/usr/share/doc/libclam-doc/html/ |
Current File : //proc/self/root/usr/share/doc/libclam-doc/html/MIDI2Melody_8hxx_source.html |
<!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"/> <title>CLAM-Development: MIDI2Melody.hxx Source File</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="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 style="padding-left: 0.5em;"> <div id="projectname">CLAM-Development  <span id="projectnumber">1.4.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.1 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_098894a2b9860dda60979d343b8f7997.html">Processing</a></li><li class="navelem"><a class="el" href="dir_25b2faafbf0af5259cec4848b4ea03d9.html">MIDIIO</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">MIDI2Melody.hxx</div> </div> </div><!--header--> <div class="contents"> <a href="MIDI2Melody_8hxx.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div> <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2001-2004 MUSIC TECHNOLOGY GROUP (MTG)</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * UNIVERSITAT POMPEU FABRA</span></div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> *</span></div> <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * (at your option) any later version.</span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> *</span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * GNU General Public License for more details.</span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> *</span></div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> *</span></div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> */</span></div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div> <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#ifndef __MIDI2Melody__</span></div> <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor"></span><span class="preprocessor">#define __MIDI2Melody__</span></div> <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div> <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "<a class="code" href="Control2Data_8hxx.html">Control2Data.hxx</a>"</span></div> <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="Array_8hxx.html">Array.hxx</a>"</span></div> <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "<a class="code" href="MIDIMelody_8hxx.html">MIDIMelody.hxx</a>"</span></div> <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include "<a class="code" href="OutPort_8hxx.html">OutPort.hxx</a>"</span></div> <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">namespace </span>CLAM {</div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div> <div class="line"><a name="l00037"></a><span class="lineno"><a class="code" href="classCLAM_1_1MIDI2Melody.html"> 37</a></span> <span class="keyword">class </span><a class="code" href="classCLAM_1_1MIDI2Melody.html" title="This processing is a particular control-to-data converter that takes in MIDI control events and conve...">MIDI2Melody</a>:<span class="keyword">public</span> <a class="code" href="classCLAM_1_1Control2Data.html" title="This processing object is mainly an aggregate of input control data It works by asynchronously receiv...">Control2Data</a></div> <div class="line"><a name="l00038"></a><span class="lineno"> 38</span> {</div> <div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">public</span>:</div> <div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <a class="code" href="classCLAM_1_1MIDI2Melody.html#a4d9a273be93a7095c1b6d2e9470c15fd">MIDI2Melody</a>();</div> <div class="line"><a name="l00041"></a><span class="lineno"><a class="code" href="classCLAM_1_1MIDI2Melody.html#a799d415f6779e52622d0f2384628b6b5"> 41</a></span>  <span class="keyword">virtual</span> <a class="code" href="classCLAM_1_1MIDI2Melody.html#a799d415f6779e52622d0f2384628b6b5">~MIDI2Melody</a>(){};</div> <div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  </div> <div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <a class="code" href="classCLAM_1_1OutPort.html">OutPort<MIDIMelody></a> <a class="code" href="classCLAM_1_1MIDI2Melody.html#ae414ba1db935522e984d2257690daaad" title="Concrete output port of type MIDIMelody.">mOutput</a>;</div> <div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="classCLAM_1_1MIDI2Melody.html#a6276f1232f34e34a60ade9ebbf593f59"> 46</a></span>  <a class="code" href="classCLAM_1_1InControl.html">FloatInControl</a> <a class="code" href="classCLAM_1_1MIDI2Melody.html#a6276f1232f34e34a60ade9ebbf593f59" title="Special input control for keeping trace of the time.">mTime</a>;</div> <div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div> <div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="keyword">protected</span>:</div> <div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div> <div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordtype">bool</span> <a class="code" href="classCLAM_1_1MIDI2Melody.html#a19054dcf55e67f64ab36eaa193e035f3" title="Particular implementation of this operation to generate data from enqueued controls.">GenerateOutputData</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <a class="code" href="namespaceCLAM.html#aa961ac47b3ce3d0ab3a96bed3f786fb9" title="Control events type.">TControlData</a> val);</div> <div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordtype">bool</span> <a class="code" href="classCLAM_1_1MIDI2Melody.html#acac9f0151505f4be4014e205c8bedaa2" title="Concrete configuration, we hardcode the number of controls to use and pass it to the configuration of...">ConcreteConfigure</a>(<span class="keyword">const</span> <a class="code" href="classCLAM_1_1ProcessingConfig.html" title="This is an abstract class which serves as interface for configuration classes used as processing obje...">ProcessingConfig</a>& c);</div> <div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordtype">int</span> <a class="code" href="classCLAM_1_1MIDI2Melody.html#af6a9d7edb20107624cf5a1c7619c79f5" title="Finds the given note (according to key number) in internal container.">FindNote</a>(<span class="keywordtype">int</span> key);</div> <div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordtype">void</span> <a class="code" href="classCLAM_1_1MIDI2Melody.html#a1a31a8658957de2b61b37238b30fad99" title="Adds a note to internal container.">AddNote</a>(<span class="keywordtype">int</span> key, <span class="keywordtype">int</span> velocity,<span class="keywordtype">int</span> time);</div> <div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordtype">void</span> <a class="code" href="classCLAM_1_1MIDI2Melody.html#add60ac2ae88a599882b36c22568b5142" title="Deletes note from internal container using MIDI key.">DeleteNote</a>(<span class="keywordtype">int</span> key);</div> <div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordtype">void</span> <a class="code" href="classCLAM_1_1MIDI2Melody.html#ac7c891c4350723ac334b7a73e9516294" title="Deletes note in given position in internal container.">DeleteNoteFromIndex</a>(<span class="keywordtype">int</span> index);</div> <div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keywordtype">void</span> <a class="code" href="classCLAM_1_1MIDI2Melody.html#a185d266b2fcdd58bb9dbc7c2da928ef7" title="Modifies midi velocity for given midi note.">ModifyVelocity</a>(<span class="keywordtype">int</span> key,<span class="keywordtype">int</span> newVelocity);</div> <div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="keyword">protected</span>:</div> <div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="comment">//protected member attributes and containers</span></div> <div class="line"><a name="l00076"></a><span class="lineno"><a class="code" href="classCLAM_1_1MIDI2Melody.html#a3dbe29bc8884a4e6e97bfaa3987bb8ee"> 76</a></span> <span class="comment"></span> <a class="code" href="classCLAM_1_1Array.html">Array<int></a> <a class="code" href="classCLAM_1_1MIDI2Melody.html#a3dbe29bc8884a4e6e97bfaa3987bb8ee" title="Contains an array of midi keys active at a given moment.">mKeys</a>;</div> <div class="line"><a name="l00078"></a><span class="lineno"><a class="code" href="classCLAM_1_1MIDI2Melody.html#a7108ea80e185bd3cf3244cca4422f6f0"> 78</a></span>  <a class="code" href="classCLAM_1_1Array.html">Array<int></a> <a class="code" href="classCLAM_1_1MIDI2Melody.html#a7108ea80e185bd3cf3244cca4422f6f0" title="Array of Midi velocities corresponding to the active midi notes.">mVelocities</a>;</div> <div class="line"><a name="l00080"></a><span class="lineno"><a class="code" href="classCLAM_1_1MIDI2Melody.html#a5bd38dc99f522c7604bbe5c4c5be3c3e"> 80</a></span>  <a class="code" href="classCLAM_1_1Array.html">Array<int></a> <a class="code" href="classCLAM_1_1MIDI2Melody.html#a5bd38dc99f522c7604bbe5c4c5be3c3e" title="Array of begin times in milliseconds corresponding to the active midi notes.">mBeginTimes</a>;</div> <div class="line"><a name="l00082"></a><span class="lineno"><a class="code" href="classCLAM_1_1MIDI2Melody.html#aa0d03f121a9845efd4275c38082e3e0c"> 82</a></span>  <span class="keywordtype">int</span> <a class="code" href="classCLAM_1_1MIDI2Melody.html#aa0d03f121a9845efd4275c38082e3e0c" title="Last key added to internal container.">mLastKey</a>;</div> <div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  </div> <div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  };</div> <div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div> <div class="line"><a name="l00086"></a><span class="lineno"> 86</span> } <span class="comment">// namespace CLAM</span></div> <div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div> <div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="preprocessor"></span></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.1 </small></address> </body> </html>
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare