mirror of
https://github.com/thestk/stk
synced 2026-01-16 22:31:52 +00:00
116 lines
9.4 KiB
HTML
116 lines
9.4 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="faq.html">FAQ</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
|
<HR>
|
|
<!-- Generated by Doxygen 1.6.2 -->
|
|
<div class="navpath"><a class="el" href="namespacestk.html">stk</a>::<a class="el" href="classstk_1_1Brass.html">Brass</a>
|
|
</div>
|
|
<div class="contents">
|
|
<h1>stk::Brass Class Reference</h1><!-- doxytag: class="stk::Brass" --><!-- doxytag: inherits="stk::Instrmnt" -->
|
|
<p>STK simple brass instrument class.
|
|
<a href="#_details">More...</a></p>
|
|
|
|
<p><code>#include <<a class="el" href="Brass_8h_source.html">Brass.h</a>></code></p>
|
|
<div class="dynheader">
|
|
Inheritance diagram for stk::Brass:</div>
|
|
<div class="dynsection">
|
|
<div class="center">
|
|
<img src="classstk_1_1Brass.png" usemap="#stk::Brass_map" alt=""/>
|
|
<map id="stk::Brass_map" name="stk::Brass_map">
|
|
<area href="classstk_1_1Instrmnt.html" alt="stk::Instrmnt" shape="rect" coords="0,56,76,80"/>
|
|
<area href="classstk_1_1Stk.html" alt="stk::Stk" shape="rect" coords="0,0,76,24"/>
|
|
</map>
|
|
</div>
|
|
</div>
|
|
|
|
<p><a href="classstk_1_1Brass-members.html">List of all members.</a></p>
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Brass.html#a96b223221f536efdaad4e724db01f11b">Brass</a> (StkFloat lowestFrequency)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Class constructor, taking the lowest desired playing frequency. <a href="#a96b223221f536efdaad4e724db01f11b"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a474528a75bd4fb88cdb9c783d73df8f6"></a><!-- doxytag: member="stk::Brass::~Brass" ref="a474528a75bd4fb88cdb9c783d73df8f6" args="()" -->
|
|
</td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Brass.html#a474528a75bd4fb88cdb9c783d73df8f6">~Brass</a> ()</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Class destructor. <br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a64e48334efdc8f2508c29c5ea4281f2d"></a><!-- doxytag: member="stk::Brass::clear" ref="a64e48334efdc8f2508c29c5ea4281f2d" args="()" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Brass.html#a64e48334efdc8f2508c29c5ea4281f2d">clear</a> ()</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Reset and clear all internal state. <br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5e99e7fee1b92138566a46c828df93e8"></a><!-- doxytag: member="stk::Brass::setFrequency" ref="a5e99e7fee1b92138566a46c828df93e8" args="(StkFloat frequency)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Brass.html#a5e99e7fee1b92138566a46c828df93e8">setFrequency</a> (StkFloat frequency)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set instrument parameters for a particular frequency. <br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2e1a150328504050499c5cb9fa0e536f"></a><!-- doxytag: member="stk::Brass::setLip" ref="a2e1a150328504050499c5cb9fa0e536f" args="(StkFloat frequency)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Brass.html#a2e1a150328504050499c5cb9fa0e536f">setLip</a> (StkFloat frequency)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the lips frequency. <br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a02533e02818e2848fb6480106a54ce94"></a><!-- doxytag: member="stk::Brass::startBlowing" ref="a02533e02818e2848fb6480106a54ce94" args="(StkFloat amplitude, StkFloat rate)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Brass.html#a02533e02818e2848fb6480106a54ce94">startBlowing</a> (StkFloat amplitude, StkFloat rate)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Apply breath pressure to instrument with given amplitude and rate of increase. <br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8bf1624aca6283fafb830a3f22546199"></a><!-- doxytag: member="stk::Brass::stopBlowing" ref="a8bf1624aca6283fafb830a3f22546199" args="(StkFloat rate)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Brass.html#a8bf1624aca6283fafb830a3f22546199">stopBlowing</a> (StkFloat rate)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Decrease breath pressure with given rate of decrease. <br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae74eba698f27abd43e66e825f5ce72da"></a><!-- doxytag: member="stk::Brass::noteOn" ref="ae74eba698f27abd43e66e825f5ce72da" args="(StkFloat frequency, StkFloat amplitude)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Brass.html#ae74eba698f27abd43e66e825f5ce72da">noteOn</a> (StkFloat frequency, StkFloat amplitude)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Start a note with the given frequency and amplitude. <br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a32e2a6d2c9285bb5cf033d8a6b90e3c9"></a><!-- doxytag: member="stk::Brass::noteOff" ref="a32e2a6d2c9285bb5cf033d8a6b90e3c9" args="(StkFloat amplitude)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Brass.html#a32e2a6d2c9285bb5cf033d8a6b90e3c9">noteOff</a> (StkFloat amplitude)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Stop a note with the given amplitude (speed of decay). <br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4d75ac361d11fcc870a330d393dbad80"></a><!-- doxytag: member="stk::Brass::controlChange" ref="a4d75ac361d11fcc870a330d393dbad80" args="(int number, StkFloat value)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Brass.html#a4d75ac361d11fcc870a330d393dbad80">controlChange</a> (int number, StkFloat value)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Perform the control change specified by <em>number</em> and <em>value</em> (0.0 - 128.0). <br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4af1b7c4c1b374b65e04ccaa90886321"></a><!-- doxytag: member="stk::Brass::tick" ref="a4af1b7c4c1b374b65e04ccaa90886321" args="(unsigned int channel=0)" -->
|
|
StkFloat </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Brass.html#a4af1b7c4c1b374b65e04ccaa90886321">tick</a> (unsigned int channel=0)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Compute and return one output sample. <br/></td></tr>
|
|
</table>
|
|
<hr/><a name="_details"></a><h2>Detailed Description</h2>
|
|
<p>STK simple brass instrument class. </p>
|
|
<p>This class implements a simple brass instrument waveguide model, a la Cook (TBone, HosePlayer).</p>
|
|
<p>This is a digital waveguide model, making its use possibly subject to patents held by Stanford University, Yamaha, and others.</p>
|
|
<p>Control Change Numbers:</p>
|
|
<ul>
|
|
<li>Lip Tension = 2</li>
|
|
<li>Slide Length = 4</li>
|
|
<li>Vibrato Frequency = 11</li>
|
|
<li>Vibrato Gain = 1</li>
|
|
<li>Volume = 128</li>
|
|
</ul>
|
|
<p>by Perry R. Cook and Gary P. Scavone, 1995 - 2010. </p>
|
|
<hr/><h2>Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" id="a96b223221f536efdaad4e724db01f11b"></a><!-- doxytag: member="stk::Brass::Brass" ref="a96b223221f536efdaad4e724db01f11b" args="(StkFloat lowestFrequency)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">stk::Brass::Brass </td>
|
|
<td>(</td>
|
|
<td class="paramtype">StkFloat </td>
|
|
<td class="paramname"> <em>lowestFrequency</em></td>
|
|
<td> ) </td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Class constructor, taking the lowest desired playing frequency. </p>
|
|
<p>An <a class="el" href="classstk_1_1StkError.html" title="STK error handling class.">StkError</a> will be thrown if the rawwave path is incorrectly set. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
|
<li><a class="el" href="Brass_8h_source.html">Brass.h</a></li>
|
|
</ul>
|
|
</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-2010 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
|
</table>
|
|
|
|
</BODY>
|
|
</HTML>
|