mirror of
https://github.com/thestk/stk
synced 2026-01-11 20:11:52 +00:00
57 lines
3.0 KiB
HTML
57 lines
3.0 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="tutorial.html">Tutorial</a></CENTER>
|
|
<HR>
|
|
<!-- Generated by Doxygen 1.2.8.1 -->
|
|
<h1>Drummer.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
|
00016 <font class="comment">/***************************************************/</font>
|
|
00017
|
|
00018 <font class="preprocessor">#if !defined(__DRUMMER_H)</font>
|
|
00019 <font class="preprocessor"></font><font class="preprocessor">#define __DRUMMER_H</font>
|
|
00020 <font class="preprocessor"></font>
|
|
00021 <font class="preprocessor">#include "Instrmnt.h"</font>
|
|
00022 <font class="preprocessor">#include "WvIn.h"</font>
|
|
00023 <font class="preprocessor">#include "OnePole.h"</font>
|
|
00024
|
|
00025 <font class="preprocessor">#define DRUM_NUMWAVES 11</font>
|
|
00026 <font class="preprocessor"></font><font class="preprocessor">#define DRUM_POLYPHONY 4</font>
|
|
00027 <font class="preprocessor"></font>
|
|
00028 <font class="keyword">class </font><a class="code" href="classDrummer.html">Drummer</a> : <font class="keyword">public</font> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
|
00029 {
|
|
00030 <font class="keyword">public</font>:
|
|
00032 <a class="code" href="classDrummer.html#a0">Drummer</a>();
|
|
00033
|
|
00035 <a class="code" href="classDrummer.html#a1">~Drummer</a>();
|
|
00036
|
|
00038
|
|
00043 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT instrument, MY_FLOAT amplitude);
|
|
00044
|
|
00046 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
|
00047
|
|
00049 MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>();
|
|
00050
|
|
00051 <font class="keyword">protected</font>:
|
|
00052 <a class="code" href="classWvIn.html">WvIn</a> *waves[DRUM_POLYPHONY];
|
|
00053 <a class="code" href="classOnePole.html">OnePole</a> *filters[DRUM_POLYPHONY];
|
|
00054 <font class="keywordtype">int</font> sounding[DRUM_POLYPHONY];
|
|
00055 <font class="keywordtype">int</font> nSounding;
|
|
00056
|
|
00057 };
|
|
00058
|
|
00059 <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>
|