134 lines
4.5 KiB
HTML
134 lines
4.5 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>Major triad</TITLE>
|
|
<META NAME="description" CONTENT="Major triad">
|
|
<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="node23.html">
|
|
<LINK REL="previous" HREF="node21.html">
|
|
<LINK REL="up" HREF="node18.html">
|
|
<LINK REL="next" HREF="node23.html">
|
|
</HEAD>
|
|
|
|
<BODY >
|
|
<!--Navigation Panel-->
|
|
<A NAME="tex2html867"
|
|
HREF="node23.html">
|
|
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
|
|
SRC="next.png"></A>
|
|
<A NAME="tex2html861"
|
|
HREF="node18.html">
|
|
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
|
|
SRC="up.png"></A>
|
|
<A NAME="tex2html855"
|
|
HREF="node21.html">
|
|
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
|
|
SRC="prev.png"></A>
|
|
<A NAME="tex2html863"
|
|
HREF="node4.html">
|
|
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
|
|
SRC="contents.png"></A>
|
|
<A NAME="tex2html865"
|
|
HREF="node201.html">
|
|
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
|
|
SRC="index.png"></A>
|
|
<BR>
|
|
<B> Next:</B> <A NAME="tex2html868"
|
|
HREF="node23.html">Conversion between frequency and</A>
|
|
<B> Up:</B> <A NAME="tex2html862"
|
|
HREF="node18.html">Examples</A>
|
|
<B> Previous:</B> <A NAME="tex2html856"
|
|
HREF="node21.html">Smoothed amplitude control with</A>
|
|
<B> <A NAME="tex2html864"
|
|
HREF="node4.html">Contents</A></B>
|
|
<B> <A NAME="tex2html866"
|
|
HREF="node201.html">Index</A></B>
|
|
<BR>
|
|
<BR>
|
|
<!--End of Navigation Panel-->
|
|
|
|
<H2><A NAME="SECTION00594000000000000000">
|
|
Major triad</A>
|
|
</H2>
|
|
<A NAME="sec1.triad"></A>
|
|
<P>
|
|
Example A05.output.subpatch.pd, whose active ingredients are shown in Figure
|
|
<A HREF="node20.html#fig01.12">1.12</A> (part c), presents three sinusoids with frequencies in the
|
|
ratio 4:5:6, so that the lower two are separated by a major third, the
|
|
upper two by a minor third, and the top and bottom by a fifth. The lowest
|
|
frequency is 440, equal to A above middle C, or MIDI 69. The others are
|
|
approximately four and seven half-steps higher, respectively. The three
|
|
have equal amplitudes.
|
|
|
|
<P>
|
|
The amplitude control in this example is taken care of by a new object called
|
|
<TT>output~</TT>. This isn't a built-in object of Pd, but is itself a Pd patch
|
|
which lives in a file, ``output.pd". (You can see the internals of
|
|
<TT>output~</TT> by opening the properties menu for the box and selecting
|
|
``open".) You get two controls, one for amplitude in dB (100 meaning ``unit
|
|
gain"), and a ``mute" button. Pd's audio processing is turned on automatically
|
|
when you set the output level--this might not be the best behavior in
|
|
general, but it's appropriate for these example patches. The mechanism for
|
|
embedding one Pd patch as an object box inside another is discussed in Section
|
|
<A HREF="node67.html#sect4.encapsulation">4.7</A>.
|
|
|
|
<P>
|
|
<HR>
|
|
<!--Navigation Panel-->
|
|
<A NAME="tex2html867"
|
|
HREF="node23.html">
|
|
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
|
|
SRC="next.png"></A>
|
|
<A NAME="tex2html861"
|
|
HREF="node18.html">
|
|
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
|
|
SRC="up.png"></A>
|
|
<A NAME="tex2html855"
|
|
HREF="node21.html">
|
|
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
|
|
SRC="prev.png"></A>
|
|
<A NAME="tex2html863"
|
|
HREF="node4.html">
|
|
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
|
|
SRC="contents.png"></A>
|
|
<A NAME="tex2html865"
|
|
HREF="node201.html">
|
|
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
|
|
SRC="index.png"></A>
|
|
<BR>
|
|
<B> Next:</B> <A NAME="tex2html868"
|
|
HREF="node23.html">Conversion between frequency and</A>
|
|
<B> Up:</B> <A NAME="tex2html862"
|
|
HREF="node18.html">Examples</A>
|
|
<B> Previous:</B> <A NAME="tex2html856"
|
|
HREF="node21.html">Smoothed amplitude control with</A>
|
|
<B> <A NAME="tex2html864"
|
|
HREF="node4.html">Contents</A></B>
|
|
<B> <A NAME="tex2html866"
|
|
HREF="node201.html">Index</A></B>
|
|
<!--End of Navigation Panel-->
|
|
<ADDRESS>
|
|
Miller Puckette
|
|
2006-12-30
|
|
</ADDRESS>
|
|
</BODY>
|
|
</HTML>
|