mirror of
https://github.com/thestk/stk
synced 2026-01-16 06:21:51 +00:00
122 lines
9.4 KiB
HTML
122 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.5.8 -->
|
|
<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" -->STK simple brass instrument class.
|
|
<a href="#_details">More...</a>
|
|
<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">
|
|
|
|
<p><center><img src="classstk_1_1Brass.png" usemap="#stk::Brass_map" border="0" alt=""></center>
|
|
<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>
|
|
|
|
<p>
|
|
<a href="classstk_1_1Brass-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td></td></tr>
|
|
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Brass.html#96b223221f536efdaad4e724db01f11b">Brass</a> (StkFloat lowestFrequency)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Class constructor, taking the lowest desired playing frequency. <a href="#96b223221f536efdaad4e724db01f11b"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="474528a75bd4fb88cdb9c783d73df8f6"></a><!-- doxytag: member="stk::Brass::~Brass" ref="474528a75bd4fb88cdb9c783d73df8f6" args="()" -->
|
|
</td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Brass.html#474528a75bd4fb88cdb9c783d73df8f6">~Brass</a> ()</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Class destructor. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="64e48334efdc8f2508c29c5ea4281f2d"></a><!-- doxytag: member="stk::Brass::clear" ref="64e48334efdc8f2508c29c5ea4281f2d" args="()" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Brass.html#64e48334efdc8f2508c29c5ea4281f2d">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" nowrap align="right" valign="top"><a class="anchor" name="5e99e7fee1b92138566a46c828df93e8"></a><!-- doxytag: member="stk::Brass::setFrequency" ref="5e99e7fee1b92138566a46c828df93e8" args="(StkFloat frequency)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Brass.html#5e99e7fee1b92138566a46c828df93e8">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" nowrap align="right" valign="top"><a class="anchor" name="2e1a150328504050499c5cb9fa0e536f"></a><!-- doxytag: member="stk::Brass::setLip" ref="2e1a150328504050499c5cb9fa0e536f" args="(StkFloat frequency)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Brass.html#2e1a150328504050499c5cb9fa0e536f">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" nowrap align="right" valign="top"><a class="anchor" name="02533e02818e2848fb6480106a54ce94"></a><!-- doxytag: member="stk::Brass::startBlowing" ref="02533e02818e2848fb6480106a54ce94" args="(StkFloat amplitude, StkFloat rate)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Brass.html#02533e02818e2848fb6480106a54ce94">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" nowrap align="right" valign="top"><a class="anchor" name="8bf1624aca6283fafb830a3f22546199"></a><!-- doxytag: member="stk::Brass::stopBlowing" ref="8bf1624aca6283fafb830a3f22546199" args="(StkFloat rate)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Brass.html#8bf1624aca6283fafb830a3f22546199">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" nowrap align="right" valign="top"><a class="anchor" name="e74eba698f27abd43e66e825f5ce72da"></a><!-- doxytag: member="stk::Brass::noteOn" ref="e74eba698f27abd43e66e825f5ce72da" args="(StkFloat frequency, StkFloat amplitude)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Brass.html#e74eba698f27abd43e66e825f5ce72da">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" nowrap align="right" valign="top"><a class="anchor" name="32e2a6d2c9285bb5cf033d8a6b90e3c9"></a><!-- doxytag: member="stk::Brass::noteOff" ref="32e2a6d2c9285bb5cf033d8a6b90e3c9" args="(StkFloat amplitude)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Brass.html#32e2a6d2c9285bb5cf033d8a6b90e3c9">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" nowrap align="right" valign="top"><a class="anchor" name="4d75ac361d11fcc870a330d393dbad80"></a><!-- doxytag: member="stk::Brass::controlChange" ref="4d75ac361d11fcc870a330d393dbad80" args="(int number, StkFloat value)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Brass.html#4d75ac361d11fcc870a330d393dbad80">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" nowrap align="right" valign="top"><a class="anchor" name="4af1b7c4c1b374b65e04ccaa90886321"></a><!-- doxytag: member="stk::Brass::tick" ref="4af1b7c4c1b374b65e04ccaa90886321" args="(unsigned int channel=0)" -->
|
|
StkFloat </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Brass.html#4af1b7c4c1b374b65e04ccaa90886321">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>
|
|
STK simple brass instrument class.
|
|
<p>
|
|
This class implements a simple brass instrument waveguide model, a la Cook (TBone, HosePlayer).<p>
|
|
This is a digital waveguide model, making its use possibly subject to patents held by Stanford University, Yamaha, and others.<p>
|
|
Control Change Numbers:<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 - 2009. <hr><h2>Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" name="96b223221f536efdaad4e724db01f11b"></a><!-- doxytag: member="stk::Brass::Brass" ref="96b223221f536efdaad4e724db01f11b" 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>
|
|
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.
|
|
</div>
|
|
</div><p>
|
|
<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></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-2009 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
|
</table>
|
|
|
|
</BODY>
|
|
</HTML>
|