2022-04-12 22:02:59 -03:00
|
|
|
<!DOCTYPE html>
|
2022-04-12 21:54:18 -03:00
|
|
|
|
|
|
|
<!--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>
|
2022-04-12 22:02:59 -03:00
|
|
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
|
|
|
|
2022-04-12 21:54:18 -03:00
|
|
|
<TITLE>Exercises</TITLE>
|
|
|
|
<META NAME="description" CONTENT="Exercises">
|
|
|
|
<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="previous" HREF="node50.html">
|
|
|
|
<LINK REL="up" HREF="node40.html">
|
|
|
|
<LINK REL="next" HREF="node58.html">
|
|
|
|
</HEAD>
|
|
|
|
|
|
|
|
<BODY >
|
|
|
|
<!--Navigation Panel-->
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="tex2html1387"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node58.html">
|
|
|
|
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
|
2022-04-12 22:02:59 -03:00
|
|
|
SRC="next.png"></A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="tex2html1381"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node40.html">
|
|
|
|
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
|
2022-04-12 22:02:59 -03:00
|
|
|
SRC="up.png"></A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="tex2html1377"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node56.html">
|
|
|
|
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
|
2022-04-12 22:02:59 -03:00
|
|
|
SRC="prev.png"></A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="tex2html1383"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node4.html">
|
|
|
|
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
|
2022-04-12 22:02:59 -03:00
|
|
|
SRC="contents.png"></A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="tex2html1385"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node201.html">
|
|
|
|
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
|
2022-04-12 22:02:59 -03:00
|
|
|
SRC="index.png"></A>
|
2022-04-12 21:54:18 -03:00
|
|
|
<BR>
|
2022-04-12 23:32:40 -03:00
|
|
|
<B> Next:</B> <A ID="tex2html1388"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node58.html">Automation and voice management</A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<B> Up:</B> <A ID="tex2html1382"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node40.html">Audio and control computations</A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<B> Previous:</B> <A ID="tex2html1378"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node56.html">MIDI-style synthesizer</A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<B> <A ID="tex2html1384"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node4.html">Contents</A></B>
|
2022-04-12 23:32:40 -03:00
|
|
|
<B> <A ID="tex2html1386"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node201.html">Index</A></B>
|
|
|
|
<BR>
|
|
|
|
<BR>
|
|
|
|
<!--End of Navigation Panel-->
|
|
|
|
|
2022-04-12 23:32:40 -03:00
|
|
|
<H1><A ID="SECTION007110000000000000000">
|
2022-04-12 21:54:18 -03:00
|
|
|
Exercises</A>
|
|
|
|
</H1>
|
|
|
|
|
|
|
|
<P>
|
|
|
|
|
|
|
|
<OL>
|
|
|
|
<LI>How many partials of a tone at A 440 can be represented digitally at a
|
|
|
|
sample rate of 44100 Hertz?
|
|
|
|
|
|
|
|
<P>
|
|
|
|
</LI>
|
|
|
|
<LI>What frequency would you hear if you synthesized a sinusoid at 88000 Hertz
|
|
|
|
at a sample rate of 44100?
|
|
|
|
|
|
|
|
<P>
|
|
|
|
</LI>
|
|
|
|
<LI>Suppose you are synthesizing sound at 44100 Hertz, and are computing
|
|
|
|
64-sample audio blocks. A control event is scheduled to happen at an elapsed
|
|
|
|
time of exactly one second, using the fast-as-possible update scheme. At what
|
|
|
|
sample does the update actually occur?
|
|
|
|
|
|
|
|
<P>
|
|
|
|
</LI>
|
|
|
|
<LI>Sampling at 44100, we wish to approximately play a tone at middle C by
|
|
|
|
repeating a fixed waveform every N samples. What value of <IMG
|
|
|
|
WIDTH="18" HEIGHT="14" ALIGN="BOTTOM" BORDER="0"
|
|
|
|
SRC="img3.png"
|
|
|
|
ALT="$N$"> should we
|
|
|
|
choose, and how many cents (Page <A HREF="node11.html#eq-pitchmidi"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
|
2022-04-12 22:02:59 -03:00
|
|
|
SRC="crossref.png"></A>) are we off from the
|
2022-04-12 23:17:03 -03:00
|
|
|
"true" middle C?
|
2022-04-12 21:54:18 -03:00
|
|
|
|
|
|
|
<P>
|
|
|
|
</LI>
|
|
|
|
<LI>Two sawtooth waves, of unit amplitude, have frequencies 200 and 300 Hertz,
|
|
|
|
respectively. What is the periodicity of the sum of the two? What if you
|
|
|
|
then wrapped the sum back to the range from 0 to 1? Does this result change
|
|
|
|
depending on the relative phase of the two?
|
|
|
|
|
|
|
|
<P>
|
|
|
|
</LI>
|
|
|
|
<LI>Two sawtooth waves, of equal frequency and amplitude and one half cycle
|
|
|
|
out of phase, are summed. What is the waveform of the sum, and what are its
|
|
|
|
amplitude and frequency?
|
|
|
|
|
|
|
|
<P>
|
|
|
|
</LI>
|
|
|
|
<LI>What is the relative level, in decibels, of a sawtooth wave's third
|
|
|
|
harmonic (three times the fundamental) compared to that of the fundamental?
|
|
|
|
|
|
|
|
<P>
|
|
|
|
</LI>
|
|
|
|
<LI>Suppose you synthesize a 44000-Hertz sawtooth wave at a sample rate
|
|
|
|
of 44100 Hertz. What is the resulting waveform?
|
|
|
|
|
|
|
|
<P>
|
|
|
|
</LI>
|
|
|
|
<LI>Using the techniques of Section <A HREF="node47.html#sect3.analog">3.7</A>, draw a block diagram
|
|
|
|
for generating two phase-locked sinusoids at 500 and 700 Hertz.
|
|
|
|
|
|
|
|
<P>
|
|
|
|
</LI>
|
|
|
|
<LI>Draw a block diagram showing how to use thresholding to detect when one
|
|
|
|
audio signal exceeds another one in value. (You might want to do this to
|
|
|
|
detect and filter out feedback from speakers to microphones.)
|
|
|
|
|
|
|
|
<P>
|
|
|
|
</LI>
|
|
|
|
</OL>
|
|
|
|
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
|
|
<!--Navigation Panel-->
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="tex2html1387"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node58.html">
|
|
|
|
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
|
2022-04-12 22:02:59 -03:00
|
|
|
SRC="next.png"></A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="tex2html1381"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node40.html">
|
|
|
|
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
|
2022-04-12 22:02:59 -03:00
|
|
|
SRC="up.png"></A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="tex2html1377"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node56.html">
|
|
|
|
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
|
2022-04-12 22:02:59 -03:00
|
|
|
SRC="prev.png"></A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="tex2html1383"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node4.html">
|
|
|
|
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
|
2022-04-12 22:02:59 -03:00
|
|
|
SRC="contents.png"></A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="tex2html1385"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node201.html">
|
|
|
|
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
|
2022-04-12 22:02:59 -03:00
|
|
|
SRC="index.png"></A>
|
2022-04-12 21:54:18 -03:00
|
|
|
<BR>
|
2022-04-12 23:32:40 -03:00
|
|
|
<B> Next:</B> <A ID="tex2html1388"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node58.html">Automation and voice management</A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<B> Up:</B> <A ID="tex2html1382"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node40.html">Audio and control computations</A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<B> Previous:</B> <A ID="tex2html1378"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node56.html">MIDI-style synthesizer</A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<B> <A ID="tex2html1384"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node4.html">Contents</A></B>
|
2022-04-12 23:32:40 -03:00
|
|
|
<B> <A ID="tex2html1386"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node201.html">Index</A></B>
|
|
|
|
<!--End of Navigation Panel-->
|
|
|
|
<ADDRESS>
|
|
|
|
Miller Puckette
|
|
|
|
2006-12-30
|
|
|
|
</ADDRESS>
|
|
|
|
</BODY>
|
|
|
|
</HTML>
|