synths.lib
This library contains a collection of synthesizers. Its official
prefix is sy
.
(sy.)popFilterPerc
A simple percussion instrument based on a "popped" resonant bandpass filter.
popFilterPerc
is a standard Faust function.
Usage
popFilterDrum(freq,q,gate) : _;
Where:
freq
: the resonance frequency of the instrumentq
: the q of the res filter (typically, 5 is a good value)gate
: the trigger signal (0 or 1)
(sy.)dubDub
A simple synth based on a sawtooth wave filtered by a resonant lowpass.
dubDub
is a standard Faust function.
Usage
dubDub(freq,ctFreq,q,gate) : _;
Where:
freq
: frequency of the sawtoothctFreq
: cutoff frequency of the filterq
: Q of the filtergate
: the trigger signal (0 or 1)
(sy.)sawTrombone
A simple trombone based on a lowpassed sawtooth wave.
sawTrombone
is a standard Faust function.
Usage
sawTrombone(att,freq,gain,gate) : _
Where:
att
: exponential attack duration in s (typically 0.01)freq
: the frequencygain
: the gain (0-1)gate
: the gate (0 or 1)
(sy.)combString
Simplest string physical model ever based on a comb filter.
combString
is a standard Faust function.
Usage
combString(freq,res,gate) : _;
Where:
freq
: the frequency of the stringres
: string T60 (resonance time) in secondgate
: trigger signal (0 or 1)
(sy.)additiveDrum
A simple drum using additive synthesis.
additiveDrum
is a standard Faust function.
Usage
additiveDrum(freq,freqRatio,gain,harmDec,att,rel,gate) : _
Where:
freq
: the resonance frequency of the drumfreqRatio
: a list of ratio to choose the frequency of the mode in function offreq
e.g.(1 1.2 1.5 ...). The first element should alwaysgain
: the gain of each mode as a list (1 0.9 0.8 ...). The first elementharmDec
: harmonic decay ratio (0-1): configure the speed at whichatt
: attack duration in secondrel
: release duration in secondgate
: trigger signal (0 or 1)
(sy.)fm
An FM synthesizer with an arbitrary number of modulators connected as a sequence.
fm
is a standard Faust function.
Usage
freqs = (300,400,...);
indices = (20,...);
fm(freqs,indices) : _
Where:
freqs
: a list of frequencies where the first one is the frequency of the carrierindices
: the indices of modulation (Nfreqs-1)