Skip to content

Commit

Permalink
helpdocs: remove use of old formula:: tag
Browse files Browse the repository at this point in the history
Most of them expressed the formula as code, so I replaced them with code:: for now.
Someone who speaks TeX math will need to convert them to math:: instead.
(cherry picked from commit 5c84bd1)
  • Loading branch information
lijon committed Feb 8, 2012
1 parent 2004e21 commit da17ded
Show file tree
Hide file tree
Showing 30 changed files with 33 additions and 45 deletions.
2 changes: 1 addition & 1 deletion HelpSource/Classes/AmpComp.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Description::

Implements the (optimized) formula:

formula::
code::
compensationFactor = (root / freq) ** exp
::

Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/BPZ2.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Description::

A special case fixed filter. Implements the formula:

formula::
code::
out(i) = 0.5 * (in(i) - in(i - 2)).
::

Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/BRZ2.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Description::

A special case fixed filter. Implements the formula:

formula::
code::
out(i) = 0.5 * (in(i) + in(i - 2)).
::

Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/BufSamples.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ categories:: UGens>Buffer>Info
Description::

Returns the current number of allocated samples. A sample is not the same as a frame (compare with link::Classes/BufFrames:: ); a frame includes the samples in each channel of the buffer. Only for a mono buffer are samples the same as frames.
formula::
code::
samples = frames * numChannels
::

Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/Bus.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Bus objects should not be created or modified within a link::Classes/SynthDef::.

Note::
The lowest code::n:: bus indices are reserved for hardware output and input, where
formula::
code::
n = server.options.numOutputBusChannels + server.options.numInputBusChannels
::
definitionlist::
Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/COsc.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Description::

Chorusing wavetable lookup oscillator. Produces sum of two signals at

formula::
code::
(freq ± (beats / 2)).
::

Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/Changed.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ threshold

discussion::
Implements the formula:
formula::
code::
out(i) = abs(in(i) - in(i-1)) > thresh
::

Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/FOS.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Description::
A standard first order filter section. Filter coefficients are given
directly rather than calculated for you. Formula is equivalent to:

formula::
code::
out(i) = (a0 * in(i)) + (a1 * in(i-1)) + (b1 * out(i-1))
::

Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/Gendy2.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ argument::a
Parameter for Lehmer random number generator perturbed by
Xenakis as in

formula::
code::
((old*a)+c)%1.0
::

Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/HPZ1.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Description::

A special case fixed filter. Implements the formula:

formula::
code::
out(i) = 0.5 * (in(i) - in(i-1))
::

Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/HPZ2.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Description::

A special case fixed filter. Implements the formula:

formula::
code::
out(i) = 0.25 * (in(i) - (2 * in(i - 1)) + in(i - 2)).
::

Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/Integrator.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Description::

Integrates an input signal with a leak. The formula implemented is:

formula::
code::
out(0) = in(0) + (coef * out(-1))
::

Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/LFGauss.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description::
A non-band-limited gaussian function oscillator. Output ranges from strong::minval:: to 1.

LFGauss implements the formula:
formula::
code::
f(x) = exp(squared(x - iphase) / (-2.0 * squared(width)))
::
where x is to vary in the range -1 to 1 over the period dur. strong::minval:: is the initial value at -1.
Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/LPZ1.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ categories:: UGens>Filters>Linear
Description::

A special case fixed filter. Implements the formula:
formula::
code::
out(i) = 0.5 * (in(i) + in(i-1))
::
which is a two point averager.
Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/LPZ2.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ categories:: UGens>Filters>Linear
Description::

A special case fixed filter. Implements the formula:
formula::
code::
out(i) = 0.25 * (in(i) + (2 * in(i - 1)) + in(i - 2)).
::

Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/Logistic.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ categories:: UGens>Generators>Chaotic
Description::

A noise generator based on the logistic map:
formula::
code::
y = chaosParam * y * (1.0 - y)
::

Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/OnePole.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Description::

A one pole filter. Implements the formula:

formula::
code::

out(i) = ((1 - abs(coef)) * in(i)) + (coef * out(i-1)).

Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/OneZero.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Description::

A one zero filter. Implements the formula:

formula::
code::

out(i) = ((1 - abs(coef)) * in(i)) + (coef * in(i-1)).

Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/PV_Add.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Description::

Complex addition:

formula::
code::

RealA + RealB, ImagA + ImagB

Expand Down
6 changes: 3 additions & 3 deletions HelpSource/Classes/PV_ConformalMap.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Description::

Applies the conformal mapping

formula::
code::

z → (z - a) / (1 - za*)

Expand All @@ -20,13 +20,13 @@ the UGen.
Makes a transformation of the complex plane so the output is full of
phase vocoder artifacts but may be musically fun. Usually keep

formula::
code::
|a| < 1
::
but
you can of course try bigger values to make it really noisy.

formula::
code::
a = 0
::
should
Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/PV_Mul.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Description::

Complex Multiplication:

formula::
code::

(RealA * RealB) - (ImagA * ImagB),
(ImagA * RealB) + (RealA * ImagB)
Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/Resonz.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Description::

A two pole resonant filter with zeroes at

formula::
code::
z = ±1
::

Expand Down
4 changes: 2 additions & 2 deletions HelpSource/Classes/Rotate2.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ an axis. Rotate2 does an equal power rotation so it also works well on
stereo sounds. It takes two audio inputs (x, y) and an angle control
(pos). It outputs two channels (x, y). It computes this:

formula::
code::
xout = cos(angle) * xin + sin(angle) * yin;
::

formula::
code::
yout = cos(angle) * yin - sin(angle) * xin;
::

Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/SOS.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Description::
A standard second order filter section. Filter coefficients are given
directly rather than calculated for you. Formula is equivalent to:

formula::
code::

out(i) = (a0 * in(i)) + (a1 * in(i-1)) + (a2 * in(i-2)) + (b1 * out(i-1)) + (b2 * out(i-2))

Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/Schmidt.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ When code::in:: crosses to greater than
code::hi:: , output 1, then when signal crosses lower
than code::lo:: output 0. Uses the formula:

formula::
code::

if (out == 1, { if (in < lo, { out = 0.0 }) }, { if (in > hi, { out = 1.0 }) }).

Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/TGrains.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categories:: UGens>Buffer, UGens>Generators>Granular

Description::
Triggers generate grains from a buffer. Each grain has a Hanning envelope
formula::
code::
(sin2(x) for x from 0 to π)
::
and is panned between two channels of multiple outputs.
Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Classes/XOut.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Send signal to a bus, crossfading with previous contents.
code::xfade:: is a level for the crossfade between what
is on the bus and what you are sending. The algorithm is equivalent to this:

formula::
code::
bus_signal = (input_signal * xfade) + (bus_signal * (1 - xfade));
::

Expand Down
2 changes: 1 addition & 1 deletion HelpSource/Overviews/Operators.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ method:: hypotApx
Hypotenuse approximation. Returns an approximation of the square root of the sum of the squares of x and y.
discussion::
The formula used is :
formula::
code::
abs(x) + abs(y) - ((sqrt(2) - 1) * min(abs(x), abs(y)))
::
hypotApx is used to implement Complex method magnitudeApx.
Expand Down
4 changes: 2 additions & 2 deletions HelpSource/Reference/Server-Command-Reference.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -898,8 +898,8 @@ table::
::
::
Fills a buffer with a series of chebyshev polynomials, which can be defined as:
formula::
cheby(n) = amplitude * cos(n * acos(x))
code::
cheby(n) = amplitude * cos(n * acos(x))
::
The first float value specifies the amplitude for n = 1, the second float value specifies the amplitude for n = 2, and so on. To eliminate a DC offset when used as a waveshaper, the wavetable is offset so that the center value is zero.
::
Expand Down
12 changes: 0 additions & 12 deletions HelpSource/scdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -297,18 +297,6 @@ pre.code {

}

code.formula, pre.formula {
font-family: monospace;
font-size: 10pt;
font-weight: normal;
color: #333;
}

pre.formula {
padding: 0.5em;
text-align: center;
}

.image {
text-align: center;
margin: 2em;
Expand Down

0 comments on commit da17ded

Please sign in to comment.