replace in opening quotations
This commit is contained in:
20
node23.html
20
node23.html
@@ -71,7 +71,7 @@ Conversion between frequency and pitch</A>
|
||||
|
||||
<P>
|
||||
Example A06.frequency.pd (Figure <A HREF="#fig01.13">1.13</A>) shows Pd's object for converting
|
||||
pitch to frequency units (<TT>mtof</TT>, meaning ``MIDI to frequency") and its
|
||||
pitch to frequency units (<TT>mtof</TT>, meaning "MIDI to frequency") and its
|
||||
inverse <TT>ftom</TT>. We also introduce two other object classes,
|
||||
<TT>send</TT> and <TT>receive</TT>.
|
||||
|
||||
@@ -105,7 +105,7 @@ Conversion between pitch and frequency in A06.frequency.pd.</CAPTION>
|
||||
<A NAME="1405"></A><A NAME="1406"></A>convert MIDI pitch to frequency units according to the
|
||||
Pitch/Frequency Conversion Formulas (Page <A HREF="node11.html#eq-pitchmidi"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
|
||||
SRC="crossref.png"></A>). Inputs
|
||||
and outputs are messages (``tilde" equivalents of the two also exist,
|
||||
and outputs are messages ("tilde" equivalents of the two also exist,
|
||||
although like <TT>dbtorms~</TT> they're expensive in CPU time).
|
||||
The <TT>ftom</TT> object's output is -1500
|
||||
if the input is zero or negative; and likewise, if you give <TT>mtof</TT> -1500 or lower it outputs zero.
|
||||
@@ -125,11 +125,11 @@ if the input is zero or negative; and likewise, if you give <TT>mtof</TT> -1500
|
||||
SRC="img157.png"
|
||||
ALT="\fbox{ $ \mathrm{r} $}">:
|
||||
<A NAME="1407"></A><A NAME="1408"></A>Receive messages non-locally.
|
||||
The <TT>receive</TT> object, which may be abbreviated as ``<TT>r</TT>",
|
||||
The <TT>receive</TT> object, which may be abbreviated as "<TT>r</TT>",
|
||||
waits for non-local messages to be sent by a <TT>send</TT> object (described below)
|
||||
or
|
||||
by a message box using redirection (the ``;" feature discussed in the
|
||||
earlier example, A01.sinewave.pd). The argument (such as ``frequency" and ``pitch"
|
||||
by a message box using redirection (the ";" feature discussed in the
|
||||
earlier example, A01.sinewave.pd). The argument (such as "frequency" and "pitch"
|
||||
in this example) is the name to which messages are sent. Multiple
|
||||
<TT>receive</TT> objects may share the same name, in which case any message
|
||||
sent to that name will go to all of them.
|
||||
@@ -148,7 +148,7 @@ sent to that name will go to all of them.
|
||||
WIDTH="31" HEIGHT="33" ALIGN="MIDDLE" BORDER="0"
|
||||
SRC="img159.png"
|
||||
ALT="\fbox{ $\mathrm{s}$\ }">:
|
||||
<A NAME="1409"></A><A NAME="1410"></A>The <TT>send</TT> object, which may be abbreviated as ``<TT>s</TT>", directs
|
||||
<A NAME="1409"></A><A NAME="1410"></A>The <TT>send</TT> object, which may be abbreviated as "<TT>s</TT>", directs
|
||||
messages to <TT>receive</TT> objects.
|
||||
|
||||
<P>
|
||||
@@ -156,11 +156,11 @@ Two new properties of number boxes are used here. Earlier we've used them
|
||||
as controls or as displays; here, the two number boxes each function as both.
|
||||
If a number box gets a number in its inlet, it not only displays the number
|
||||
but also repeats the number to its output. However, a number box may also be sent
|
||||
a ``set" message, such as ``set 55" for example. This would set the value
|
||||
a "set" message, such as "set 55" for example. This would set the value
|
||||
of the number box to 55 (and display it) but not cause the output that would
|
||||
result from the simple ``55" message. In this case, numbers coming from the
|
||||
two <TT>receive</TT> objects are formatted (using message boxes) to read ``set 55" instead
|
||||
of just ``55", and so on. (The special word ``$1" is replaced by the
|
||||
result from the simple "55" message. In this case, numbers coming from the
|
||||
two <TT>receive</TT> objects are formatted (using message boxes) to read "set 55" instead
|
||||
of just "55", and so on. (The special word "$1" is replaced by the
|
||||
incoming number.) This is done because otherwise we would have an infinite
|
||||
loop: frequency would change pitch which would change frequency and so on
|
||||
forever, or at least until something broke.
|
||||
|
||||
Reference in New Issue
Block a user