mirror of
https://github.com/thestk/stk
synced 2026-01-12 20:41:52 +00:00
85 lines
5.2 KiB
HTML
85 lines
5.2 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>VoicForm.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
|
00026 <span class="comment">/***************************************************/</span>
|
|
00027
|
|
00028 <span class="preprocessor">#ifndef STK_VOICFORM_H</span>
|
|
00029 <span class="preprocessor"></span><span class="preprocessor">#define STK_VOICFORM_H</span>
|
|
00030 <span class="preprocessor"></span>
|
|
00031 <span class="preprocessor">#include "Instrmnt.h"</span>
|
|
00032 <span class="preprocessor">#include "Envelope.h"</span>
|
|
00033 <span class="preprocessor">#include "Noise.h"</span>
|
|
00034 <span class="preprocessor">#include "SingWave.h"</span>
|
|
00035 <span class="preprocessor">#include "FormSwep.h"</span>
|
|
00036 <span class="preprocessor">#include "OnePole.h"</span>
|
|
00037 <span class="preprocessor">#include "OneZero.h"</span>
|
|
00038
|
|
<a name="l00039"></a><a class="code" href="classVoicForm.html">00039</a> <span class="keyword">class </span><a class="code" href="classVoicForm.html">VoicForm</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
|
00040 {
|
|
00041 <span class="keyword">public</span>:
|
|
00043
|
|
00046 <a class="code" href="classVoicForm.html#a0">VoicForm</a>();
|
|
00047
|
|
00049 <a class="code" href="classVoicForm.html#a1">~VoicForm</a>();
|
|
00050
|
|
00052 <span class="keywordtype">void</span> <a class="code" href="classVoicForm.html#a2">clear</a>();
|
|
00053
|
|
00055 <span class="keywordtype">void</span> <a class="code" href="classVoicForm.html#a3">setFrequency</a>(StkFloat frequency);
|
|
00056
|
|
00058 <span class="keywordtype">bool</span> <a class="code" href="classVoicForm.html#a4">setPhoneme</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* phoneme);
|
|
00059
|
|
00061 <span class="keywordtype">void</span> <a class="code" href="classVoicForm.html#a5">setVoiced</a>(StkFloat vGain);
|
|
00062
|
|
00064 <span class="keywordtype">void</span> <a class="code" href="classVoicForm.html#a6">setUnVoiced</a>(StkFloat nGain);
|
|
00065
|
|
00067 <span class="keywordtype">void</span> <a class="code" href="classVoicForm.html#a7">setFilterSweepRate</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> whichOne, StkFloat rate);
|
|
00068
|
|
00070 <span class="keywordtype">void</span> <a class="code" href="classVoicForm.html#a8">setPitchSweepRate</a>(StkFloat rate);
|
|
00071
|
|
00073 <span class="keywordtype">void</span> <a class="code" href="classVoicForm.html#a9">speak</a>();
|
|
00074
|
|
00076 <span class="keywordtype">void</span> <a class="code" href="classVoicForm.html#a10">quiet</a>();
|
|
00077
|
|
00079 <span class="keywordtype">void</span> <a class="code" href="classVoicForm.html#a11">noteOn</a>(StkFloat frequency, StkFloat amplitude);
|
|
00080
|
|
00082 <span class="keywordtype">void</span> <a class="code" href="classVoicForm.html#a12">noteOff</a>(StkFloat amplitude);
|
|
00083
|
|
00085 StkFloat <a class="code" href="classVoicForm.html#a13">tick</a>();
|
|
00086
|
|
00088 StkFloat *<a class="code" href="classVoicForm.html#a13">tick</a>(StkFloat *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
|
00089
|
|
00091
|
|
00097 <a class="code" href="classStkFrames.html">StkFrames</a>& <a class="code" href="classVoicForm.html#a13">tick</a>( <a class="code" href="classStkFrames.html">StkFrames</a>& frames, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> channel = 1 );
|
|
00098
|
|
00100 <span class="keywordtype">void</span> <a class="code" href="classVoicForm.html#a16">controlChange</a>(<span class="keywordtype">int</span> number, StkFloat value);
|
|
00101
|
|
00102 <span class="keyword">protected</span>:
|
|
00103 <a class="code" href="classSingWave.html">SingWave</a> *voiced_;
|
|
00104 <a class="code" href="classNoise.html">Noise</a> noise_;
|
|
00105 <a class="code" href="classEnvelope.html">Envelope</a> noiseEnv_;
|
|
00106 <a class="code" href="classFormSwep.html">FormSwep</a> filters_[4];
|
|
00107 <a class="code" href="classOnePole.html">OnePole</a> onepole_;
|
|
00108 <a class="code" href="classOneZero.html">OneZero</a> onezero_;
|
|
00109
|
|
00110 };
|
|
00111
|
|
00112 <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>
|