miller-book/node54.html

114 lines
3.3 KiB
HTML

<!DOCTYPE html>
<!--Converted with LaTeX2HTML 2002-2-1 (1.71)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<TITLE>Signals to controls</TITLE>
<META NAME="description" CONTENT="Signals to controls">
<META NAME="keywords" CONTENT="book">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="book.css">
<LINK REL="next" HREF="node55.html">
<LINK REL="previous" HREF="node53.html">
<LINK REL="up" HREF="node50.html">
<LINK REL="next" HREF="node55.html">
</HEAD>
<BODY >
<!--Navigation Panel-->
<A ID="tex2html1349"
HREF="node55.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="next.png"></A>
<A ID="tex2html1343"
HREF="node50.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="up.png"></A>
<A ID="tex2html1337"
HREF="node53.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="prev.png"></A>
<A ID="tex2html1345"
HREF="node4.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
SRC="contents.png"></A>
<A ID="tex2html1347"
HREF="node201.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
SRC="index.png"></A>
<BR>
<B> Next:</B> <A ID="tex2html1350"
HREF="node55.html">Analog-style sequencer</A>
<B> Up:</B> <A ID="tex2html1344"
HREF="node50.html">Examples</A>
<B> Previous:</B> <A ID="tex2html1338"
HREF="node53.html">Non-looping wavetable player</A>
&nbsp; <B> <A ID="tex2html1346"
HREF="node4.html">Contents</A></B>
&nbsp; <B> <A ID="tex2html1348"
HREF="node201.html">Index</A></B>
<BR>
<BR>
<!--End of Navigation Panel-->
<H2><A ID="SECTION007104000000000000000">
Signals to controls</A>
</H2>
<P>
Example C06.signal.to.control.pd (not pictured) demonstrates conversion from audio signals back to numeric
control streams, via a new tilde object introduced here.
<P>
<BR><!-- MATH
$\fbox{ $\mathrm{snapshot}\sim$}$
-->
<IMG
WIDTH="97" HEIGHT="41" ALIGN="MIDDLE" BORDER="0"
SRC="img348.png"
ALT="\fbox{ $\mathrm{snapshot}\sim$}">:
<A ID="3849"></A>convert audio signal to control messages. This always gives the most recently
computed audio sample (fast-as-possible conversion), so the exact sampling
time varies by up to one audio block.
<P>
It is frequently desirable to sense the audio signal's amplitude rather than
peek at a single sample; Example C07.envelope.follower.pd (also not pictured) introduces another
object which does this:
<P>
<BR><!-- MATH
$\fbox{ $\mathrm{env}\sim$}$
-->
<IMG
WIDTH="60" HEIGHT="33" ALIGN="MIDDLE" BORDER="0"
SRC="img349.png"
ALT="\fbox{ $\mathrm{env}\sim$}">:
<A ID="3850"></A>RMS envelope follower. Outputs control messages giving the short-term RMS
amplitude (in decibels) of the incoming audio signal. A creation argument allows
you to select the number of samples used in the RMS computation; smaller numbers
give faster (and possibly less stable) output.
<P>
<BR><HR>
<ADDRESS>
Miller Puckette
2006-12-30
</ADDRESS>
</BODY>
</HTML>