mirror of
https://github.com/thestk/stk
synced 2026-01-14 21:41:53 +00:00
130 lines
11 KiB
HTML
130 lines
11 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_1Flute.html">Flute</a>
|
|
</div>
|
|
<div class="contents">
|
|
<h1>stk::Flute Class Reference</h1><!-- doxytag: class="stk::Flute" --><!-- doxytag: inherits="stk::Instrmnt" -->STK flute physical model class.
|
|
<a href="#_details">More...</a>
|
|
<p>
|
|
<code>#include <<a class="el" href="Flute_8h-source.html">Flute.h</a>></code>
|
|
<p>
|
|
<div class="dynheader">
|
|
Inheritance diagram for stk::Flute:</div>
|
|
<div class="dynsection">
|
|
|
|
<p><center><img src="classstk_1_1Flute.png" usemap="#stk::Flute_map" border="0" alt=""></center>
|
|
<map name="stk::Flute_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_1Flute-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_1Flute.html#9769eef3340651acc31b4997e9985e57">Flute</a> (StkFloat lowestFrequency)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Class constructor, taking the lowest desired playing frequency. <a href="#9769eef3340651acc31b4997e9985e57"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="76120aedfc0bab94416917d173f8a74e"></a><!-- doxytag: member="stk::Flute::~Flute" ref="76120aedfc0bab94416917d173f8a74e" args="(void)" -->
|
|
</td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Flute.html#76120aedfc0bab94416917d173f8a74e">~Flute</a> (void)</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="4554fc4feffd469b83d02dd4e5471ffa"></a><!-- doxytag: member="stk::Flute::clear" ref="4554fc4feffd469b83d02dd4e5471ffa" args="(void)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Flute.html#4554fc4feffd469b83d02dd4e5471ffa">clear</a> (void)</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="ea66780681552de9d12af6bb91f297da"></a><!-- doxytag: member="stk::Flute::setFrequency" ref="ea66780681552de9d12af6bb91f297da" args="(StkFloat frequency)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Flute.html#ea66780681552de9d12af6bb91f297da">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="0732403c66b3667f5f6a8c80e90046e0"></a><!-- doxytag: member="stk::Flute::setJetReflection" ref="0732403c66b3667f5f6a8c80e90046e0" args="(StkFloat coefficient)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Flute.html#0732403c66b3667f5f6a8c80e90046e0">setJetReflection</a> (StkFloat coefficient)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the reflection coefficient for the jet delay (-1.0 - 1.0). <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7c0ef95a3170dafde08b65ee47102969"></a><!-- doxytag: member="stk::Flute::setEndReflection" ref="7c0ef95a3170dafde08b65ee47102969" args="(StkFloat coefficient)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Flute.html#7c0ef95a3170dafde08b65ee47102969">setEndReflection</a> (StkFloat coefficient)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the reflection coefficient for the air column delay (-1.0 - 1.0). <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d37a862df945987f91e3164813ce911b"></a><!-- doxytag: member="stk::Flute::setJetDelay" ref="d37a862df945987f91e3164813ce911b" args="(StkFloat aRatio)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Flute.html#d37a862df945987f91e3164813ce911b">setJetDelay</a> (StkFloat aRatio)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the length of the jet delay in terms of a ratio of jet delay to air column delay lengths. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="33b58e80c6ebbd5bd45f90a7a1c6a025"></a><!-- doxytag: member="stk::Flute::startBlowing" ref="33b58e80c6ebbd5bd45f90a7a1c6a025" args="(StkFloat amplitude, StkFloat rate)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Flute.html#33b58e80c6ebbd5bd45f90a7a1c6a025">startBlowing</a> (StkFloat amplitude, StkFloat rate)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Apply breath velocity 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="65b8e74b1a99bc8bada4e80ebd512058"></a><!-- doxytag: member="stk::Flute::stopBlowing" ref="65b8e74b1a99bc8bada4e80ebd512058" args="(StkFloat rate)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Flute.html#65b8e74b1a99bc8bada4e80ebd512058">stopBlowing</a> (StkFloat rate)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Decrease breath velocity with given rate of decrease. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f76a46645fd6ed5d3c15dc4bcde3d928"></a><!-- doxytag: member="stk::Flute::noteOn" ref="f76a46645fd6ed5d3c15dc4bcde3d928" args="(StkFloat frequency, StkFloat amplitude)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Flute.html#f76a46645fd6ed5d3c15dc4bcde3d928">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="e371e0d2366ef9fae8d12898204e7b31"></a><!-- doxytag: member="stk::Flute::noteOff" ref="e371e0d2366ef9fae8d12898204e7b31" args="(StkFloat amplitude)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Flute.html#e371e0d2366ef9fae8d12898204e7b31">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="968b3799338e39df35dcf94fe7ee90a2"></a><!-- doxytag: member="stk::Flute::controlChange" ref="968b3799338e39df35dcf94fe7ee90a2" args="(int number, StkFloat value)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Flute.html#968b3799338e39df35dcf94fe7ee90a2">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="b8f307f9a26ef2756ec4c0ea05f3acbe"></a><!-- doxytag: member="stk::Flute::tick" ref="b8f307f9a26ef2756ec4c0ea05f3acbe" args="(unsigned int channel=0)" -->
|
|
StkFloat </td><td class="memItemRight" valign="bottom"><a class="el" href="classstk_1_1Flute.html#b8f307f9a26ef2756ec4c0ea05f3acbe">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 flute physical model class.
|
|
<p>
|
|
This class implements a simple flute physical model, as discussed by Karjalainen, Smith, Waryznyk, etc. The jet model uses a polynomial, a la Cook.<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>Jet <a class="el" href="classstk_1_1Delay.html" title="STK non-interpolating delay line class.">Delay</a> = 2</li><li><a class="el" href="classstk_1_1Noise.html" title="STK noise generator.">Noise</a> Gain = 4</li><li>Vibrato Frequency = 11</li><li>Vibrato Gain = 1</li><li>Breath Pressure = 128</li></ul>
|
|
<p>
|
|
by Perry R. Cook and Gary P. Scavone, 1995 - 2009. <hr><h2>Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" name="9769eef3340651acc31b4997e9985e57"></a><!-- doxytag: member="stk::Flute::Flute" ref="9769eef3340651acc31b4997e9985e57" args="(StkFloat lowestFrequency)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">stk::Flute::Flute </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="Flute_8h-source.html">Flute.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>
|