mirror of
https://github.com/thestk/stk
synced 2026-01-13 04:51:53 +00:00
62 lines
3.7 KiB
HTML
62 lines
3.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>Mandolin.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
|
00028 <span class="comment">/***************************************************/</span>
|
|
00029
|
|
00030 <span class="preprocessor">#ifndef STK_MANDOLIN_H</span>
|
|
00031 <span class="preprocessor"></span><span class="preprocessor">#define STK_MANDOLIN_H</span>
|
|
00032 <span class="preprocessor"></span>
|
|
00033 <span class="preprocessor">#include "PluckTwo.h"</span>
|
|
00034 <span class="preprocessor">#include "WvIn.h"</span>
|
|
00035
|
|
<a name="l00036"></a><a class="code" href="classMandolin.html">00036</a> <span class="keyword">class </span><a class="code" href="classMandolin.html">Mandolin</a> : <span class="keyword">public</span> <a class="code" href="classPluckTwo.html">PluckTwo</a>
|
|
00037 {
|
|
00038 <span class="keyword">public</span>:
|
|
00040 <a class="code" href="classMandolin.html#a0">Mandolin</a>(StkFloat lowestFrequency);
|
|
00041
|
|
00043 <a class="code" href="classMandolin.html#a1">~Mandolin</a>();
|
|
00044
|
|
00046 <span class="keywordtype">void</span> <a class="code" href="classMandolin.html#a2">pluck</a>(StkFloat amplitude);
|
|
00047
|
|
00049 <span class="keywordtype">void</span> <a class="code" href="classMandolin.html#a2">pluck</a>(StkFloat amplitude,StkFloat position);
|
|
00050
|
|
00052 <span class="keywordtype">void</span> <a class="code" href="classMandolin.html#a4">noteOn</a>(StkFloat frequency, StkFloat amplitude);
|
|
00053
|
|
00055 <span class="keywordtype">void</span> <a class="code" href="classMandolin.html#a5">setBodySize</a>(StkFloat size);
|
|
00056
|
|
00058 StkFloat <a class="code" href="classMandolin.html#a6">tick</a>();
|
|
00059
|
|
00061 StkFloat *<a class="code" href="classMandolin.html#a6">tick</a>(StkFloat *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
|
00062
|
|
00064
|
|
00070 <a class="code" href="classStkFrames.html">StkFrames</a>& <a class="code" href="classMandolin.html#a6">tick</a>( <a class="code" href="classStkFrames.html">StkFrames</a>& frames, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> channel = 1 );
|
|
00071
|
|
00073 <span class="keywordtype">void</span> <a class="code" href="classMandolin.html#a9">controlChange</a>(<span class="keywordtype">int</span> number, StkFloat value);
|
|
00074
|
|
00075 <span class="keyword">protected</span>:
|
|
00076 <a class="code" href="classWvIn.html">WvIn</a> *soundfile_[12];
|
|
00077 <span class="keywordtype">int</span> mic_;
|
|
00078 <span class="keywordtype">long</span> dampTime_;
|
|
00079 <span class="keywordtype">bool</span> waveDone_;
|
|
00080 };
|
|
00081
|
|
00082 <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>
|