From a9eb7a3994dc3f8650468b41b42f8eb0ed4d5516 Mon Sep 17 00:00:00 2001 From: Stephane Letz Date: Wed, 31 Oct 2018 21:44:33 +0100 Subject: [PATCH] Typos. --- analyzers.lib | 4 ++-- basics.lib | 10 +++++----- compressors.lib | 4 ++-- demos.lib | 2 +- dx7.lib | 2 +- filters.lib | 6 +++--- maths.lib | 4 ++-- noises.lib | 4 ++-- old/math.lib | 2 +- oscillators.lib | 20 ++++++++++---------- physmodels.lib | 40 ++++++++++++++++++++-------------------- reverbs.lib | 2 +- 12 files changed, 50 insertions(+), 50 deletions(-) diff --git a/analyzers.lib b/analyzers.lib index a84366f5..62201d5a 100644 --- a/analyzers.lib +++ b/analyzers.lib @@ -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: @@ -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 // diff --git a/basics.lib b/basics.lib index c9fe0081..09f1167f 100644 --- a/basics.lib +++ b/basics.lib @@ -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); @@ -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 @@ -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}` @@ -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 @@ -1222,7 +1222,7 @@ selectoutn(n, s) = _ <: par(i,n, _* (s==i) ) ; // the last `` consecutive samples of a signal ``. 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 // diff --git a/compressors.lib b/compressors.lib index 08cafa35..f2ec3815 100644 --- a/compressors.lib +++ b/compressors.lib @@ -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 // @@ -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 diff --git a/demos.lib b/demos.lib index 4e171770..56080704 100644 --- a/demos.lib +++ b/demos.lib @@ -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 // diff --git a/dx7.lib b/dx7.lib index 8da11ddb..0a3e3010 100644 --- a/dx7.lib +++ b/dx7.lib @@ -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: // diff --git a/filters.lib b/filters.lib index 1025a310..a0eed0f3 100644 --- a/filters.lib +++ b/filters.lib @@ -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 // @@ -1736,7 +1736,7 @@ with { // octave script output: }; //=================Parametric Equalizers (Shelf, Peaking)================================= -// Parametric Equalizers (Shelf, Peaking) +// Parametric Equalizers (Shelf, Peaking). // // #### References // * @@ -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 // diff --git a/maths.lib b/maths.lib index 2c6675c5..181ebcd2 100644 --- a/maths.lib +++ b/maths.lib @@ -107,7 +107,7 @@ INFINITY = fconstant(float INFINITY, ); //---------------------------------`(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 // @@ -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 // diff --git a/noises.lib b/noises.lib index 4ded1456..8eba9d02 100644 --- a/noises.lib +++ b/noises.lib @@ -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 // @@ -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 // diff --git a/old/math.lib b/old/math.lib index c5129708..e0b2ad13 100644 --- a/old/math.lib +++ b/old/math.lib @@ -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:_` diff --git a/oscillators.lib b/oscillators.lib index f12d4134..f31ac325 100644 --- a/oscillators.lib +++ b/oscillators.lib @@ -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 @@ -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 // @@ -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 // @@ -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)`, @@ -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 // @@ -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 // @@ -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` @@ -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 { @@ -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 // @@ -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 // diff --git a/physmodels.lib b/physmodels.lib index 511f7fd2..742af6f8 100644 --- a/physmodels.lib +++ b/physmodels.lib @@ -27,7 +27,7 @@ // * [Vocal Synthesis](#vocal-synthesis): functions for various vocal synthesis // techniques (e.g., fof, source/filter, etc.) and vocal synthesizers. // * [Misc Functions](#misc-functions): any other functions that don't fit in -// the previous category (e.g., nonlinear filters, etc.) +// the previous category (e.g., nonlinear filters, etc.). // // This library is part of the Faust Physical Modeling ToolKit. // More information on how to use this library can be found on this page: @@ -756,7 +756,7 @@ guitarNuts = lTermination(-bridgeFilter(0.4,0.5),basicBlock); // With: // * `length`: the length of the string in meters // * `pluckPosition`: the plucking position (0.001-0.999) -// * `excitation`: the input signal for the excitation +// * `excitation`: the input signal for the excitation. //---------------------------------------------------------- idealString(length,pluckPosition,excitation) = wg with{ @@ -928,7 +928,7 @@ with{ // by making a polyphonic applications out of this function. Pitch is changed by // changing the length of the string and not through a finger model. // WARNING: this function doesn't currently implement a body (just strings and -// bridge) +// bridge). // // #### Usage // @@ -1006,7 +1006,7 @@ with{ // by making a polyphonic applications out of this function. Pitch is changed by // changing the length of the string and not through a finger model. // WARNING: this function doesn't currently implement a body (just strings and -// bridge) +// bridge). // // #### Usage // @@ -1084,7 +1084,7 @@ with{ // printed models. The 2D space allowing for the control of the shape and the // scale of the model is enabled by interpolating between modes parameters. // More information about this technique/project can be found here: -// +// . // // #### Usage // @@ -1285,7 +1285,7 @@ with{ //-------`(pm.)bowTable`---------- // Extremely basic bow table that can be used to implement a wide range of -// bow types for many different bowed string instruments (violin, cello, etc.) +// bow types for many different bowed string instruments (violin, cello, etc.). // // #### Usage // @@ -1651,7 +1651,7 @@ with{ // // * `pressure`: the pressure of the air flow (DC) created by the virtual performer (0-1). // This can also be any kind of signal that will directly injected in the mouthpiece -// (e.g., breath noise, etc.) +// (e.g., breath noise, etc.). // * `reedStiffness`: reed stiffness (0-1) //---------------------------------- clarinetMouthPiece(reedStiffness,pressure) = lTermination(reedInteraction,in(pressure)) @@ -1676,7 +1676,7 @@ with{ // * `lipsTension`: tension of the lips (0-1) (default: 0.5) // * `pressure`: the pressure of the air flow (DC) created by the virtual performer (0-1). // This can also be any kind of signal that will directly injected in the mouthpiece -// (e.g., breath noise, etc.) +// (e.g., breath noise, etc.). //---------------------------------- brassLips(tubeLength,lipsTension,pressure) = lTermination(mpInteraction,basicBlock) with{ @@ -1702,7 +1702,7 @@ with{ // * `pressure`: the pressure of the air flow (DC) created by the virtual // performer (0-1). // This can also be any kind of signal that will directly injected in the -// mouthpiece (e.g., breath noise, etc.) +// mouthpiece (e.g., breath noise, etc.). //---------------------------------- fluteEmbouchure(pressure) = (_ <: _,_),_,_ : _,*(0.5)+(pressure-_*0.5 : fluteJetTable),_; @@ -1767,7 +1767,7 @@ with{ // * `tubeLength`: the length of the tube in meters // * `pressure`: the pressure of the air flow created by the virtual performer (0-1). // This can also be any kind of signal that will directly injected in the mouthpiece -// (e.g., breath noise, etc.) +// (e.g., breath noise, etc.). // * `reedStiffness`: reed stiffness (0-1) // * `bellOpening`: the opening of bell (0-1) //---------------------------------- @@ -1798,7 +1798,7 @@ with{ // // * `pressure`: the pressure of the air flow created by the virtual performer (0-1). // This can also be any kind of signal that will be directly injected in the mouthpiece -// (e.g., breath noise, etc.) +// (e.g., breath noise, etc.). //---------------------------------- clarinetModel_ui(pressure) = clarinetModel(tubeLength,pressure,reedStiffness,bellOpening)*outGain with{ @@ -1882,7 +1882,7 @@ with{ // * `mute`: mute opening at the end of the instrument (0-1) (default: 0.5) // * `pressure`: the pressure of the air flow created by the virtual performer (0-1). // This can also be any kind of signal that will directly injected in the mouthpiece -// (e.g., breath noise, etc.) +// (e.g., breath noise, etc.). //---------------------------------- brassModel(tubeLength,lipsTension,mute,pressure) = endChain(brassChain) with{ @@ -1906,7 +1906,7 @@ with{ // // * `pressure`: the pressure of the air flow created by the virtual performer (0-1). // This can also be any kind of signal that will be directly injected in the mouthpiece -// (e.g., breath noise, etc.) +// (e.g., breath noise, etc.). //---------------------------------- brassModel_ui(pressure) = brassModel(tubeLength,lipsTension,mute,pressure) with{ @@ -1984,7 +1984,7 @@ with{ // * `mouthPosition`: position of the mouth on the embouchure (0-1) (default: 0.5) // * `pressure`: the pressure of the air flow created by the virtual performer (0-1). // This can also be any kind of signal that will directly injected in the mouthpiece -// (e.g., breath noise, etc.) +// (e.g., breath noise, etc.). //---------------------------------- // TODO: this model is out of tune and we're not really sure why fluteModel(tubeLength,mouthPosition,pressure) = endChain(fluteChain) : fi.dcblocker @@ -2012,7 +2012,7 @@ with{ // // * `pressure`: the pressure of the air flow created by the virtual performer (0-1). // This can also be any kind of signal that will be directly injected in the mouthpiece -// (e.g., breath noise, etc.) +// (e.g., breath noise, etc.). //---------------------------------- fluteModel_ui(pressure) = fluteModel(tubeLength,mouthPosition,pressure)*outGain @@ -3138,7 +3138,7 @@ with { // Autobends the center frequencies of formants 1 and 2 based on // the fundamental frequency of the excitation signal and leaves // all other formant frequencies unchanged. Ported from `chant-lib`. -// Reference: +// Reference: . // // #### Usage // @@ -3171,7 +3171,7 @@ with { // frequency of the excitation signal. Higher formants are // reinforced for higher fundamental frequencies. // Ported from `chant-lib`. -// Reference: +// Reference: . // // #### Usage // @@ -3192,7 +3192,7 @@ vocalEffort(freq,gender) = _ <: ba.if(gender == 0,*(3+1.1*(400-freq)/300), //-------------------------`(pm.)fof`-------------------------- // Function to generate a single Formant-Wave-Function. -// Reference: +// Reference: . // // #### Usage // @@ -3227,7 +3227,7 @@ with { //-------------------------`(pm.)fofSH`------------------------- // FOF with sample and hold used on `bw` and a parameter // used in the filter-cycling FOF function `fofCycle`. -// Reference: +// Reference: . // // #### Usage // @@ -3244,7 +3244,7 @@ fofSH(fc,bw,a,g) = _ <: (((_,bw):ba.sAndH),((_,a):ba.sAndH),_) : (fc,_,_,g,_') : //----------------------`(pm.)fofCycle`------------------------- // FOF implementation where time-varying filter parameter noise is // mitigated by using a cycle of `n` sample and hold FOF filters. -// Reference: +// Reference: . // // #### Usage // diff --git a/reverbs.lib b/reverbs.lib index 3698e080..b5d0109d 100644 --- a/reverbs.lib +++ b/reverbs.lib @@ -83,7 +83,7 @@ jcrev = *(0.06) : allpass_chain <: comb_bank : mix_mtx with { // which was recovered from an old SAIL DART backup tape. // John Chowning thinks this might be the one used on his // often-heard brass canon sound examples, one of which can be found at -// +// . // // #### Usage //