mirror of
https://github.com/thestk/stk
synced 2026-04-19 22:16:54 +00:00
73 lines
4.3 KiB
HTML
73 lines
4.3 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>Sampler.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
|
00010 <span class="comment">/***************************************************/</span>
|
|
00011
|
|
00012 <span class="preprocessor">#ifndef STK_SAMPLER_H</span>
|
|
00013 <span class="preprocessor"></span><span class="preprocessor">#define STK_SAMPLER_H</span>
|
|
00014 <span class="preprocessor"></span>
|
|
00015 <span class="preprocessor">#include "Instrmnt.h"</span>
|
|
00016 <span class="preprocessor">#include "ADSR.h"</span>
|
|
00017 <span class="preprocessor">#include "WvIn.h"</span>
|
|
00018 <span class="preprocessor">#include "WaveLoop.h"</span>
|
|
00019 <span class="preprocessor">#include "OnePole.h"</span>
|
|
00020
|
|
<a name="l00021"></a><a class="code" href="classSampler.html">00021</a> <span class="keyword">class </span><a class="code" href="classSampler.html">Sampler</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
|
00022 {
|
|
00023 <span class="keyword">public</span>:
|
|
00025 <a class="code" href="classSampler.html#a0">Sampler</a>();
|
|
00026
|
|
00028 <span class="keyword">virtual</span> <a class="code" href="classSampler.html#a1">~Sampler</a>();
|
|
00029
|
|
00031 <span class="keywordtype">void</span> <a class="code" href="classSampler.html#a2">clear</a>();
|
|
00032
|
|
00034 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classSampler.html#a3">setFrequency</a>(StkFloat frequency) = 0;
|
|
00035
|
|
00037 <span class="keywordtype">void</span> <a class="code" href="classSampler.html#a4">keyOn</a>();
|
|
00038
|
|
00040 <span class="keywordtype">void</span> <a class="code" href="classSampler.html#a5">keyOff</a>();
|
|
00041
|
|
00043 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classSampler.html#a6">noteOff</a>(StkFloat amplitude);
|
|
00044
|
|
00046 <span class="keyword">virtual</span> StkFloat <a class="code" href="classSampler.html#a7">tick</a>() = 0;
|
|
00047
|
|
00049 <span class="keyword">virtual</span> StkFloat *<a class="code" href="classSampler.html#a7">tick</a>(StkFloat *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize) = 0;
|
|
00050
|
|
00052
|
|
00058 <span class="keyword">virtual</span> <a class="code" href="classStkFrames.html">StkFrames</a>& <a class="code" href="classSampler.html#a7">tick</a>( <a class="code" href="classStkFrames.html">StkFrames</a>& frames, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> channel = 1 ) = 0;
|
|
00059
|
|
00061 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classSampler.html#a10">controlChange</a>(<span class="keywordtype">int</span> number, StkFloat value) = 0;
|
|
00062
|
|
00063 <span class="keyword">protected</span>:
|
|
00064 <a class="code" href="classADSR.html">ADSR</a> adsr_;
|
|
00065 std::vector<WvIn *> attacks_;
|
|
00066 std::vector<WaveLoop *> loops_;
|
|
00067 <a class="code" href="classOnePole.html">OnePole</a> filter_;
|
|
00068 StkFloat baseFrequency_;
|
|
00069 std::vector<StkFloat> attackRatios_;
|
|
00070 std::vector<StkFloat> loopRatios_;
|
|
00071 StkFloat attackGain_;
|
|
00072 StkFloat loopGain_;
|
|
00073
|
|
00074 };
|
|
00075
|
|
00076 <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>
|