Skip to content

Commit

Permalink
Update examples. Set version to 1.5.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
sletz committed Jul 22, 2024
1 parent 75ab86f commit 75873c3
Show file tree
Hide file tree
Showing 57 changed files with 3,736 additions and 2,177 deletions.
402 changes: 204 additions & 198 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fausteditorweb",
"version": "1.5.0",
"version": "1.5.1",
"description": "Faust IDE",
"main": "src/index.ts",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion src/static/examples.json

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions src/static/examples/LIBRARIES/aanl.lib
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@
//
// #### References
// * <https://github.com/grame-cncm/faustlibraries/blob/master/aanl.lib>
// * <https://www.dafx.de/paper-archive/2016/dafxpapers/20-DAFx-16_paper_41-PN.pdf>
// * Reducing the Aliasing in Nonlinear Waveshaping Using Continuous-time Convolution,
// Julian Parker, Vadim Zavalishin, Efflam Le Bivic, DAFX, 2016
// * <http://dafx16.vutbr.cz/dafxpapers/20-DAFx-16_paper_41-PN.pdf>
//########################################################################################

ba = library("basics.lib");
ma = library("maths.lib");

declare name "Faust Antialiased Nonlinearities";
declare version "0.3";
declare version "1.3.0";

//==============================Auxiliary Functions=======================================
//========================================================================================
Expand Down
55 changes: 27 additions & 28 deletions src/static/examples/LIBRARIES/analyzers.lib
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fi = library("filters.lib");
an = library("analyzers.lib"); // for compatible copy/paste out of this file

declare name "Faust Analyzer Library";
declare version "0.2";
declare version "1.2.0";

/************************************************************************
FAUST library file, jos section
Expand Down Expand Up @@ -54,8 +54,8 @@ abs_envelope_rect(period, x) = abs(x) : fi.avg_rect(period);


//------------------`(an.)abs_envelope_tau`------------------------------------
// Absolute value average with one-pole lowpass and tau response.
// (See filters.lib.)
// Absolute value average with one-pole lowpass and tau response
// (see [filters.lib](https://faustlibraries.grame.fr/libs/filters/)).
//
// #### Usage
//
Expand All @@ -76,8 +76,8 @@ abs_envelope_tau(period, x) = abs(x) : fi.avg_tau(period);


//------------------`(an.)abs_envelope_t60`------------------------------------
// Absolute value average with one-pole lowpass and t60 response.
// (See filters.lib.)
// Absolute value average with one-pole lowpass and t60 response
// (see [filters.lib](https://faustlibraries.grame.fr/libs/filters/)).
//
// #### Usage
//
Expand All @@ -98,8 +98,8 @@ abs_envelope_t60(period, x) = abs(x) : fi.avg_t60(period);


//------------------`(an.)abs_envelope_t19`------------------------------------
// Absolute value average with one-pole lowpass and t19 response.
// (See filters.lib.)
// Absolute value average with one-pole lowpass and t19 response
// (see [filters.lib](https://faustlibraries.grame.fr/libs/filters/)).
//
// #### Usage
//
Expand Down Expand Up @@ -222,8 +222,8 @@ ms_envelope_rect(period, x) = x * x : fi.avg_rect(period);


//------------------`(an.)ms_envelope_tau`-------------------------------------
// Mean square average with one-pole lowpass and tau response.
// (see `filters.lib`)
// Mean square average with one-pole lowpass and tau response
// (see [filters.lib](https://faustlibraries.grame.fr/libs/filters/)).
//
// #### Usage
//
Expand All @@ -244,8 +244,8 @@ ms_envelope_tau(period, x) = x * x : fi.avg_tau(period);


//------------------`(an.)ms_envelope_t60`-------------------------------------
// Mean square with one-pole lowpass and t60 response.
// (see `filters.lib`)
// Mean square with one-pole lowpass and t60 response
// (see [filters.lib](https://faustlibraries.grame.fr/libs/filters/)).
//
// #### Usage
//
Expand All @@ -266,8 +266,8 @@ ms_envelope_t60(period, x) = x * x : fi.avg_t60(period);


//------------------`(an.)ms_envelope_t19`-------------------------------------
// Mean square with one-pole lowpass and t19 response.
// (see `filters.lib`)
// Mean square with one-pole lowpass and t19 response
// (see [filters.lib](https://faustlibraries.grame.fr/libs/filters/)).
//
// #### Usage
//
Expand Down Expand Up @@ -309,8 +309,8 @@ rms_envelope_rect(period, x) = ms_envelope_rect(period, x) : sqrt;


//------------------`(an.)rms_envelope_tau`------------------------------------
// Root mean square with one-pole lowpass and tau response.
// (see `filters.lib`)
// Root mean square with one-pole lowpass and tau response
// (see [filters.lib](https://faustlibraries.grame.fr/libs/filters/)).
//
// #### Usage
//
Expand All @@ -331,8 +331,8 @@ rms_envelope_tau(period, x) = ms_envelope_tau(period, x) : sqrt;


//------------------`(an.)rms_envelope_t60`------------------------------------
// Root mean square with one-pole lowpass and t60 response.
// (see `filters.lib`)
// Root mean square with one-pole lowpass and t60 response
// (see [filters.lib](https://faustlibraries.grame.fr/libs/filters/)).
//
// #### Usage
//
Expand All @@ -353,8 +353,8 @@ rms_envelope_t60(period, x) = ms_envelope_t60(period, x) : sqrt;


//------------------`(an.)rms_envelope_t19`------------------------------------
// Root mean square with one-pole lowpass and t19 response.
// (see `filters.lib`)
// Root mean square with one-pole lowpass and t19 response
// (see [filters.lib](https://faustlibraries.grame.fr/libs/filters/)).
//
// #### Usage
//
Expand Down Expand Up @@ -400,9 +400,8 @@ declare zcr license "MIT-style STK-4.3 license";
zcr(period, x) = ma.zc(x) : fi.lptau(period);


//==============================================================================
// Adaptive Frequency Analysis
//==============================================================================
//==============================Adaptive Frequency Analysis===============================
//========================================================================================

//--------------------`(an.)pitchTracker`---------------------------------------
//
Expand All @@ -418,7 +417,7 @@ zcr(period, x) = ma.zc(x) : fi.lptau(period);
//
// Where:
//
// * `N`: compile-time constant, sets the order of the low-pass filter, which
// * `N`: a constant numerical expression, sets the order of the low-pass filter, which
// determines the sensitivity of the algorithm for signals where partials are
// stronger than the fundamental frequency.
// * `tau`: response time in seconds based on exponentially-weighted averaging with tau time-constant. See <https://ccrma.stanford.edu/~jos/st/Exponentials.html>.
Expand Down Expand Up @@ -484,9 +483,9 @@ spectralCentroid(nonlinearity, t, x) = loop ~ _
'y = (x - s) * G + s;
's = 2 * (x - s) * G + s;
}
with {
G = tan(w(cf) / 2.0) / (1.0 + tan(w(cf) / 2.0));
};
with {
G = tan(w(cf) / 2.0) / (1.0 + tan(w(cf) / 2.0));
};
highpass(cf, x) = x - lowpass(cf, x);
xRMS = an.rms_envelope_tau(t, x);
xLRMS = an.rms_envelope_tau(t, lowpass(fb, x));
Expand Down Expand Up @@ -559,7 +558,7 @@ spectralCentroid(nonlinearity, t, x) = loop ~ _
//
// Where:
//
// * `O`: order of filter used to split each frequency band into two
// * `O`: (odd) order of filter used to split each frequency band into two
// * `M`: number of band-slices per octave
// * `ftop`: highest band-split crossover frequency (e.g., 20 kHz)
// * `N`: total number of bands (including dc and Nyquist)
Expand Down Expand Up @@ -589,7 +588,7 @@ mth_octave_analyzer_default = mth_octave_analyzer6e; // default analyzer


//============================Mth-Octave Spectral Level===================================
// Spectral Level: Display (in bar graphs) the average signal level in each spectral band.
// Spectral Level: display (in bargraphs) the average signal level in each spectral band.
//========================================================================================


Expand Down
Loading

0 comments on commit 75873c3

Please sign in to comment.