mirror of
https://github.com/thestk/stk
synced 2026-01-12 12:31:53 +00:00
82 lines
4.7 KiB
HTML
82 lines
4.7 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>The Synthesis ToolKit in C++ (STK)</TITLE>
|
|
<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF">
|
|
<CENTER>
|
|
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
|
<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>SingWave.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
|
00014 <span class="comment">/***************************************************/</span>
|
|
00015
|
|
00016 <span class="preprocessor">#ifndef STK_SINGWAVE_H</span>
|
|
00017 <span class="preprocessor"></span><span class="preprocessor">#define STK_SINGWAVE_H</span>
|
|
00018 <span class="preprocessor"></span>
|
|
00019 <span class="preprocessor">#include "WaveLoop.h"</span>
|
|
00020 <span class="preprocessor">#include "Modulate.h"</span>
|
|
00021 <span class="preprocessor">#include "Envelope.h"</span>
|
|
00022
|
|
<a name="l00023"></a><a class="code" href="classSingWave.html">00023</a> <span class="keyword">class </span><a class="code" href="classSingWave.html">SingWave</a> : <span class="keyword">public</span> <a class="code" href="classGenerator.html">Generator</a>
|
|
00024 {
|
|
00025 <span class="keyword">public</span>:
|
|
00027
|
|
00031 <a class="code" href="classSingWave.html#a0">SingWave</a>( std::string fileName, <span class="keywordtype">bool</span> raw=<span class="keyword">false</span>);
|
|
00032
|
|
00034 <a class="code" href="classSingWave.html#a1">~SingWave</a>();
|
|
00035
|
|
00037 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a2">reset</a>();
|
|
00038
|
|
00040 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a3">normalize</a>();
|
|
00041
|
|
00043 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a3">normalize</a>(StkFloat peak);
|
|
00044
|
|
00046 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a5">setFrequency</a>(StkFloat frequency);
|
|
00047
|
|
00049 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a6">setVibratoRate</a>(StkFloat rate);
|
|
00050
|
|
00052 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a7">setVibratoGain</a>(StkFloat gain);
|
|
00053
|
|
00055 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a8">setRandomGain</a>(StkFloat gain);
|
|
00056
|
|
00058 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a9">setSweepRate</a>(StkFloat rate);
|
|
00059
|
|
00061 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a10">setGainRate</a>(StkFloat rate);
|
|
00062
|
|
00064 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a11">setGainTarget</a>(StkFloat target);
|
|
00065
|
|
00067 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a12">noteOn</a>();
|
|
00068
|
|
00070 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a13">noteOff</a>();
|
|
00071
|
|
00073 StkFloat <a class="code" href="classSingWave.html#a14">tick</a>();
|
|
00074
|
|
00076 StkFloat *<a class="code" href="classSingWave.html#a14">tick</a>( StkFloat *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize );
|
|
00077
|
|
00079
|
|
00085 <a class="code" href="classStkFrames.html">StkFrames</a>& <a class="code" href="classSingWave.html#a14">tick</a>( <a class="code" href="classStkFrames.html">StkFrames</a>& frames, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> channel = 1 );
|
|
00086
|
|
00087 <span class="keyword">protected</span>:
|
|
00088
|
|
00089 <a class="code" href="classWaveLoop.html">WaveLoop</a> *wave_;
|
|
00090 <a class="code" href="classModulate.html">Modulate</a> *modulator_;
|
|
00091 <a class="code" href="classEnvelope.html">Envelope</a> envelope_;
|
|
00092 <a class="code" href="classEnvelope.html">Envelope</a> pitchEnvelope_;
|
|
00093 StkFloat rate_;
|
|
00094 StkFloat sweepRate_;
|
|
00095
|
|
00096 };
|
|
00097
|
|
00098 <span class="preprocessor">#endif</span>
|
|
</pre></div><HR>
|
|
|
|
<table>
|
|
<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>
|
|
|
|
</BODY>
|
|
</HTML>
|