mirror of
https://github.com/thestk/stk
synced 2026-01-16 14:21:53 +00:00
95 lines
5.5 KiB
HTML
95 lines
5.5 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"><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.2.8.1 -->
|
|
<h1>Voicer.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
|
00030 <font class="comment">/***************************************************/</font>
|
|
00031
|
|
00032 <font class="preprocessor">#if !defined(__VOICER_H)</font>
|
|
00033 <font class="preprocessor"></font><font class="preprocessor">#define __VOICER_H</font>
|
|
00034 <font class="preprocessor"></font>
|
|
00035 <font class="preprocessor">#include "Stk.h"</font>
|
|
00036 <font class="preprocessor">#include "Instrmnt.h"</font>
|
|
00037
|
|
00038 <font class="keyword">class </font><a class="code" href="classVoicer.html">Voicer</a> : <font class="keyword">public</font> <a class="code" href="classStk.html">Stk</a>
|
|
00039 {
|
|
00040 <font class="keyword">public</font>:
|
|
00042 <a class="code" href="classVoicer.html#a0">Voicer</a>( <font class="keywordtype">int</font> maxInstruments, MY_FLOAT decayTime=0.2 );
|
|
00043
|
|
00045 <a class="code" href="classVoicer.html#a1">~Voicer</a>();
|
|
00046
|
|
00048
|
|
00052 <font class="keywordtype">void</font> <a class="code" href="classVoicer.html#a2">addInstrument</a>( <a class="code" href="classInstrmnt.html">Instrmnt</a> *instrument, <font class="keywordtype">int</font> channel=0 );
|
|
00053
|
|
00055
|
|
00060 <font class="keywordtype">void</font> <a class="code" href="classVoicer.html#a3">removeInstrument</a>( <a class="code" href="classInstrmnt.html">Instrmnt</a> *instrument );
|
|
00061
|
|
00063
|
|
00071 <font class="keywordtype">long</font> <a class="code" href="classVoicer.html#a4">noteOn</a>( MY_FLOAT noteNumber, MY_FLOAT amplitude, <font class="keywordtype">int</font> channel=0 );
|
|
00072
|
|
00074
|
|
00077 <font class="keywordtype">void</font> <a class="code" href="classVoicer.html#a5">noteOff</a>( MY_FLOAT noteNumber, MY_FLOAT amplitude, <font class="keywordtype">int</font> channel=0 );
|
|
00078
|
|
00080
|
|
00083 <font class="keywordtype">void</font> <a class="code" href="classVoicer.html#a5">noteOff</a>( <font class="keywordtype">long</font> tag, MY_FLOAT amplitude );
|
|
00084
|
|
00086
|
|
00089 <font class="keywordtype">void</font> <a class="code" href="classVoicer.html#a7">setFrequency</a>( MY_FLOAT noteNumber, <font class="keywordtype">int</font> channel=0 );
|
|
00090
|
|
00092
|
|
00095 <font class="keywordtype">void</font> <a class="code" href="classVoicer.html#a7">setFrequency</a>( <font class="keywordtype">long</font> tag, MY_FLOAT noteNumber );
|
|
00096
|
|
00098 <font class="keywordtype">void</font> <a class="code" href="classVoicer.html#a9">pitchBend</a>( MY_FLOAT value, <font class="keywordtype">int</font> channel=0 );
|
|
00099
|
|
00101 <font class="keywordtype">void</font> <a class="code" href="classVoicer.html#a9">pitchBend</a>( <font class="keywordtype">long</font> tag, MY_FLOAT value );
|
|
00102
|
|
00104 <font class="keywordtype">void</font> <a class="code" href="classVoicer.html#a11">controlChange</a>( <font class="keywordtype">int</font> number, MY_FLOAT value, <font class="keywordtype">int</font> channel=0 );
|
|
00105
|
|
00107 <font class="keywordtype">void</font> <a class="code" href="classVoicer.html#a11">controlChange</a>( <font class="keywordtype">long</font> tag, <font class="keywordtype">int</font> number, MY_FLOAT value );
|
|
00108
|
|
00110 <font class="keywordtype">void</font> <a class="code" href="classVoicer.html#a13">silence</a>( <font class="keywordtype">void</font> );
|
|
00111
|
|
00113 MY_FLOAT <a class="code" href="classVoicer.html#a14">tick</a>();
|
|
00114
|
|
00116 MY_FLOAT *<a class="code" href="classVoicer.html#a14">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
|
00117
|
|
00119 MY_FLOAT <a class="code" href="classVoicer.html#a16">lastOut</a>() <font class="keyword">const</font>;
|
|
00120
|
|
00121 <font class="keyword">protected</font>:
|
|
00122
|
|
00123 <font class="keyword">typedef</font> <font class="keyword">struct </font>{
|
|
00124 <a class="code" href="classInstrmnt.html">Instrmnt</a> *instrument;
|
|
00125 <font class="keywordtype">long</font> tag;
|
|
00126 MY_FLOAT noteNumber;
|
|
00127 MY_FLOAT frequency;
|
|
00128 <font class="keywordtype">int</font> sounding;
|
|
00129 <font class="keywordtype">int</font> channel;
|
|
00130 } Voice;
|
|
00131
|
|
00132 <font class="keywordtype">int</font> nVoices;
|
|
00133 <font class="keywordtype">int</font> maxVoices;
|
|
00134 Voice *voices;
|
|
00135 <font class="keywordtype">long</font> tags;
|
|
00136 <font class="keywordtype">int</font> muteTime;
|
|
00137 MY_FLOAT lastOutput;
|
|
00138
|
|
00139 };
|
|
00140
|
|
00141 <font class="preprocessor">#endif</font>
|
|
</font></pre></div><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>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
|
</table>
|
|
|
|
</BODY>
|
|
</HTML>
|