Skip to content

Instantly share code, notes, and snippets.

/* ------------------------------------------------------------
name: "organ"
Code generated with Faust 2.82.4 (https://faust.grame.fr)
Compilation options: -lang cpp -ct 1 -es 1 -mcd 16 -mdd 1024 -mdy 33 -single -ftz 0
------------------------------------------------------------ */
#ifndef __mydsp_H__
#define __mydsp_H__
#ifndef FAUSTFLOAT
faust2clap organ.dsp
[i] JSON metadata not available, falling back to C++ parsing.
[i] Detected as INSTRUMENT based on name containing 'organ'
[i] Add this to your CMakeLists.txt:
include_directories("/Users/letz/Developpements/faust/utilisateurs/Steph/build/organ")
[*] extracted metadata:
id: org.faust.organ
name: organ
vendor: faust
version: 1.0.0
magellan-pro:Downloads letz$ interp-tracer -trace 4 -control TEST.dsp
Filename: TEST.dsp
Libfaust version : 2.82.0 (LLVM 21.1.4)
Compiled with additional options :
Using interpreter backend
getName TEST
------------------------
init 44100
------------------------
instanceInit 44100
faust2clap freeverb.dsp
[i] JSON metadata not available, falling back to C++ parsing.
[i] Detected as EFFECT (has 2 audio inputs)
[i] Add this to your CMakeLists.txt:
include_directories("/Users/letz/Developpements/faust/utilisateurs/Steph/build/freeverb")
[*] extracted metadata:
id: org.faust.freeverb
name: freeverb
vendor: RM
version: 0.0
faust2clap organ.dsp
/usr/local/share/faust/clap/clap-arch.cpp
arch_path_from_faust: /usr/local/share/faust/clap/clap-arch.cpp
[i] JSON metadata not available, falling back to C++ parsing.
[i] Detected as INSTRUMENT based on name containing 'organ'
[i] Add this to your CMakeLists.txt:
include_directories("/Users/letz/Developpements/faust/utilisateurs/Steph/build/organ")
[*] extracted metadata:
id: org.faust.organ
name: FOO_ BAR TOTO TITI
make jsfx -i
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Make.jsfx outdir=jsfx/double FAUSTOPTIONS="-I dsp -double"
mkdir -p ir/jsfx/double
cd dsp/; ../../../build/bin/faust -lang jsfx-test APF.dsp -I dsp -double > ../ir/jsfx/double/APF.jsfx || (rm -f ../ir/jsfx/double/APF.jsfx; false)
./impulsejsfx ir/jsfx/double/APF.jsfx > ir/jsfx/double/APF.ir || (rm -f ../ir/jsfx/double/APF.ir; false)
./filesCompare ir/jsfx/double/APF.ir reference/APF.ir || (rm -f ir/jsfx/double/APF.ir; false)
cd dsp/; ../../../build/bin/faust -lang jsfx-test BPF.dsp -I dsp -double > ../ir/jsfx/double/BPF.jsfx || (rm -f ../ir/jsfx/double/BPF.jsfx; false)
./impulsejsfx ir/jsfx/double/BPF.jsfx > ir/jsfx/double/BPF.ir || (rm -f ../ir/jsfx/double/BPF.ir; false)
./filesCompare ir/jsfx/double/BPF.ir reference/BPF.ir || (rm -f ir/jsfx/double/BPF.ir; false)
cd dsp/; ../../../build/bin/faust -lang jsfx-test HPF.dsp -I dsp -double > ../ir/jsfx/double/HPF.jsfx || (rm -f ../ir/jsfx/double/HPF.jsfx; false)
magellan-pro:examples letz$ faust2wwise reverb/dattorro.dsp
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
faust2wwise static compilation tool.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
--------- Environment variables ----------
Wwise installation: /Applications/Audiokinetic/Wwise2024.1.4.8780
@sletz
sletz / gist:960f204a49924dbe4b71184ddb4c9423
Last active August 3, 2025 19:32
Faust linsweep/logsweep test signals
//================ Test signal generators ===================
// Different signal generators for testing purposes.
//============================================================
sweep_env(fs, fe, dur, mode) = environment {
sweep = sin(phase(mode))
with {
T = dur * ma.SR; // duration in samples
k = log(fe/fs) / dur; // exponential rate for logarithmic sweep
//========================= Introduction =======================================
// Vicanek's Matched (Decramped) Second-Order Filters
//================================================================================
//
// This collection implements high-quality, double-precision second-order filters
// based on the work of Vicanek, offering improved frequency accuracy and dynamic
// response over traditional biquads—especially near Nyquist.
//
// Standard digital filter designs (like bilinear-transformed biquads) suffer from
// frequency warping, which distorts the placement of poles and zeros. Vicanek's
@sletz
sletz / gist:70d4a6b54e7c3336c3c207184d9fcdbe
Last active May 1, 2025 05:19
Decramped peak filter algorithm in Faust
import("stdfaust.lib");
// =============================================================================
// Decramped Peaking EQ Filter (Second Order Biquad)
// Based on the Audio EQ Cookbook by Robert Bristow-Johnson
// https://webaudio.github.io/Audio-EQ-Cookbook/audio-eq-cookbook.html
//
// This implementation uses the standard RBJ formulas which inherently
// account for frequency warping (i.e., they are "decramped").
// =============================================================================