mirror of
https://github.com/thestk/stk
synced 2026-01-12 20:41:52 +00:00
Release 4.2.0 tarball
This commit is contained in:
committed by
Stephen Sinclair
parent
fe20fe92a2
commit
de344668dd
@@ -9,10 +9,7 @@
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>WaveLoop Class Reference</h1>STK waveform oscillator class.
|
||||
<a href="#_details">More...</a>
|
||||
<p>
|
||||
<code>#include <<a class="el" href="WaveLoop_8h-source.html">WaveLoop.h</a>></code>
|
||||
<h1>WaveLoop Class Reference</h1><code>#include <<a class="el" href="WaveLoop_8h-source.html">WaveLoop.h</a>></code>
|
||||
<p>
|
||||
<p>Inheritance diagram for WaveLoop:
|
||||
<p><center><img src="classWaveLoop.png" usemap="#WaveLoop_map" border="0" alt=""></center>
|
||||
@@ -20,45 +17,51 @@
|
||||
<area href="classWvIn.html" alt="WvIn" shape="rect" coords="0,56,72,80">
|
||||
<area href="classStk.html" alt="Stk" shape="rect" coords="0,0,72,24">
|
||||
</map>
|
||||
<a href="classWaveLoop-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
|
||||
<a href="classWaveLoop-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
|
||||
STK waveform oscillator class.
|
||||
<p>
|
||||
This class inherits from <a class="el" href="classWvIn.html">WvIn</a> and provides audio file looping functionality.<p>
|
||||
WaveLoop supports multi-channel data in interleaved format. It is important to distinguish the <a class="el" href="classWvIn.html#a16">tick()</a> methods, which return samples produced by averaging across sample frames, from the <a class="el" href="classWaveLoop.html#a6">tickFrame()</a> methods, which return pointers to multi-channel sample frames. For single-channel data, these methods return equivalent values.<p>
|
||||
by Perry R. Cook and Gary P. Scavone, 1995 - 2004.
|
||||
<p>
|
||||
|
||||
<p>
|
||||
Definition at line <a class="el" href="WaveLoop_8h-source.html#l00026">26</a> of file <a class="el" href="WaveLoop_8h-source.html">WaveLoop.h</a>.<table border=0 cellpadding=0 cellspacing=0>
|
||||
<tr><td></td></tr>
|
||||
<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a0" doxytag="WaveLoop::WaveLoop" ></a>
|
||||
</td><td class="memItemRight" valign=bottom><a class="el" href="classWaveLoop.html#a0">WaveLoop</a> (const char *fileName, bool raw=FALSE)</td></tr>
|
||||
</td><td class="memItemRight" valign=bottom><a class="el" href="classWaveLoop.html#a0">WaveLoop</a> (std::string fileName, bool raw=false)</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Class constructor. <br><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a1" doxytag="WaveLoop::~WaveLoop" ></a>
|
||||
virtual </td><td class="memItemRight" valign=bottom><a class="el" href="classWaveLoop.html#a1">~WaveLoop</a> ()</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Class destructor. <br><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classWaveLoop.html#a2">setFrequency</a> (MY_FLOAT aFrequency)</td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classWaveLoop.html#a2">setFrequency</a> (StkFloat frequency)</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the data interpolation rate based on a looping frequency. </em> <a href="#a2"></a><em><br><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a3" doxytag="WaveLoop::addTime" ></a>
|
||||
void </td><td class="memItemRight" valign=bottom><a class="el" href="classWaveLoop.html#a3">addTime</a> (MY_FLOAT aTime)</td></tr>
|
||||
void </td><td class="memItemRight" valign=bottom><a class="el" href="classWaveLoop.html#a3">addTime</a> (StkFloat time)</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Increment the read pointer by <em>aTime</em> samples, modulo file size. <br><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classWaveLoop.html#a4">addPhase</a> (MY_FLOAT anAngle)</td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classWaveLoop.html#a4">addPhase</a> (StkFloat angle)</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Increment current read pointer by <em>anAngle</em>, relative to a looping frequency. </em> <a href="#a4"></a><em><br><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classWaveLoop.html#a5">addPhaseOffset</a> (MY_FLOAT anAngle)</td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classWaveLoop.html#a5">addPhaseOffset</a> (StkFloat angle)</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Add a phase offset to the current read pointer. </em> <a href="#a5"></a><em><br><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a6" doxytag="WaveLoop::tickFrame" ></a>
|
||||
const MY_FLOAT * </td><td class="memItemRight" valign=bottom><a class="el" href="classWaveLoop.html#a6">tickFrame</a> (void)</td></tr>
|
||||
const StkFloat * </td><td class="memItemRight" valign=bottom><a class="el" href="classWaveLoop.html#a6">tickFrame</a> (void)</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return a pointer to the next sample frame of data. <br><br></td></tr>
|
||||
</table>
|
||||
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
||||
STK waveform oscillator class.
|
||||
<p>
|
||||
This class inherits from <a class="el" href="classWvIn.html">WvIn</a> and provides audio file looping functionality.<p>
|
||||
WaveLoop supports multi-channel data in interleaved format. It is important to distinguish the <a class="el" href="classWvIn.html#a16">tick()</a> methods, which return samples produced by averaging across sample frames, from the <a class="el" href="classWaveLoop.html#a6">tickFrame()</a> methods, which return pointers to multi-channel sample frames. For single-channel data, these methods return equivalent values.<p>
|
||||
by Perry R. Cook and Gary P. Scavone, 1995 - 2002.
|
||||
<p>
|
||||
<tr><td class="memItemLeft" nowrap align=right valign=top>StkFloat * </td><td class="memItemRight" valign=bottom><a class="el" href="classWaveLoop.html#a7">tickFrame</a> (StkFloat *frameVector, unsigned int frames)</td></tr>
|
||||
|
||||
<p>
|
||||
Definition at line <a class="el" href="WaveLoop_8h-source.html#l00027">27</a> of file <a class="el" href="WaveLoop_8h-source.html">WaveLoop.h</a>.<hr><h2>Member Function Documentation</h2>
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Read out sample <em>frames</em> of data to <em>frameVector</em>. </em> <a href="#a7"></a><em><br><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classStkFrames.html">StkFrames</a> & </td><td class="memItemRight" valign=bottom><a class="el" href="classWaveLoop.html#a8">tickFrame</a> (<a class="el" href="classStkFrames.html">StkFrames</a> &frames)</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Fill the <a class="el" href="classStkFrames.html">StkFrames</a> object with sample frames of data and return the same reference. </em> <a href="#a8"></a><em><br><br></td></tr>
|
||||
</table>
|
||||
<hr><h2>Member Function Documentation</h2>
|
||||
<a class="anchor" name="a2" doxytag="WaveLoop::setFrequency" ></a><p>
|
||||
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
||||
<tr>
|
||||
@@ -67,8 +70,8 @@ Definition at line <a class="el" href="WaveLoop_8h-source.html#l00027">27</a> of
|
||||
<tr>
|
||||
<td class="md" nowrap valign="top"> void WaveLoop::setFrequency </td>
|
||||
<td class="md" valign="top">( </td>
|
||||
<td class="md" nowrap valign="top">MY_FLOAT </td>
|
||||
<td class="mdname1" valign="top" nowrap> <em>aFrequency</em> </td>
|
||||
<td class="md" nowrap valign="top">StkFloat </td>
|
||||
<td class="mdname1" valign="top" nowrap> <em>frequency</em> </td>
|
||||
<td class="md" valign="top"> ) </td>
|
||||
<td class="md" nowrap></td>
|
||||
</tr>
|
||||
@@ -98,8 +101,8 @@ This function determines the interpolation rate based on the file size and the c
|
||||
<tr>
|
||||
<td class="md" nowrap valign="top"> void WaveLoop::addPhase </td>
|
||||
<td class="md" valign="top">( </td>
|
||||
<td class="md" nowrap valign="top">MY_FLOAT </td>
|
||||
<td class="mdname1" valign="top" nowrap> <em>anAngle</em> </td>
|
||||
<td class="md" nowrap valign="top">StkFloat </td>
|
||||
<td class="mdname1" valign="top" nowrap> <em>angle</em> </td>
|
||||
<td class="md" valign="top"> ) </td>
|
||||
<td class="md" nowrap></td>
|
||||
</tr>
|
||||
@@ -129,8 +132,8 @@ This function increments the read pointer based on the file size and the current
|
||||
<tr>
|
||||
<td class="md" nowrap valign="top"> void WaveLoop::addPhaseOffset </td>
|
||||
<td class="md" valign="top">( </td>
|
||||
<td class="md" nowrap valign="top">MY_FLOAT </td>
|
||||
<td class="mdname1" valign="top" nowrap> <em>anAngle</em> </td>
|
||||
<td class="md" nowrap valign="top">StkFloat </td>
|
||||
<td class="mdname1" valign="top" nowrap> <em>angle</em> </td>
|
||||
<td class="md" valign="top"> ) </td>
|
||||
<td class="md" nowrap></td>
|
||||
</tr>
|
||||
@@ -152,12 +155,87 @@ Add a phase offset to the current read pointer.
|
||||
This function determines a time offset based on the file size and the current <a class="el" href="classStk.html#e0">Stk::sampleRate</a>. The <em>anAngle</em> value is a multiple of file size. </td>
|
||||
</tr>
|
||||
</table>
|
||||
<a class="anchor" name="a7" doxytag="WaveLoop::tickFrame" ></a><p>
|
||||
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
||||
<tr>
|
||||
<td class="mdRow">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td class="md" nowrap valign="top"> StkFloat* WaveLoop::tickFrame </td>
|
||||
<td class="md" valign="top">( </td>
|
||||
<td class="md" nowrap valign="top">StkFloat * </td>
|
||||
<td class="mdname" nowrap> <em>frameVector</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td class="md" nowrap>unsigned int </td>
|
||||
<td class="mdname" nowrap> <em>frames</em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="md">) </td>
|
||||
<td class="md" colspan="2"><code> [virtual]</code></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellspacing=5 cellpadding=0 border=0>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<p>
|
||||
Read out sample <em>frames</em> of data to <em>frameVector</em>.
|
||||
<p>
|
||||
An <a class="el" href="classStkError.html">StkError</a> will be thrown if a file is read incrementally and a read error occurs.
|
||||
<p>
|
||||
Reimplemented from <a class="el" href="classWvIn.html#a21">WvIn</a>. </td>
|
||||
</tr>
|
||||
</table>
|
||||
<a class="anchor" name="a8" doxytag="WaveLoop::tickFrame" ></a><p>
|
||||
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
||||
<tr>
|
||||
<td class="mdRow">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td class="md" nowrap valign="top"> <a class="el" href="classStkFrames.html">StkFrames</a>& WaveLoop::tickFrame </td>
|
||||
<td class="md" valign="top">( </td>
|
||||
<td class="md" nowrap valign="top"><a class="el" href="classStkFrames.html">StkFrames</a> & </td>
|
||||
<td class="mdname1" valign="top" nowrap> <em>frames</em> </td>
|
||||
<td class="md" valign="top"> ) </td>
|
||||
<td class="md" nowrap><code> [virtual]</code></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellspacing=5 cellpadding=0 border=0>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<p>
|
||||
Fill the <a class="el" href="classStkFrames.html">StkFrames</a> object with sample frames of data and return the same reference.
|
||||
<p>
|
||||
An <a class="el" href="classStkError.html">StkError</a> will be thrown if a file is read incrementally and a read error occurs or there is an incompatability between the number of channels in the <a class="el" href="classRtWvIn.html">RtWvIn</a> object and that in the <a class="el" href="classStkFrames.html">StkFrames</a> object.
|
||||
<p>
|
||||
Reimplemented from <a class="el" href="classWvIn.html#a22">WvIn</a>. </td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr>The documentation for this class was generated from the following file:<ul>
|
||||
<li><a class="el" href="WaveLoop_8h-source.html">WaveLoop.h</a></ul>
|
||||
<HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td><A HREF="http://ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user