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/LoopingSDIFFileReader_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: LoopingSDIFFileReader.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_adad9f038d65b9c9aee7c67cd0ac4f76.html">SDIFIO</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">LoopingSDIFFileReader.hxx</div> </div> </div><!--header--> <div class="contents"> <a href="LoopingSDIFFileReader_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="preprocessor">#ifndef _LoopingSDIFFileReader_</span></div> <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor"></span><span class="preprocessor">#define _LoopingSDIFFileReader_</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include "<a class="code" href="BufferedSDIFFileReader_8hxx.html">BufferedSDIFFileReader.hxx</a>"</span></div> <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include "<a class="code" href="SDIFInConfig_8hxx.html">SDIFInConfig.hxx</a>"</span></div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include "<a class="code" href="Frame_8hxx.html">Frame.hxx</a>"</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include "<a class="code" href="SpectralPeakArray_8hxx.html">SpectralPeakArray.hxx</a>"</span></div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "<a class="code" href="Spectrum_8hxx.html">Spectrum.hxx</a>"</span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include "<a class="code" href="SimpleLoopMetadata_8hxx.html">SimpleLoopMetadata.hxx</a>"</span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> </div> <div class="line"><a name="l00011"></a><span class="lineno"><a class="code" href="LoopingSDIFFileReader_8hxx.html#a662d34412350793552352384be95ea7f"> 11</a></span> <span class="preprocessor">#define DEFAULT_NUMBER_OF_CROSSFADE_FRAMES 100</span></div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="keyword">namespace </span>CLAM</div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> {</div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div> <div class="line"><a name="l00023"></a><span class="lineno"><a class="code" href="classCLAM_1_1LoopingSDIFFileReader.html"> 23</a></span> <span class="keyword">class </span><a class="code" href="classCLAM_1_1LoopingSDIFFileReader.html" title="This class extends the length of an SDIFFile indefinitely by looping between its frames.">LoopingSDIFFileReader</a> : <span class="keyword">public</span> <a class="code" href="classCLAM_1_1BufferedSDIFFileReader.html" title="BufferedSDIFFileReader is an SDIFFileReader that preloads some SDIF frames into an internal buffer so...">BufferedSDIFFileReader</a></div> <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> {</div> <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">public</span>:</div> <div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <a class="code" href="classCLAM_1_1LoopingSDIFFileReader.html#a6c3ae095fbfdc29411aa6f7a23fac78c" title="You MUST give the instance the filename of the SDIF file to read.">LoopingSDIFFileReader</a>(<span class="keyword">const</span> <a class="code" href="classCLAM_1_1SDIFInConfig.html">SDIFInConfig</a>& argSDIFInConfig);</div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <a class="code" href="classCLAM_1_1LoopingSDIFFileReader.html#aa6924517cce7566cb2b02e802dee7f63">~LoopingSDIFFileReader</a>();</div> <div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div> <div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordtype">bool</span> <a class="code" href="classCLAM_1_1LoopingSDIFFileReader.html#a9def6041cfcaf37f475918b8b92f8eba" title="You MUST to give the instance the filename of the SDIF file to read.">Configure</a>(<span class="keyword">const</span> <a class="code" href="classCLAM_1_1SDIFInConfig.html">SDIFInConfig</a>& c);</div> <div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div> <div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keyword">virtual</span> <a class="code" href="classCLAM_1_1Frame.html" title="Processing Data class to encapsulate a frame and all its related information.">Frame</a>* <a class="code" href="classCLAM_1_1LoopingSDIFFileReader.html#a43677004c778b340febbd040c56245b5" title="This method returns the next frame from the internal buffer.">ReadFrame</a>();</div> <div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div> <div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordtype">bool</span> <a class="code" href="classCLAM_1_1LoopingSDIFFileReader.html#af93231ed966508d5862089d2b8961b76" title="This returns true if and only if this class has been given some loop points.">isLooping</a>();</div> <div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  </div> <div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordtype">void</span> <a class="code" href="classCLAM_1_1LoopingSDIFFileReader.html#a05ab07fe71394a49a42346130cb07643" title="Adds a single loop point for a sample.">AddLoop</a>(<a class="code" href="classCLAM_1_1SimpleLoopMetadata.html" title="This object represents the start and end points of a loop.">SimpleLoopMetadata</a>& aSimpleLoop);</div> <div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div> <div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordtype">void</span> <a class="code" href="classCLAM_1_1LoopingSDIFFileReader.html#a818ec4f04d4b7c4d7a951eabe881dd17" title="Adds a list of loop points for a sample.">SetListOfLoops</a>(std::vector<SimpleLoopMetadata>& theLoopList);</div> <div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  </div> <div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordtype">void</span> <a class="code" href="classCLAM_1_1LoopingSDIFFileReader.html#ae56175ad907d740f3108dc8d0838680e" title="Clears all of the loop points previously set.">ClearLoops</a>();</div> <div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div> <div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  std::vector<SimpleLoopMetadata>& <a class="code" href="classCLAM_1_1LoopingSDIFFileReader.html#a1bf34ea0e9dd58031f98c3ede341987b" title="Returns all of the loop points previously set.">GetListOfLoops</a>();</div> <div class="line"><a name="l00071"></a><span class="lineno"> 71</span> </div> <div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keywordtype">void</span> <a class="code" href="classCLAM_1_1LoopingSDIFFileReader.html#a3cbf99a168905cba8247579e826d877f" title="Resets the SDIFFileReader to read the very first frame from the file again thereby restarting the att...">Reset</a>();</div> <div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  </div> <div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="keyword">private</span>:</div> <div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordtype">void</span> CrossfadeSpectralPeakArrays(<a class="code" href="classCLAM_1_1SpectralPeakArray.html" title="This processing data class offers an interface for storing an array of spectral peaks while maintaini...">SpectralPeakArray</a>& sourceSpectralPeaks1,</div> <div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <a class="code" href="classCLAM_1_1SpectralPeakArray.html" title="This processing data class offers an interface for storing an array of spectral peaks while maintaini...">SpectralPeakArray</a>& sourceSpectralPeaks2,</div> <div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <a class="code" href="classCLAM_1_1SpectralPeakArray.html" title="This processing data class offers an interface for storing an array of spectral peaks while maintaini...">SpectralPeakArray</a>& targetSpectralPeaks,</div> <div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordtype">float</span> crossfadeFactor);</div> <div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  </div> <div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordtype">void</span> CrossfadeResidualSpectrum(<a class="code" href="classCLAM_1_1Spectrum.html" title="Spectrum is a ProcessingData class that allows the following representations: Mag/Phase, Complex, Polar and Break Point Function (BPF).">Spectrum</a>& sourceSpectrum1,</div> <div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <a class="code" href="classCLAM_1_1Spectrum.html" title="Spectrum is a ProcessingData class that allows the following representations: Mag/Phase, Complex, Polar and Break Point Function (BPF).">Spectrum</a>& sourceSpectrum2,</div> <div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <a class="code" href="classCLAM_1_1Spectrum.html" title="Spectrum is a ProcessingData class that allows the following representations: Mag/Phase, Complex, Polar and Break Point Function (BPF).">Spectrum</a>& targetSpectrum,</div> <div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordtype">float</span> crossfadeFactor);</div> <div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div> <div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordtype">int</span> ChooseLoopRandomly(<span class="keywordtype">int</span> frameBufferPosition, <span class="keywordtype">int</span> indexOfCurrentLoop);</div> <div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  </div> <div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="comment">// every time ReadFrame() is called, the frame is copied to this singleton</span></div> <div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="comment">// object which is returned rather than the frame from the BufferedSDIFReader</span></div> <div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <a class="code" href="classCLAM_1_1Frame.html" title="Processing Data class to encapsulate a frame and all its related information.">Frame</a>* outgoingFrame;</div> <div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="comment">// number of frames that should be crossfaded before looping</span></div> <div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keywordtype">int</span> numberOfCrossfadeFrames;</div> <div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="comment">// a list of loop points for this sample</span></div> <div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  std::vector<SimpleLoopMetadata> listOfLoops;</div> <div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="comment">// the index of the loop that we are currently using</span></div> <div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordtype">int</span> indexOfCurrentLoop;</div> <div class="line"><a name="l00111"></a><span class="lineno"> 111</span> };</div> <div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div> <div class="line"><a name="l00113"></a><span class="lineno"> 113</span> } <span class="comment">// end namespace CLAM</span></div> <div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div> <div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="preprocessor">#endif</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