Skip to content

Commit

Permalink
Typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
sletz committed Oct 31, 2018
1 parent 552b78c commit a9eb7a3
Show file tree
Hide file tree
Showing 12 changed files with 50 additions and 50 deletions.
4 changes: 2 additions & 2 deletions analyzers.lib
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ analyzer(O,lfreqs) = _ <: bsplit(nb) with
};

//================ Fast Fourier Transform (fft) and its Inverse (ifft) ===================
// Sliding FFTs that compute a rectangularly windowed FFT each sample
// Sliding FFTs that compute a rectangularly windowed FFT each sample.
//========================================================================================

// Undocumented utility functions used by fft and ifft:
Expand Down Expand Up @@ -397,7 +397,7 @@ with {
// rfft(N) = an.rtocv(N) : an.fft(N);

//---------------`(an.)ifft`--------------------------
// Inverse Fast Fourier Transform (IFFT)
// Inverse Fast Fourier Transform (IFFT).
//
// #### Usage
//
Expand Down
10 changes: 5 additions & 5 deletions basics.lib
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ take (nn, (xs, xxs)) = take (nn-1, xxs);
// #### Note:
//
// Faust doesn't have proper lists. Lists are simulated with parallel
// compositions and there is no empty list
// compositions and there is no empty list.
//-----------------------------------------------------------------------------
subseq((head, tail), 0, 1) = head;
subseq((head, tail), 0, n) = head, subseq(tail, 0, n-1);
Expand Down Expand Up @@ -835,7 +835,7 @@ with {

//-----------------`(ba.)bpf`-------------------
// bpf is an environment (a group of related definitions) that can be used to
// create break-point functions. It contains three functions :
// create break-point functions. It contains three functions:
//
// * `start(x,y)` to start a break-point function
// * `end(x,y)` to end a break-point function
Expand All @@ -861,7 +861,7 @@ with {
// f = bpf.start(x0,y0) : ... : bpf.point(xi,yi) : ... : bpf.end(xn,yn);
// ```
//
// implements a break-point function f such that :
// implements a break-point function f such that:
//
// * `f(x) = y_{0}` when `x < x_{0}`
// * `f(x) = y_{n}` when `x > x_{n}`
Expand Down Expand Up @@ -1047,7 +1047,7 @@ selectoutn(n, s) = _ <: par(i,n, _* (s==i) ) ;

//=================================Sliding Reduce=========================================
// Provides various operations on the last N samples using a high order
// `slidingReduce(op,N,maxN,disabledVal,x)`` fold-like function :
// `slidingReduce(op,N,maxN,disabledVal,x)`` fold-like function:
//
// * `slidingSumN(n,maxn)`: the sliding sum of the last n input samples
// * `slidingMaxN(n,maxn)`: the sliding max of the last n input samples
Expand Down Expand Up @@ -1222,7 +1222,7 @@ selectoutn(n, s) = _ <: par(i,n, _* (s==i) ) ;
// the last `<n>` consecutive samples of a signal `<x>`. For example :
// `slidingReduce(max,128,128,-(ma.INFINITY))` will compute the maximum of the last
// 128 samples. The output is updated each sample, unlike reduce, where the
// output is constant for the duration of a block
// output is constant for the duration of a block.
//
// #### Usage
//
Expand Down
4 changes: 2 additions & 2 deletions compressors.lib
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ declare version "0.0";

//--------------------`(co.)compressor_mono`-------------------
// Mono dynamic range compressors.
// `compressor_mono` is a standard Faust function
// `compressor_mono` is a standard Faust function.
//
// #### Usage
//
Expand Down Expand Up @@ -129,7 +129,7 @@ with {
// Rel: 50-1100 ms (Note: scaled by ratio in the 1176)
// Mike Shipley likes 4:1 (Grammy-winning mixer for Queen, Tom Petty, etc.)
// Faster attack gives "more bite" (e.g. on vocals)
// He hears a bright, clear eq effect as well (not implemented here)
// He hears a bright, clear eq effect as well (not implemented here).
// `limiter_1176_R4_mono` is a standard Faust function.
//
// #### Usage
Expand Down
2 changes: 1 addition & 1 deletion demos.lib
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ with{


//--------------------------`(dm.)envelopes_demo`---------------------------
// Illustrate various envelopes overlaid, including their gate * 1.1
// Illustrate various envelopes overlaid, including their gate * 1.1.
//
// #### Usage
//
Expand Down
2 changes: 1 addition & 1 deletion dx7.lib
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ with{

//------------------------------`(dx.)dx7_algo`---------------------------
// DX7 algorithms. Implements the 32 DX7 algorithms (a quick Google search
// should give your more details on this). Each algorithm uses 6 operators
// should give your more details on this). Each algorithm uses 6 operators.
//
// #### Usage:
//
Expand Down
6 changes: 3 additions & 3 deletions filters.lib
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Michon and Julius O. Smith III, and are released under the
//========================================================================================

//----------------------`(fi.)zero`--------------------------
// One zero filter. Difference equation: $y(n) = x(x) - zx(n-1)$.
// One zero filter. Difference equation: $y(n) = x(n) - zx(n-1)$.
//
// #### Usage
//
Expand Down Expand Up @@ -1736,7 +1736,7 @@ with { // octave script output:
};

//=================Parametric Equalizers (Shelf, Peaking)=================================
// Parametric Equalizers (Shelf, Peaking)
// Parametric Equalizers (Shelf, Peaking).
//
// #### References
// * <http://en.wikipedia.org/wiki/Equalization>
Expand Down Expand Up @@ -1874,7 +1874,7 @@ peak_eq(Lfx,fx,B) = tf2s(1,b1s,1,a1s,1,wx) with {
peak_eq_cq(Lfx,fx,Q) = peak_eq(Lfx,fx,fx/Q);

//-------------------`(fi.)peak_eq_rm`--------------------------
// Regalia-Mitra second order peaking equalizer section
// Regalia-Mitra second order peaking equalizer section.
//
// #### Usage
//
Expand Down
4 changes: 2 additions & 2 deletions maths.lib
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ INFINITY = fconstant(float INFINITY, <math.h>);
//---------------------------------`(ma.)FTZ`---------------------------------------
// Flush to zero: force samples under the "maximum subnormal number"
// to be zero. Usually not needed in C++ because the architecture
// file take care of this, but can be useful in javascript for instance.
// file take care of this, but can be useful in JavaScript for instance.
//
// #### Usage
//
Expand Down Expand Up @@ -612,7 +612,7 @@ diffn(x) = x' - x; // negated first-order difference

//------------------`(ma.)signum`----------------------------
// The signum function signum(x) is defined as
// -1 for x<0, 0 for x==0, and 1 for x>0;
// -1 for x<0, 0 for x==0, and 1 for x>0.
//
// #### Usage
//
Expand Down
4 changes: 2 additions & 2 deletions noises.lib
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ with {
};

//--------------------`(no.)lfnoise`, `(no.)lfnoise0` and `(no.)lfnoiseN`-----------------
// Low-frequency noise generators (Butterworth-filtered downsampled white noise)
// Low-frequency noise generators (Butterworth-filtered downsampled white noise).
//
// #### Usage
//
Expand Down Expand Up @@ -256,7 +256,7 @@ with {
};

//----------------------------`(no.)gnoise`------------------------
// approximate zero-mean, unit-variance Gaussian white noise generator
// approximate zero-mean, unit-variance Gaussian white noise generator.
//
// #### Usage
//
Expand Down
2 changes: 1 addition & 1 deletion old/math.lib
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ PI = 3.1415926535897932385;
//--------------------------------- FTZ ---------------------------------------
// Flush to zero : force samples under the "maximum subnormal number"
// to be zero. Usually not needed in C++ because the architecture
// file take care of this, but can be useful in javascript for instance.
// file take care of this, but can be useful in JavaScript for instance.
//
// ### Usage:
// `_:ftz:_`
Expand Down
20 changes: 10 additions & 10 deletions oscillators.lib
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ declare lf_imptrain license "STK-4.3.0 (see licenses/stk-4.3.0.md)";
lf_imptrain(freq) = lf_sawpos(freq)<:-(mem)<0; // definition below

//--------`(os.)lf_pulsetrainpos`----------
// Unit-amplitude nonnegative LF pulse train, duty cycle between 0 and 1
// Unit-amplitude nonnegative LF pulse train, duty cycle between 0 and 1.
//
//
// #### Usage
Expand All @@ -274,7 +274,7 @@ lf_pulsetrainpos(freq,duty) = float(lf_sawpos(freq) <= duty);
//pulsetrainpos = lf_pulsetrainpos; // for backward compatibility

//--------`(os.)lf_pulsetrain`----------
// Unit-amplitude zero-mean LF pulse train, duty cycle between 0 and 1
// Unit-amplitude zero-mean LF pulse train, duty cycle between 0 and 1.
//
// #### Usage
//
Expand Down Expand Up @@ -325,7 +325,7 @@ lf_squarewave(freq) = 2*lf_squarewavepos(freq) - 1;


//--------`(os.)lf_trianglepos`----------
// Positive unit-amplitude LF positive triangle wave
// Positive unit-amplitude LF positive triangle wave.
//
// #### Usage
//
Expand Down Expand Up @@ -442,7 +442,7 @@ saw1(freq) = 2.0 * lf_sawpos(freq) - 1.0;
lf_saw(freq) = saw1(freq);

//================== Bandlimited Sawtooth ====================
//------------------`(os.)sawN`--------------------------------
//-----------------`(os.)sawN`--------------------
// Bandlimited Sawtooth
//
// `sawN(N,freq)`, `sawNp`, `saw2dpw(freq)`, `saw2(freq)`, `saw3(freq)`,
Expand All @@ -451,7 +451,7 @@ lf_saw(freq) = saw1(freq);
//
// #### Method 1 (`saw2`)
//
// Polynomial Transition Regions (PTR) (for aliasing suppression)
// Polynomial Transition Regions (PTR) (for aliasing suppression).
//
// ##### Reference
//
Expand All @@ -463,7 +463,7 @@ lf_saw(freq) = saw1(freq);
//
// #### Method 2 (`sawN`)
//
// Differentiated Polynomial Waves (DPW) (for aliasing suppression)
// Differentiated Polynomial Waves (DPW) (for aliasing suppression).
//
// ##### Reference
//
Expand Down Expand Up @@ -596,7 +596,7 @@ saw2f4 = saw2 : cf4 with {


//=========Bandlimited Pulse, Square, and Impulse Trains============
// Bandlimited Pulse, Square, and Impulse Trains
// Bandlimited Pulse, Square, and Impulse Trains.
//
// `pulsetrainN`, `pulsetrain`, `squareN`, `square`, `imptrain`, `imptrainN`,
// `triangle`, `triangleN`
Expand Down Expand Up @@ -852,7 +852,7 @@ oscr = oscrs; // default = sine (starts without a pop)
//--------------------------`(os.)oscs`--------------------------------
// Sinusoidal oscillator based on the state variable filter
// = undamped "modified-coupled-form" resonator
// = "magic circle" algorithm used in graphics
// = "magic circle" algorithm used in graphics.
//------------------------------------------------------------
oscs(f) = (*(-1) : sint(wn) : sintp(wn,impulse)) ~ _
with {
Expand Down Expand Up @@ -908,7 +908,7 @@ oscwc(fr) = impulse : fi.wgr(fr,1) : _,!; // cosine (cheapest at 1 mpy/sample)

//-----------------`(os.)oscws`--------------------
// Sinusoidal oscillator based on the waveguide resonator `wgr`. Unit-amplitude
// sine oscillator
// sine oscillator.
//
// #### Usage
//
Expand Down Expand Up @@ -950,7 +950,7 @@ oscq(fr) = impulse : fi.wgr(fr,1); // phase quadrature outputs

//-----------------`(os.)oscw`--------------------
// Sinusoidal oscillator based on the waveguide resonator `wgr`.
// Unit-amplitude cosine oscillator (default)
// Unit-amplitude cosine oscillator (default).
//
// #### Usage
//
Expand Down
Loading

0 comments on commit a9eb7a3

Please sign in to comment.