_id stringlengths 64 64 | repository stringlengths 7 61 | name stringlengths 5 45 | content stringlengths 0 943k | download_url stringlengths 94 213 | language stringclasses 1
value | comments stringlengths 0 20.9k | code stringlengths 0 943k |
|---|---|---|---|---|---|---|---|
20eaf4cbf556c79ae03d735937e8e4dc6070cdd1f17368fceb53cbaa222000ee | tonal-glyph/faustus | multiSynth.dsp | //################################### multiSynth.dsp ######################################
// Faust instrument specifically designed for `faust2smartkeyb` where 4 keyboards
// are used to control 4 independent synths.
//
// ## `SmartKeyboard` Use Strategy
//
// The `SmartKeyboard` configuration is relatively simple fo... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/smartKeyboard/multiSynth.dsp | faust | ################################### multiSynth.dsp ######################################
Faust instrument specifically designed for `faust2smartkeyb` where 4 keyboards
are used to control 4 independent synths.
## `SmartKeyboard` Use Strategy
The `SmartKeyboard` configuration is relatively simple for this example... |
declare interface "SmartKeyboard{
'Number of Keyboards':'4',
'Rounding Mode':'2',
'Inter-Keyboard Slide':'0',
'Keyboard 0 - Number of Keys':'13',
'Keyboard 1 - Number of Keys':'13',
'Keyboard 2 - Number of Keys':'13',
'Keyboard 3 - Number of Keys':'13',
'Keyboard 0 - Lowest Key':'60',
'Keyboard 1 - Lowest Key... |
3c5a1e87e5c3eaf850407df4e2e38f12d41e38f62e9c54ee23387848fef7e4a3 | tonal-glyph/faustus | midiOnly.dsp | //################################### midiOnly.dsp ######################################
// Faust instrument specifically designed for `faust2smartkeyb` implementing a MIDI
// controllable app where the mobile device's touch screen is used to control
// specific parameters of the synth continuously using two separate ... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/smartKeyboard/midiOnly.dsp | faust | ################################### midiOnly.dsp ######################################
Faust instrument specifically designed for `faust2smartkeyb` implementing a MIDI
controllable app where the mobile device's touch screen is used to control
specific parameters of the synth continuously using two separate X/Y cont... |
declare interface "SmartKeyboard{
'Number of Keyboards':'1',
'Keyboard 0 - Number of Keys':'2',
'Keyboard 0 - Send Freq':'0',
'Keyboard 0 - Piano Keyboard':'0',
'Keyboard 0 - Static Mode':'1',
'Keyboard 0 - Send Key X':'1',
'Keyboard 0 - Key 0 - Label':'Mod Index',
'Keyboard 0 - Key 1 - Label':'Mod Freq'
}";
... |
a5c6a6e0e433d5d0613b61a1cd52ab6f771b92d87dbea1f9587a9e6064c8552c | tonal-glyph/faustus | drums.dsp | //##################################### drums.dsp ########################################
// Faust instrument specifically designed for `faust2smartkeyb` where 3 drums can
// be controlled using pads. The X/Y postion of fingers is detected on each key
// and use to control the strike postion on the virtual membrane.
/... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/smartKeyboard/drums.dsp | faust | ##################################### drums.dsp ########################################
Faust instrument specifically designed for `faust2smartkeyb` where 3 drums can
be controlled using pads. The X/Y postion of fingers is detected on each key
and use to control the strike postion on the virtual membrane.
## `Sma... |
declare interface "SmartKeyboard{
'Number of Keyboards':'2',
'Keyboard 0 - Number of Keys':'2',
'Keyboard 1 - Number of Keys':'1',
'Keyboard 0 - Static Mode':'1',
'Keyboard 1 - Static Mode':'1',
'Keyboard 0 - Send X':'1',
'Keyboard 0 - Send Y':'1',
'Keyboard 1 - Send X':'1',
'Keyboard 1 - Send Y':'1',
'Keybo... |
22094aa3c7a218806c006c397d61f81c73aa42472a562d569333b4ff75f625a6 | tonal-glyph/faustus | simpleSynth_Analog.dsp | import("stdfaust.lib");
///////////////////////////////////////////////////////////////////////////////////////////////////
//
// A very simple subtractive synthesizer with 1 VCO 1 VCF.
// The VCO Waveform is variable between Saw and Square
// The frequency is modulated by an LFO
// The envelope control volum and filt... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/bela/simpleSynth_Analog.dsp | faust | /////////////////////////////////////////////////////////////////////////////////////////////////
A very simple subtractive synthesizer with 1 VCO 1 VCF.
The VCO Waveform is variable between Saw and Square
The frequency is modulated by an LFO
The envelope control volum and filter frequency
///////////////////////... | import("stdfaust.lib");
midigate = button ("gate");
midifreq = nentry("freq[unit:Hz]", 440, 20, 20000, 1);
pitchwheel = hslider("bend [midi:pitchwheel]",1,0.001,10,0.01);
wfFade = hslider("waveform[BELA: ANALOG_0]",0.5,0,1,0.001):si.smoo;
res = hslider("resonnance[BELA: ANALOG_2]",0.5,0,1,0.001):si.smoo;
fr = hslid... |
f7598f02e7756f7dc5f4dd3fd0785497313c12fa24abf370adbb9953b56c54f1 | tonal-glyph/faustus | simpleSynth.dsp | import("stdfaust.lib");
///////////////////////////////////////////////////////////////////////////////////////////////////
//
// A very simple subtractive synthesizer with 1 VCO 1 VCF.
// The VCO Waveform is variable between Saw and Square
// The frequency is modulated by an LFO
// The envelope control volum and filt... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/bela/simpleSynth.dsp | faust | /////////////////////////////////////////////////////////////////////////////////////////////////
A very simple subtractive synthesizer with 1 VCO 1 VCF.
The VCO Waveform is variable between Saw and Square
The frequency is modulated by an LFO
The envelope control volum and filter frequency
///////////////////////... | import("stdfaust.lib");
midigate = button ("gate");
midifreq = nentry("freq[unit:Hz]", 440, 20, 20000, 1);
pitchwheel = hslider("bend [midi:pitchwheel]",1,0.001,10,0.01);
wfFade= hslider("waveform[midi:ctrl 70]",0.5,0,1,0.001):si.smoo;
res = hslider("resonnance[midi:ctrl 71]",0.5,0,1,0.001):si.smoo;
fr = hslider("f... |
8beaac2b5339f7ffafec5199efc5b01936eb51a8a5e7412f7d9c045d5cdd1e57 | tonal-glyph/faustus | brass.dsp | //############################### brass.dsp ###################################
// Faust instrument specifically designed for `faust2smartkeyb` where a
// trumpet physical model is controlled using some of the built-in sensors of
// the device and the touchscreen. Some of these elements could be replaced by
// external... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/smartKeyboard/brass.dsp | faust | ############################### brass.dsp ###################################
Faust instrument specifically designed for `faust2smartkeyb` where a
trumpet physical model is controlled using some of the built-in sensors of
the device and the touchscreen. Some of these elements could be replaced by
external controlle... |
declare interface "SmartKeyboard{
'Number of Keyboards':'2',
'Max Keyboard Polyphony':'0',
'Keyboard 0 - Number of Keys':'1',
'Keyboard 1 - Number of Keys':'3',
'Keyboard 0 - Send Freq':'0',
'Keyboard 1 - Send Freq':'0',
'Keyboard 0 - Piano Keyboard':'0',
'Keyboard 1 - Piano Keyboard':'0',
'Keyboard 0 - Se... |
94962bf7278a24ff20cbed20b808771c89b2e89f1a79bd170561bd267dbd20aa | tonal-glyph/faustus | dubDub.dsp | //################################### dubDub.dsp #####################################
// A simple smartphone abstract instrument than can be controlled using the touch
// screen and the accelerometers of the device.
//
// ## `SmartKeyboard` Use Strategy
//
// The idea here is to use the `SmartKeyboard` interface as an... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/smartKeyboard/dubDub.dsp | faust | ################################### dubDub.dsp #####################################
A simple smartphone abstract instrument than can be controlled using the touch
screen and the accelerometers of the device.
## `SmartKeyboard` Use Strategy
The idea here is to use the `SmartKeyboard` interface as an X/Y control p... |
declare name "dubDub";
import("stdfaust.lib");
declare interface "SmartKeyboard{
'Number of Keyboards':'1',
'Keyboard 0 - Number of Keys':'1',
'Keyboard 0 - Piano Keyboard':'0',
'Keyboard 0 - Static Mode':'1',
'Keyboard 0 - Send X':'1',
'Keyboard 0 - Send Y':'1'
}";
x = hslider("x",0,0,1,0.01);
y = hslider... |
72e9f0846eb334a252d88f520eb85bfb76c985de9af15384f742e396aace28c0 | tonal-glyph/faustus | elecGuitar.dsp | //################################### elecGuitar.dsp #####################################
// Faust instruments specifically designed for `faust2smartkeyb` where an electric
// guitar physical model is controlled using an isomorphic keyboard. Rock on!
//
// ## `SmartKeyboard` Use Strategy
//
// we want to create an iso... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/smartKeyboard/elecGuitar.dsp | faust | ################################### elecGuitar.dsp #####################################
Faust instruments specifically designed for `faust2smartkeyb` where an electric
guitar physical model is controlled using an isomorphic keyboard. Rock on!
## `SmartKeyboard` Use Strategy
we want to create an isomorphic keyboa... |
declare interface "SmartKeyboard{
'Number of Keyboards':'6',
'Max Keyboard Polyphony':'1',
'Keyboard 0 - Number of Keys':'13',
'Keyboard 1 - Number of Keys':'13',
'Keyboard 2 - Number of Keys':'13',
'Keyboard 3 - Number of Keys':'13',
'Keyboard 4 - Number of Keys':'13',
'Keyboard 5 - Number of Keys':'13',
'Ke... |
66300b88780f6e77eab7bded83c74a533f20ea44f605c6dad08eeb5d1eec6978 | tonal-glyph/faustus | violin2.dsp | //############################### violin2.dsp ##################################
// Faust instrument specifically designed for `faust2smartkeyb` where a
// complete violin physical model can be played using the touch sceen
// interface. Bowing is carried out by constantly moving a finger on the
// y axis of a key.
//
/... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/smartKeyboard/violin2.dsp | faust | ############################### violin2.dsp ##################################
Faust instrument specifically designed for `faust2smartkeyb` where a
complete violin physical model can be played using the touch sceen
interface. Bowing is carried out by constantly moving a finger on the
y axis of a key.
## `SmartKey... |
declare interface "SmartKeyboard{
'Number of Keyboards':'4',
'Max Keyboard Polyphony':'0',
'Rounding Mode':'2',
'Send Fingers Count':'1',
'Keyboard 0 - Number of Keys':'12',
'Keyboard 1 - Number of Keys':'12',
'Keyboard 2 - Number of Keys':'12',
'Keyboard 3 - Number of Keys':'12',
'Keyboard 0 - Lowest Key':'5... |
b6923d5bfddc8dc928540f9ff5c5ac84c22075894ee853a8ef387f428ddfdc1e | tonal-glyph/faustus | bells.dsp | //################################ bells.dsp ###################################
// Faust instrument specifically designed for `faust2smartkeyb` where the
// physical models of 4 different bells can be played using screen pads. The
// models are taken from `physmodels.lib`.
//
// ## `SmartKeyboard` Use Strategy
//
// T... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/smartKeyboard/bells.dsp | faust | ################################ bells.dsp ###################################
Faust instrument specifically designed for `faust2smartkeyb` where the
physical models of 4 different bells can be played using screen pads. The
models are taken from `physmodels.lib`.
## `SmartKeyboard` Use Strategy
The `SmartKeyboar... |
declare interface "SmartKeyboard{
'Number of Keyboards':'2',
'Max Keyboard Polyphony':'0',
'Keyboard 0 - Number of Keys':'2',
'Keyboard 1 - Number of Keys':'2',
'Keyboard 0 - Send Freq':'0',
'Keyboard 1 - Send Freq':'0',
'Keyboard 0 - Piano Keyboard':'0',
'Keyboard 1 - Piano Keyboard':'0',
'Keyboard 0 - Se... |
744315e4bb41911813206516f4408e4d4bc69b9843301740e1b2df36f76b6429 | tonal-glyph/faustus | toy.dsp | //##################################### toy.dsp #######################################
// Faust sound toy specifically designed for `faust2smartkeyb` where a funny
// synth can be controlled using several fingers on the screen and the built-in
// accelerometer.
//
// ## `SmartKeyboard` Use Strategy
//
// We just want ... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/smartKeyboard/toy.dsp | faust | ##################################### toy.dsp #######################################
Faust sound toy specifically designed for `faust2smartkeyb` where a funny
synth can be controlled using several fingers on the screen and the built-in
accelerometer.
## `SmartKeyboard` Use Strategy
We just want a blank screen w... |
declare interface "SmartKeyboard{
'Number of Keyboards':'1',
'Max Keyboard Polyphony':'0',
'Keyboard 0 - Number of Keys':'1',
'Keyboard 0 - Send Freq':'0',
'Keyboard 0 - Static Mode':'1',
'Keyboard 0 - Piano Keyboard':'0',
'Keyboard 0 - Send Numbered X':'1',
'Keyboard 0 - Send Numbered Y':'1'
}";
import("stdf... |
94e053f65be40718d58333e616022bab07e7d87f1a8ae065510f5b9977885c2f | tonal-glyph/faustus | bowed.dsp | //##################################### bowed.dsp ########################################
// Faust instrument specifically designed for `faust2smartkeyb` implementing a
// non-polyphonic synthesizer (e.g., physical model; etc.) using a combination of
// different types of UI elements.
//
// ## `SmartKeyboard` Use Stra... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/smartKeyboard/bowed.dsp | faust | ##################################### bowed.dsp ########################################
Faust instrument specifically designed for `faust2smartkeyb` implementing a
non-polyphonic synthesizer (e.g., physical model; etc.) using a combination of
different types of UI elements.
## `SmartKeyboard` Use Strategy
5 key... |
declare interface "SmartKeyboard{
'Number of Keyboards':'5',
'Max Keyboard Polyphony':'0',
'Rounding Mode':'1',
'Keyboard 0 - Number of Keys':'19',
'Keyboard 1 - Number of Keys':'19',
'Keyboard 2 - Number of Keys':'19',
'Keyboard 3 - Number of Keys':'19',
'Keyboard 4 - Number of Keys':'1',
'Keyboard 4 - Send ... |
e8feecc7b08c5f82c7bad35e2073bceed00c7d709941984f82d842e212ff5367 | tonal-glyph/faustus | echo.dsp | // imported by echo.dsp and echomt.dsp
import("stdfaust.lib");
import("layout2.dsp");
echo_group(x) = x; // Let layout2.dsp lay us out
knobs_group(x) = ekg(x);
switches_group(x) = esg(x);
dmax = 32768; // one and done
dmaxs = float(dmax)/44100.0;
Nnines = 1.8; // Increase until you get the desired maximum a... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/SAM/effects/echo.dsp | faust | imported by echo.dsp and echomt.dsp
Let layout2.dsp lay us out
one and done
Increase until you get the desired maximum amount of smoothing when fbs==1
pole radius of feedback smoother
"ground input" switches input to zeros
Warp and Scrubber stuff:
enableEcho went 0 to 1
enableEcho went 1 to 0
Ramps up only d... |
import("stdfaust.lib");
import("layout2.dsp");
knobs_group(x) = ekg(x);
switches_group(x) = esg(x);
dmaxs = float(dmax)/44100.0;
fastpow2 = ffunction(float fastpow2(float), "fast_pow2.h", "");
inputSelect(gi) = _,0 : select2(gi);
echo_mono(dmax,curdel,tapdel,fb,fbspr,gi) = inputSelect(gi) : (+:si.smooth(fbsp... |
7109d74309ad1de531e4a0814698217ff8f17b02cbd340801ab8f8d525075da9 | tonal-glyph/faustus | echo.dsp | // imported by echo.dsp and echomt.dsp
import("stdfaust.lib");
import("layout2.dsp");
echo_group(x) = x; // Let layout2.dsp lay us out
knobs_group(x) = ekg(x);
switches_group(x) = esg(x);
dmax = 32768; // one and done
dmaxs = float(dmax)/44100.0;
Nnines = 1.8; // Increase until you get the desired maximum a... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/SAM/echo/echo.dsp | faust | imported by echo.dsp and echomt.dsp
Let layout2.dsp lay us out
one and done
Increase until you get the desired maximum amount of smoothing when fbs==1
pole radius of feedback smoother
"ground input" switches input to zeros
Warp and Scrubber stuff:
enableEcho went 0 to 1
enableEcho went 1 to 0
Ramps up only d... |
import("stdfaust.lib");
import("layout2.dsp");
knobs_group(x) = ekg(x);
switches_group(x) = esg(x);
dmaxs = float(dmax)/44100.0;
fastpow2 = ffunction(float fastpow2(float), "fast_pow2.h", "");
inputSelect(gi) = _,0 : select2(gi);
echo_mono(dmax,curdel,tapdel,fb,fbspr,gi) = inputSelect(gi) : (+:si.smooth(fbsp... |
62ecb572fc43815c46d0643b2431ccfabbbb97df2e845afbdd8e9c2062bc0875 | tonal-glyph/faustus | freeverb.dsp | import("stdfaust.lib");
import("layout2.dsp");
declare name "freeverb";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c) GRAME 2006 and MoForte Inc. 2017";
declare reference "https://ccrma.stanford.edu/~jos/pasp/Freeverb.html";
//====================... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/SAM/freeverb/freeverb.dsp | faust | ======================================================
Freeverb
Faster version using fixed delays (20% gain)
======================================================
Constant Parameters
--------------------
value of the gain of fxctrl
feedback of the delays used in allpass filters
Filter... | import("stdfaust.lib");
import("layout2.dsp");
declare name "freeverb";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c) GRAME 2006 and MoForte Inc. 2017";
declare reference "https://ccrma.stanford.edu/~jos/pasp/Freeverb.html";
scalewet = 3.0;
s... |
e1abc620d32556e56f6cb0e1b19819460fec785627302b5ceb8973b5149ed3ca | tonal-glyph/faustus | turenas.dsp | //################################### turenas.dsp ########################################
// A simple smart phone percussion based on an additive synthesizer.
//
// ## `SmartKeyboard` Use Strategy
//
// Since the sounds generated by this synth are very short, the strategy here is to take
// advantage of the polyphony ... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/smartKeyboard/turenas.dsp | faust | ################################### turenas.dsp ########################################
A simple smart phone percussion based on an additive synthesizer.
## `SmartKeyboard` Use Strategy
Since the sounds generated by this synth are very short, the strategy here is to take
advantage of the polyphony capabilities o... |
declare name "turenas";
import("stdfaust.lib");
declare interface "SmartKeyboard{
'Number of Keyboards':'10',
'Keyboard 0 - Number of Keys':'18',
'Keyboard 1 - Number of Keys':'18',
'Keyboard 2 - Number of Keys':'18',
'Keyboard 3 - Number of Keys':'18',
'Keyboard 4 - Number of Keys':'18',
'Keyboard 5 - Numbe... |
85774624081902f435c779bc87052b0d08932fb4f4c19f76b26ed52aa3701264 | tonal-glyph/faustus | acGuitar.dsp | //############################### acGuitar.dsp #################################
// Faust instrument specifically designed for `faust2smartkeyb` where 6 virtual
// nylon strings can be strummed and plucked using a dedicated keyboard. The
// extra "strumming keyboard" could be easily replaced by an external strumming
//... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/smartKeyboard/acGuitar.dsp | faust | ############################### acGuitar.dsp #################################
Faust instrument specifically designed for `faust2smartkeyb` where 6 virtual
nylon strings can be strummed and plucked using a dedicated keyboard. The
extra "strumming keyboard" could be easily replaced by an external strumming
interface... |
declare interface "SmartKeyboard{
'Number of Keyboards':'7',
'Max Keyboard Polyphony':'0',
'Rounding Mode':'2',
'Keyboard 0 - Number of Keys':'14',
'Keyboard 1 - Number of Keys':'14',
'Keyboard 2 - Number of Keys':'14',
'Keyboard 3 - Number of Keys':'14',
'Keyboard 4 - Number of Keys':'14',
'Keyboard 5 - Num... |
a5a58a8f0e23129843cc173179e6b42b0501a387d528f5fd9870f9137f1e66df | tonal-glyph/faustus | crazyGuiro.dsp | //################################### crazyGuiro.dsp #####################################
// A simple smart phone "Guiro" where the touch screen is used to drive the instrument and
// select its pitch and where the x and y axis of the accelerometer control the
// resonance properties of the instrument.
//
// ## `Smart... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/smartKeyboard/crazyGuiro.dsp | faust | ################################### crazyGuiro.dsp #####################################
A simple smart phone "Guiro" where the touch screen is used to drive the instrument and
select its pitch and where the x and y axis of the accelerometer control the
resonance properties of the instrument.
## `SmartKeyboard` Us... |
import("stdfaust.lib");
declare interface "SmartKeyboard{
'Number of Keyboards':'8',
'Keyboard 0 - Number of Keys':'16',
'Keyboard 1 - Number of Keys':'16',
'Keyboard 2 - Number of Keys':'16',
'Keyboard 3 - Number of Keys':'16',
'Keyboard 4 - Number of Keys':'16',
'Keyboard 5 - Number of Keys':'16',
'Keyboa... |
5a281496160c0aa387e3cf14c29927b01ba7401139ca377ca72fdf7554dab0d8 | tonal-glyph/faustus | violin.dsp | //############################### violin.dsp ###################################
// Faust instrument specifically designed for `faust2smartkeyb` where a
// complete violin physical model can be played using the touch sceen
// interface. While the 4 virtual strings can be bowed using a control
// surface on the screen, ... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/smartKeyboard/violin.dsp | faust | ############################### violin.dsp ###################################
Faust instrument specifically designed for `faust2smartkeyb` where a
complete violin physical model can be played using the touch sceen
interface. While the 4 virtual strings can be bowed using a control
surface on the screen, it could b... |
declare interface "SmartKeyboard{
'Number of Keyboards':'5',
'Max Keyboard Polyphony':'0',
'Rounding Mode':'2',
'Send Fingers Count':'1',
'Keyboard 0 - Number of Keys':'19',
'Keyboard 1 - Number of Keys':'19',
'Keyboard 2 - Number of Keys':'19',
'Keyboard 3 - Number of Keys':'19',
'Keyboard 4 - Number of Keys... |
3d281d0b7e86e02e62f83b7e8ffe42a98e1ae64f999b48d31e9002f5ac534c2c | tonal-glyph/faustus | clarinet.dsp | //############################### clarinet.dsp #################################
// Faust instrument specifically designed for `faust2smartkeyb` where a
// clarinet physical model is controlled by an interface implementing
// fingerings similar to that of a the real instrument. The pressure of the
// breath in the mout... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/smartKeyboard/clarinet.dsp | faust | ############################### clarinet.dsp #################################
Faust instrument specifically designed for `faust2smartkeyb` where a
clarinet physical model is controlled by an interface implementing
fingerings similar to that of a the real instrument. The pressure of the
breath in the mouthpiece of ... |
declare interface "SmartKeyboard{
'Number of Keyboards':'2',
'Max Keyboard Polyphony':'0',
'Keyboard 0 - Number of Keys':'4',
'Keyboard 1 - Number of Keys':'5',
'Keyboard 0 - Send Freq':'0',
'Keyboard 1 - Send Freq':'0',
'Keyboard 0 - Piano Keyboard':'0',
'Keyboard 1 - Piano Keyboard':'0',
'Keyboard 0 - Se... |
3af402e1147b0841838ef9ab87fddd389565a44984866202a55bc6e42ba12fa5 | tonal-glyph/faustus | WaveSynth_FX.dsp | import("stdfaust.lib");
///////////////////////////////////////////////////////////////////////////////////////////////////
//
// Simple demo of wavetable synthesis. A LFO modulate the interpolation between 4 tables.
// It's possible to add more tables step.
//
/////////////////////////////////////////////////////////... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/bela/WaveSynth_FX.dsp | faust | /////////////////////////////////////////////////////////////////////////////////////////////////
Simple demo of wavetable synthesis. A LFO modulate the interpolation between 4 tables.
It's possible to add more tables step.
////////////////////////////////////////////////////////////////////////////////////////////... | import("stdfaust.lib");
midigate = button ("gate");
midifreq = nentry("freq[unit:Hz]", 440, 20, 20000, 1);
midigain = nentry("gain", 0.5, 0, 1, 0.01);
waveTravel = hslider("waveTravel [midi:ctrl ]",0,0,1,0.01);
pitchwheel = hslider("bend [midi:pitchwheel]",1,0.001,10,0.01);
gFreq = midifreq * ... |
63278909baca212df4c57ccc715a09d66fdf7aa54a35726391f06e39f73e759c | tonal-glyph/faustus | WaveSynth_FX_Analog.dsp | import("stdfaust.lib");
///////////////////////////////////////////////////////////////////////////////////////////////////
//
// Simple demo of wavetable synthesis. A LFO modulate the interpolation between 4 tables.
// It's possible to add more tables step.
//
/////////////////////////////////////////////////////////... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/bela/WaveSynth_FX_Analog.dsp | faust | /////////////////////////////////////////////////////////////////////////////////////////////////
Simple demo of wavetable synthesis. A LFO modulate the interpolation between 4 tables.
It's possible to add more tables step.
////////////////////////////////////////////////////////////////////////////////////////////... | import("stdfaust.lib");
midigate = button ("gate");
midifreq = nentry("freq[unit:Hz]", 440, 20, 20000, 1);
midigain = nentry("gain", 0.5, 0, 1, 0.01);
waveTravel = hslider("waveTravel[BELA: ANALOG_0]",0,0,1,0.01);
pitchwheel = hslider("bend [midi:pitchwheel]",1,0.001,10,0.01);
gFreq = midi... |
8dbf18f743447caf3b11a528c80ce7cc6608e05124a25a6584f8bd33f8c8ba19 | tonal-glyph/faustus | simpleSynth_FX_Analog.dsp | import("stdfaust.lib");
///////////////////////////////////////////////////////////////////////////////////////////////////
//
// A very simple subtractive synthesizer with 1 VCO 1 VCF.
// The VCO Waveform is variable between Saw and Square
// The frequency is modulated by an LFO
// The envelope control volum and filt... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/bela/simpleSynth_FX_Analog.dsp | faust | /////////////////////////////////////////////////////////////////////////////////////////////////
A very simple subtractive synthesizer with 1 VCO 1 VCF.
The VCO Waveform is variable between Saw and Square
The frequency is modulated by an LFO
The envelope control volum and filter frequency
///////////////////////... | import("stdfaust.lib");
midigate = button("gate");
midifreq = nentry("freq[unit:Hz]", 440, 20, 20000, 1);
pitchwheel = hslider("bend [midi:pitchwheel]",1,0.001,10,0.01);
wfFade = hslider("waveform[BELA: ANALOG_0]",0.5,0,1,0.001):si.smoo;
res = hslider("resonnance[BELA: ANALOG_2]",0.5,0,1,0.001):si.smoo;
fr = hslide... |
314b3966050243fea26d3892d8977f9113e0ac0723f7484b8dfe6059bd3e733e | tonal-glyph/faustus | FXChaine2.dsp | import("stdfaust.lib");
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// A complete Stereo FX chain with:
// CHORUS
// PHASER
// DELAY
// REVERB
//
// Designed to use the Analog Input for parameters controls.
//
// CONTR... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/bela/FXChaine2.dsp | faust | ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
A complete Stereo FX chain with:
CHORUS
PHASER
DELAY
REVERB
Designed to use the Analog Input for parameters controls.
CONTROLES //////////////////////////////////////////... | import("stdfaust.lib");
process = chorus_stereo(dmax,curdel,rate,sigma,do2,voices) : phaserSt : xdelay : reverb;
pi = 4.0*atan(1.0);
periodic = 1;
dmax = 8192;
curdel = dmax * vslider("Delay[BELA: ANALOG_1]", 0.5, 0, 1, 1) : si.smooth(0.999);
rateMin = 0.01;
rateT60 = 0.15661;
rate = vslider("Rate", 0.5, rateMin... |
8f56622e01cadf64a22191f08d38589925c87a48cdef024511e5233623f789ff | tonal-glyph/faustus | simpleSynth_FX.dsp | import("stdfaust.lib");
///////////////////////////////////////////////////////////////////////////////////////////////////
//
// A very simple subtractive synthesizer with 1 VCO 1 VCF.
// The VCO Waveform is variable between Saw and Square
// The frequency is modulated by an LFO
// The envelope control volum and filt... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/bela/simpleSynth_FX.dsp | faust | /////////////////////////////////////////////////////////////////////////////////////////////////
A very simple subtractive synthesizer with 1 VCO 1 VCF.
The VCO Waveform is variable between Saw and Square
The frequency is modulated by an LFO
The envelope control volum and filter frequency
///////////////////////... | import("stdfaust.lib");
midigate = button ("gate");
midifreq = nentry("freq[unit:Hz]", 440, 20, 20000, 1);
pitchwheel = hslider("bend [midi:pitchwheel]",1,0.001,10,0.01);
wfFade = hslider("waveform[midi:ctrl 70]",0.5,0,1,0.001):si.smoo;
res = hslider("resonnance[midi:ctrl 71]",0.5,0,1,0.001):si.smoo;
fr = hslider("... |
d3d1cac5b70e9744fc1c23f3499c410f50326235f764c0555cdbfc5ee0d3475a | tonal-glyph/faustus | effectsForBrowser.dsp | // All effects used by minimoog.dsp
import("stdfaust.lib");
process = _,_ : +
: component_echo
: component_flanger
: component_chorus
: component_freeverb;
component_echo = environment {
echo_group(x) = x; // Let layout2.dsp lay us out
knobs_group(x) = ekg(x);
switches_group(x) = esg(x);
dmax = 32768; // one ... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/SAM/effects/effectsForBrowser.dsp | faust | All effects used by minimoog.dsp
Let layout2.dsp lay us out
one and done
Increase until you get the desired maximum amount of smoothing when fbs==1
fastpow2 = ffunction(float fastpow2(float), "fast_pow2.h", "");
pole radius of feedback smoother
"ground input" switches input to zeros
Warp and Scrubber stuff:
ena... |
import("stdfaust.lib");
process = _,_ : +
: component_echo
: component_flanger
: component_chorus
: component_freeverb;
component_echo = environment {
knobs_group(x) = ekg(x);
switches_group(x) = esg(x);
dmaxs = float(dmax)/44100.0;
inputSelect(gi) = _,0 : select2(gi);
echo_mono(dmax,curdel,tapdel,fb,fbspr,g... |
61f5d49f1f3216e52e0af7ea54144b2425f80ceb6abcc39712d450714ec6a573 | tonal-glyph/faustus | flangerForBrowser.dsp | // Created from flange.dsp 2015/06/21
import("stdfaust.lib");
flanger_mono(dmax,curdel,depth,fb,invert,lfoshape)
= _ <: _, (-:de.fdelay(dmax,curdel)) ~ *(fb) : _,
*(select2(invert,depth,0-depth))
: + : *(1/(1+depth)); // ideal for dc and reinforced sinusoids (in-phase summed signals)
process = ba.by... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/SAM/flanger/flangerForBrowser.dsp | faust | Created from flange.dsp 2015/06/21
ideal for dc and reinforced sinusoids (in-phase summed signals)
Kill the groups to save vertical space:
~1 ms at 44.1 kHz = min delay
This layout loosely follows the MiniMoog-V
Arturia-only features are labeled
Original versions also added where different
Need vrocker and hroc... |
import("stdfaust.lib");
flanger_mono(dmax,curdel,depth,fb,invert,lfoshape)
= _ <: _, (-:de.fdelay(dmax,curdel)) ~ *(fb) : _,
*(select2(invert,depth,0-depth))
process = ba.bypass1(fbp,flanger_mono_gui);
meter_group(x) = flsg(x);
ctl_group(x) = flkg(x);
del_group(x) = flkg(x);
lvl_group(x) = flkf(... |
f5a0be453e113e09c9d18c64d0fcc67621f314547a6a8a7723f822449a6630de | tonal-glyph/faustus | chorusForBrowser.dsp | import("stdfaust.lib");
voices = 8; // MUST BE EVEN
process = ba.bypass1to2(cbp,chorus_mono(dmax,curdel,rate,sigma,do2,voices));
dmax = 8192;
curdel = dmax * ckg(vslider("[0] Delay [midi:ctrl 4] [style:knob]", 0.5, 0, 1, 1)) : si.smooth(0.999);
rateMax = 7.0; // Hz
rateMin = 0.01;
rateT60 = 0.15661;
rate = ckg(vslide... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/SAM/chorus/chorusForBrowser.dsp | faust | MUST BE EVEN
Hz
use when depth=1 means "multivibrato" effect (no original => all are modulated)
This layout loosely follows the MiniMoog-V
Arturia-only features are labeled
Original versions also added where different
Need vrocker and hrocker toggle switches in Faust!
Need orange and blue color choices
Orang... | import("stdfaust.lib");
process = ba.bypass1to2(cbp,chorus_mono(dmax,curdel,rate,sigma,do2,voices));
dmax = 8192;
curdel = dmax * ckg(vslider("[0] Delay [midi:ctrl 4] [style:knob]", 0.5, 0, 1, 1)) : si.smooth(0.999);
rateMin = 0.01;
rateT60 = 0.15661;
rate = ckg(vslider("[1] Rate [midi:ctrl 2] [unit:Hz] [style:knob]"... |
b60256692b45b00b1ae82ebcf9cb2531bc6860cdeff819d8a7492cc5790d34ac | tonal-glyph/faustus | echoForBrowser.dsp | // imported by echo.dsp and echomt.dsp
import("stdfaust.lib");
echo_group(x) = x; // Let layout2.dsp lay us out
knobs_group(x) = ekg(x);
switches_group(x) = esg(x);
dmax = 32768; // one and done
dmaxs = float(dmax)/44100.0;
Nnines = 1.8; // Increase until you get the desired maximum amount of smoothing when... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/SAM/echo/echoForBrowser.dsp | faust | imported by echo.dsp and echomt.dsp
Let layout2.dsp lay us out
one and done
Increase until you get the desired maximum amount of smoothing when fbs==1
fastpow2 = ffunction(float fastpow2(float), "fast_pow2.h", "");
pole radius of feedback smoother
"ground input" switches input to zeros
Warp and Scrubber stuff:
... |
import("stdfaust.lib");
knobs_group(x) = ekg(x);
switches_group(x) = esg(x);
dmaxs = float(dmax)/44100.0;
inputSelect(gi) = _,0 : select2(gi);
echo_mono(dmax,curdel,tapdel,fb,fbspr,gi) = inputSelect(gi) : (+:si.smooth(fbspr)
<: de.fdelay(dmax,curdel),
de.fdelay(dmax,tapdel))
~(*(fb... |
9be2909509c6cd475f44b136bdbd6aee3e7525622a83066a13b06f72f2adccc7 | tonal-glyph/faustus | freeverbForBrowser.dsp | import("stdfaust.lib");
declare name "freeverb";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c) GRAME 2006 and MoForte Inc. 2017";
declare reference "https://ccrma.stanford.edu/~jos/pasp/Freeverb.html";
//===========================================... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/SAM/freeverb/freeverbForBrowser.dsp | faust | ======================================================
Freeverb
Faster version using fixed delays (20% gain)
======================================================
Constant Parameters
--------------------
value of the gain of fxctrl
feedback of the delays used in allpass filters
Filter... | import("stdfaust.lib");
declare name "freeverb";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c) GRAME 2006 and MoForte Inc. 2017";
declare reference "https://ccrma.stanford.edu/~jos/pasp/Freeverb.html";
scalewet = 3.0;
scaledry = 2.0;
scale... |
a2f2535b172da65c52481541f65ed68a98484765e2201f9a79b40d5614e44ab4 | tonal-glyph/faustus | virtualAnalogWithEffectsForBrowser.dsp | import("stdfaust.lib");
// These are now in a separate file ./effects.dsp
// echo = echog(component("echo.dsp")); // ./echo.dsp
// flanger = flg(component("flanger.dsp")); // ./flanger.dsp
// chorus = chg(component("chorus.dsp")); // ./chorus.dsp
// reverb = rg(component("freeverb.dsp"));
process = main <: _,_; // No... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/SAM/virtualAnalog/virtualAnalogWithEffectsForBrowser.dsp | faust | These are now in a separate file ./effects.dsp
echo = echog(component("echo.dsp")); // ./echo.dsp
flanger = flg(component("flanger.dsp")); // ./flanger.dsp
chorus = chg(component("chorus.dsp")); // ./chorus.dsp
reverb = rg(component("freeverb.dsp"));
Now separate: : echo : flanger : chorus : reverb;
masterVolume... | import("stdfaust.lib");
main = (signal + attach(extInput,amp) : filters : *(ampScaling)) ~ _;
signal = oscs + noise * noiseOff * namp;
oscs = par(i,3,(oscamp(i+1)*osc(i+1))) :> _;
detuneOctaves(1) = osc1(vslider("[2] DeTuning1 [units:Octaves] [midi:ctrl 24] [style:knob]",0.0,-1.0,1.0,0.001));
waveSelect(1) = osc1(v... |
ee0227d7765f449f76f0f897aa5a9912427e9f24dd270a35fdb3194e0c3e991e | tonal-glyph/faustus | virtualAnalog.dsp | import("stdfaust.lib");
// These are now in a separate file ./effects.dsp
// echo = echog(component("echo.dsp")); // ./echo.dsp
// flanger = flg(component("flanger.dsp")); // ./flanger.dsp
// chorus = chg(component("chorus.dsp")); // ./chorus.dsp
// reverb = rg(component("freeverb.dsp"));
process = main <: _,_; // No... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/SAM/virtualAnalog/virtualAnalog.dsp | faust | These are now in a separate file ./effects.dsp
echo = echog(component("echo.dsp")); // ./echo.dsp
flanger = flg(component("flanger.dsp")); // ./flanger.dsp
chorus = chg(component("chorus.dsp")); // ./chorus.dsp
reverb = rg(component("freeverb.dsp"));
Now separate: : echo : flanger : chorus : reverb;
masterVolume... | import("stdfaust.lib");
main = (signal + extInput : filters : *(ampScaling)) ~ _;
signal = oscs + noise * noiseOff * namp;
oscs = par(i,3,(oscamp(i+1)*osc(i+1))) :> _;
detuneOctaves(1) = osc1(vslider("[2] DeTuning1 [units:Octaves] [midi:ctrl 24] [style:knob]",0.0,-1.0,1.0,0.001));
waveSelect(1) = osc1(vslider("[3] ... |
f8015f984a1d9a69d0c3176bc75944759ec68d22b2413e3f49f9c4509f581faf | tonal-glyph/faustus | virtualAnalogForBrowser.dsp | import("stdfaust.lib");
// These are now in a separate file ./effects.dsp
// echo = echog(component("echo.dsp")); // ./echo.dsp
// flanger = flg(component("flanger.dsp")); // ./flanger.dsp
// chorus = chg(component("chorus.dsp")); // ./chorus.dsp
// reverb = rg(component("freeverb.dsp"));
process = main <: _,_; // No... | https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/SAM/virtualAnalog/virtualAnalogForBrowser.dsp | faust | These are now in a separate file ./effects.dsp
echo = echog(component("echo.dsp")); // ./echo.dsp
flanger = flg(component("flanger.dsp")); // ./flanger.dsp
chorus = chg(component("chorus.dsp")); // ./chorus.dsp
reverb = rg(component("freeverb.dsp"));
Now separate: : echo : flanger : chorus : reverb;
masterVolume... | import("stdfaust.lib");
main = (signal + attach(extInput,amp) : filters : *(ampScaling)) ~ _;
signal = oscs + noise * noiseOff * namp;
oscs = par(i,3,(oscamp(i+1)*osc(i+1))) :> _;
detuneOctaves(1) = osc1(vslider("[2] DeTuning1 [units:Octaves] [midi:ctrl 24] [style:knob]",0.0,-1.0,1.0,0.001));
waveSelect(1) = osc1(v... |
0e2660fc73dd84c609a0c78607b446208a3eb85dc01fc698404da15b09ffa2e6 | schollz/zxcvbn | fverb.dsp | //
// Référence:
// Dattorro, Jon. "Effect design, part 1: Reverberator and other filters."
// Journal of the Audio Engineering Society 45.9 (1997): 660-684.
//
declare name "fverb";
declare author "Jean Pierre Cimalando";
declare version "0.5";
declare license "BSD-2-Clause";
import("stdfaust.lib");
ptMax ... | https://raw.githubusercontent.com/schollz/zxcvbn/1026fc072d21df0de0ce4f05358e99dd7f8915aa/lib/ignore/fverb/fverb.dsp | faust |
Référence:
Dattorro, Jon. "Effect design, part 1: Reverberator and other filters."
Journal of the Audio Engineering Society 45.9 (1997): 660-684.
(cf. table 1 Reverberation parameters)
1.0
0:full stereo, 1:full mono
hslider("[12] Stereo cross mix", 0., 0., 1., 0.01) : *(0.5);
for complete control of ... |
declare name "fverb";
declare author "Jean Pierre Cimalando";
declare version "0.5";
declare license "BSD-2-Clause";
import("stdfaust.lib");
ptMax = 300e-3;
pt = hslider("[01] Predelay [symbol:predelay] [unit:ms]", 0., 0., ptMax*1e3, 1.) : *(1e-3) : si.smoo;
ing = hslider("[02] Input amount [symbol:input] [unit:%]",... |
fd6fbee782c62f471a4650e1df0c270ffaeef6ea9949fd9ba6a62a490cd08df5 | Jacajack/stm32-faust-synth | panel.dsp | import("stdfaust.lib");
import("j.lib");
declare polyphony "4";
// EG
eg( gate ) = en.adsre( A, D, S, R, gate )
with
{
A = hslider( "A [analog: c5]", 0.5, 0, 1, 0.001 ) : lin2exp( 0.01, 4 ) : si.smoo;
D = hslider( "D [analog: c6]", 0.5, 0, 1, 0.001 ) : lin2exp( 0.01, 4 ) : si.smoo;
S = hslider( "S [analog: c3]", 0... | https://raw.githubusercontent.com/Jacajack/stm32-faust-synth/5987bc2508e94318affbbccaaeaea0fd7f7ad694/faust/panel.dsp | faust | EG
filter EG
Oscillators
, os.triangle( 50 ), os.square( 120 ), os.square( 222 ), os.square( 44 )
osc( note ) = ( os.triangle( f ) + os.sawtooth(f1) + os.sawtooth(f2) ) / 3
Filter Moog
Filter Korg
process = ( voice( note_0, gate_0 ) + voice( note_1, gate_1 ) + voice( note_2, gate_2 ) ) / 3; | import("stdfaust.lib");
import("j.lib");
declare polyphony "4";
eg( gate ) = en.adsre( A, D, S, R, gate )
with
{
A = hslider( "A [analog: c5]", 0.5, 0, 1, 0.001 ) : lin2exp( 0.01, 4 ) : si.smoo;
D = hslider( "D [analog: c6]", 0.5, 0, 1, 0.001 ) : lin2exp( 0.01, 4 ) : si.smoo;
S = hslider( "S [analog: c3]", 0.5, 0,... |
f3c26c9f2384542b4bf118987f6e272827af8526b6412bfd6cab321b368b1dde | spencerpeterscodes/Synthesizer | Synthesizer.dsp | import("stdfaust.lib");
declare options "[midi:on]";
//MIDI inputs
freq = hslider("freq", 100, 20, 4000, 1);
gain = nentry("gain", 0.1, 0, 1, 0.01) : si.smoo;
gate = checkbox("gate");
//Example LFO
// lfo_freq = hslider("lfo", 1, 0.1, 20, 0.1);
// lfo1 = os.lf_saw(lfo_freq);
// lfo_on = checkbox("lfo_to_filter");
//n... | https://raw.githubusercontent.com/spencerpeterscodes/Synthesizer/30ec13dac8780839c2b46f3afa365142073aae96/Synthesizer.dsp | faust | MIDI inputs
Example LFO
lfo_freq = hslider("lfo", 1, 0.1, 20, 0.1);
lfo1 = os.lf_saw(lfo_freq);
lfo_on = checkbox("lfo_to_filter");
normFreq = hslider("Filt.freq.", 0.1, 0., .7, .01) + lfo1 * 0.2 * lfo_on;
analog_filt3 = ve.oberheimLPF(normFreq, Q);
Q = hslider("Q", 1, 0.1, 10, 0.1);
Waveform Gain
Waveform ADSR
Mixe... | import("stdfaust.lib");
declare options "[midi:on]";
freq = hslider("freq", 100, 20, 4000, 1);
gain = nentry("gain", 0.1, 0, 1, 0.01) : si.smoo;
gate = checkbox("gate");
gsaw = hslider("saw", 0.1, 0.0, 0.95, 0.01);
gsqu = hslider("square", 0.1, 0.0, 0.95, 0.01);
gtri = hslider("triangle", 0.1, 0.0, 0.95, 0.01);
ads... |
c75e54cd5d82da6d61958fdd848a10490b295a9a99df8739f66ea2ea05ad94eb | shakfu/soundlab | shax_delay3.dsp | import("stdfaust.lib");
/*
echo1s = vgroup("echo 1000", +~(de.delay(65536, int(hslider("millisecond", 0, 0, 1000, 0.10)*ba.millisec)-1) * (hslider("feedback", 0, 0, 100, 0.1)/100.0)));
echo2s = vgroup("echo 2000", +~(de.delay(131072, int(hslider("millisecond", 0, 0, 2000, 0.25)*ba.millisec)-1) * (hslider("feed... | https://raw.githubusercontent.com/shakfu/soundlab/2941e0ee74d7ade8992e5f2e3b90c7765ec1946b/faust/delays/shax_delay3.dsp | faust |
echo1s = vgroup("echo 1000", +~(de.delay(65536, int(hslider("millisecond", 0, 0, 1000, 0.10)*ba.millisec)-1) * (hslider("feedback", 0, 0, 100, 0.1)/100.0)));
echo2s = vgroup("echo 2000", +~(de.delay(131072, int(hslider("millisecond", 0, 0, 2000, 0.25)*ba.millisec)-1) * (hslider("feedback", 0, 0, 100, 0.1)/100... | import("stdfaust.lib");
echo = +~(de.sdelay(65536, it, ms) * fb)
with {
it = 1024;
ms = int((hslider("time (ms)", 0, 0, 1000, 0.10): si.smoo) * ba.millisec)-1;
fb = (hslider("feedback", 0, 0, 100, 0.1): si.smoo)/100.0;
};
process = vgroup("stereo echo", (echo, echo));
|
53780b9b9b5318fff0d7cf852d8988c1819a3079a2ff41d53f721497d5ec6af0 | roelkers/faustpatches | EnsembleOwl.dsp | import("stdfaust.lib");
import("owl.lib");
import("all.lib");
declare owl "[voct:input]";
tune = hslider("Tune[OWL:A]", 0, -2, 2, 0.01);
/////////////////////////////////////////////////////////
// UI ELEMENTS
/////////////////////////////////////////////////////////
//frequency = hslider("Frequency", 0, 0, 10000,0... | https://raw.githubusercontent.com/roelkers/faustpatches/c95a53ea5d331f855a19cdc84ab8a435601dd614/EnsembleOwl.dsp | faust | ///////////////////////////////////////////////////////
UI ELEMENTS
///////////////////////////////////////////////////////
frequency = hslider("Frequency", 0, 0, 10000,0.01);
GENERAL, Keyboard
============================================ DSP =======================================
===================================... | import("stdfaust.lib");
import("owl.lib");
import("all.lib");
declare owl "[voct:input]";
tune = hslider("Tune[OWL:A]", 0, -2, 2, 0.01);
crossfm = hslider("Crossfm[OWL:D]",0,0,1000,0.01);
spread = hslider("Spread[OWL:B]",0,0,1,0.001);
bal = hslider("balance[OWL:C]", 1.01,1.01,16,0.001);
numOscs = 16;
fosc(i,f) ... |
28ccebf16bfc68a92c18d53d5f24a5295cc213b28c9fa506656b95c595ce2d01 | LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis | PeakholderIIR.dsp | // import faust standard library
import("stdfaust.lib");
// Peak Max with IIR filter and max comparison
peakmax = loop
with{
loop(x) = \(y).((y , abs(x)) : max) ~ _ ;
};
process = _ : peakmax; | https://raw.githubusercontent.com/LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis/b73b60d9e0b45e09bbf72b1477c21202b895f1bb/ITA/codes/PeakholderIIR.dsp | faust | import faust standard library
Peak Max with IIR filter and max comparison | import("stdfaust.lib");
peakmax = loop
with{
loop(x) = \(y).((y , abs(x)) : max) ~ _ ;
};
process = _ : peakmax; |
3db2dbb44e8bf7cf36d5a8c4b4a3ec153c495dc2c412612c3c40dfb0c17145ff | LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis | PeakNormalizationIIR.dsp | // import faust standard library
import("stdfaust.lib");
// Peak Max with IIR filter and max comparison
peakmax = loop
with{
loop(x) = \(y).((y , abs(x)) : max) ~ _ ;
};
peaknormalization(x) = 1/(peakmax(x)) * x;
process = _ : peaknormalization; | https://raw.githubusercontent.com/LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis/b73b60d9e0b45e09bbf72b1477c21202b895f1bb/ITA/codes/PeakNormalizationIIR.dsp | faust | import faust standard library
Peak Max with IIR filter and max comparison | import("stdfaust.lib");
peakmax = loop
with{
loop(x) = \(y).((y , abs(x)) : max) ~ _ ;
};
peaknormalization(x) = 1/(peakmax(x)) * x;
process = _ : peaknormalization; |
6c1c4ebf56fa49b31e52edfab3e60a2fa753eae3ff425fbeca66c7ec4824fdaa | LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis | LARpeakmax.dsp | // import faust standard library
import("stdfaust.lib");
// LAR with Peak Max - IIR filter and max comparison
peakmax = loop
with{
loop(x) = \(y).((y , abs(x)) : max)~_;
};
LARpeakmax = _ <: (_ * (1 - (_ : peakmax)));
process = _ : LARpeakmax; | https://raw.githubusercontent.com/LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis/b73b60d9e0b45e09bbf72b1477c21202b895f1bb/ITA/codes/LARpeakmax.dsp | faust | import faust standard library
LAR with Peak Max - IIR filter and max comparison | import("stdfaust.lib");
peakmax = loop
with{
loop(x) = \(y).((y , abs(x)) : max)~_;
};
LARpeakmax = _ <: (_ * (1 - (_ : peakmax)));
process = _ : LARpeakmax; |
a6d17d803ed3c4913efd7df448d2a36f3024b90bf787f40bdde01a621252f453 | LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis | MovingAverage.dsp | // import faust standard library
import("stdfaust.lib");
movingAverage(seconds, x) = x - (x @ N) : fi.pole(1.0) / N
with {
N = seconds * ma.SR;
};
movingAverageRMS(seconds, x) = sqrt(max(0, movingAverage(seconds, x * x)));
process = movingAverageRMS(1); | https://raw.githubusercontent.com/LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis/b73b60d9e0b45e09bbf72b1477c21202b895f1bb/ITA/codes/MovingAverage.dsp | faust | import faust standard library | import("stdfaust.lib");
movingAverage(seconds, x) = x - (x @ N) : fi.pole(1.0) / N
with {
N = seconds * ma.SR;
};
movingAverageRMS(seconds, x) = sqrt(max(0, movingAverage(seconds, x * x)));
process = movingAverageRMS(1); |
efd8ecca9c26e4aae2606eaf73b3a404e252606be11edfd52bdc57cd1b74e30f | LucaSpanedda/Guida_Primi_Codici_in_FAUST | 0.72_Clicks_Generator_Envelope.dsp | // ---------------------------------------------------------------------------------
// import Standard Faust library
// https://github.com/grame-cncm/faustlibraries/
import("stdfaust.lib");
clicks(seed,f,samples,amp) = phase
with{
varnoise = (((seed) : (+ @(ma.SR/f)~ *(1103515245)))/2147483647.0);
routeimpulse(a,b) ... | https://raw.githubusercontent.com/LucaSpanedda/Guida_Primi_Codici_in_FAUST/87aee4b33e282204fddc3ae02a23ca8006ad558f/0.72_Clicks_Generator_Envelope.dsp | faust | ---------------------------------------------------------------------------------
import Standard Faust library
https://github.com/grame-cncm/faustlibraries/
clicks(seed,f,samples,amp)
--------------------------------------------------------------------------------- |
import("stdfaust.lib");
clicks(seed,f,samples,amp) = phase
with{
varnoise = (((seed) : (+ @(ma.SR/f)~ *(1103515245)))/2147483647.0);
routeimpulse(a,b) = a : mem, b :> - : _ > 0;
noisemaj = varnoise>0;
noisemin = varnoise<0;
majimpulse = noisemaj <: routeimpulse;
minimpulse = noisemin <: routeimpulse *-1;
outimpulse =... |
4d5943ff5e13e3207049f9fae7cb455ae785f3de1ee7df29dc706aa484431fd2 | LucaSpanedda/RITI-Room-Is-The-Instrument | SMSoscillators.dsp | // Faust standard libraries
import("stdfaust.lib");
// Spectral Modeling Synthesis
// https://en.wikipedia.org/wiki/Spectral_modeling_synthesis
// INSTRUMENT SPECTRE --------------------------------------
// Import lists: Frequencies, Amps, Bandwidth
spectrefreq = component("frequencies.dsp").frequencieslist;
spectr... | https://raw.githubusercontent.com/LucaSpanedda/RITI-Room-Is-The-Instrument/dc7497f7621a32b070c9f983f75a120d486a5c46/Audio-Analysis/FAUST-SpectralModel/SMSoscillators.dsp | faust | Faust standard libraries
Spectral Modeling Synthesis
https://en.wikipedia.org/wiki/Spectral_modeling_synthesis
INSTRUMENT SPECTRE --------------------------------------
Import lists: Frequencies, Amps, Bandwidth
index of the lists
process = oscillatorbanks(32, 400, 1) <: _,_;
SMS Out | import("stdfaust.lib");
spectrefreq = component("frequencies.dsp").frequencieslist;
spectreamps = component("amplitudes.dsp").amplitudeslist;
spectreband = component("bandwidths.dsp").bandwidthslist;
Flist(index) = ba.take(index + 1, spectrefreq);
Alist(index) = ba.take(index + 1, spectreamps);
BWlist(index) = ba.ta... |
f14fcb541cd711fd6fdf395b04614bec50fce1cc0e3d09a07f77b9024594314f | LucaSpanedda/Sound_reading_and_writing_techniques_in_Faust | TimestretchingSanfilippo.dsp | import("stdfaust.lib");
// buffer(p, x) = de.fdelay(L * ma.SR, p, x);
wIdx = ba.period(L);
buffer(p, x) = it.frwtable(3, L, .0, wIdx, x, p);
hann(x) = sin(ma.frac(x) * ma.PI) ^ 2.0;
grainRate = hslider("grain rate", 50, 10, 100, 1) : si.smoo;
// timeFactor = 1 - hslider("factor", 1, .125, 8.0, .001);
timeFactor = (ma... | https://raw.githubusercontent.com/LucaSpanedda/Sound_reading_and_writing_techniques_in_Faust/bb01eff05a51424c16420a00b383441d8973d85e/0_work-in-progress/TimestretchingSanfilippo.dsp | faust | buffer(p, x) = de.fdelay(L * ma.SR, p, x);
timeFactor = 1 - hslider("factor", 1, .125, 8.0, .001);
timePhase = os.phasor(L * ma.SR, (1.0 / L) * timeFactor);
seconds | import("stdfaust.lib");
wIdx = ba.period(L);
buffer(p, x) = it.frwtable(3, L, .0, wIdx, x, p);
hann(x) = sin(ma.frac(x) * ma.PI) ^ 2.0;
grainRate = hslider("grain rate", 50, 10, 100, 1) : si.smoo;
timeFactor = (ma.SR / L) * hslider("factor", 1, .125, 8.0, .001) : si.smoo;
jitter = hslider("jitter", 0, 0, 1, .001) : s... |
0c7c4601c2c2467f8d285d1d5e258aa8fb0457955bbedeeb1c6f3aaf693c2753 | LucaSpanedda/Sound_reading_and_writing_techniques_in_Faust | 1.05_Micro_Time_Splicing.dsp | // ---------------------------------------------------------------------------------
// import Standard Faust library
// https://github.com/grame-cncm/faustlibraries/
import("stdfaust.lib");
// MICRO-TIME SPLICING max. lenght 1 second for every sample rate
microtimesplicing
(reconoff,fnoise,fphasor,seed,sampssplice,a... | https://raw.githubusercontent.com/LucaSpanedda/Sound_reading_and_writing_techniques_in_Faust/bb01eff05a51424c16420a00b383441d8973d85e/0_work-in-progress/1.05_Micro_Time_Splicing.dsp | faust | ---------------------------------------------------------------------------------
import Standard Faust library
https://github.com/grame-cncm/faustlibraries/
MICRO-TIME SPLICING max. lenght 1 second for every sample rate
noise variable in frequency
impulse generation (same frequency of the noise)
phasor scatteri... |
import("stdfaust.lib");
microtimesplicing
(reconoff,fnoise,fphasor,seed,sampssplice,amprec,sampsimpulse,ampimpulse) =
rwtable(dimension,0.0,indexwrite,_,indexread)
* (impulsewindow*amprec) + impulseraw*ampimpulse
with{
varnoise = ((seed) : (+ @(ma.SR/fnoise)~ *(1103515245)))/2147483647.0;
routeimpul... |
ad80c75e7bced259993809302b24393dd3bd714514e2792fea17e0df12188d8c | LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis | PeakEnvelope.dsp | // import faust standard library
import("stdfaust.lib");
// Peak Max IIR filter with max comparison and RT60 Decay
peakenvelope(t, x) = abs(x) <: loop ~ _ * rt60(t)
with{
loop(y, z) = ( (y, z) : max);
rt60(t) = 0.001^((1/ma.SR) / t);
};
decayFactor = 10;
process = _ : peakenvelope(decayFactor); | https://raw.githubusercontent.com/LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis/b73b60d9e0b45e09bbf72b1477c21202b895f1bb/ITA/codes/PeakEnvelope.dsp | faust | import faust standard library
Peak Max IIR filter with max comparison and RT60 Decay | import("stdfaust.lib");
peakenvelope(t, x) = abs(x) <: loop ~ _ * rt60(t)
with{
loop(y, z) = ( (y, z) : max);
rt60(t) = 0.001^((1/ma.SR) / t);
};
decayFactor = 10;
process = _ : peakenvelope(decayFactor); |
2969eadcb8cc0e3a9242f9c9c679d941ddd21f6ff8d98ed130afa7bca0490cd6 | LucaSpanedda/Guida_Primi_Codici_in_FAUST | 0.31_Fasore_Reset_Fase.dsp | // FASORE con RESET della fase
//Importo la libreria
import("stdfaust.lib");
/* Ora che abbiamo parlato della generazione del fasore
raccogliamo i dati esposti fino ad ora per generare un segnale
non convenzionale: un Fasore con un reset della fase */
but = button("[1]gate segnale");
decimale(x)= x-int(x);
// reset... | https://raw.githubusercontent.com/LucaSpanedda/Guida_Primi_Codici_in_FAUST/f6a4ff6e68634cb7f702b332ccd2cea57764b580/0.31_Fasore_Reset_Fase.dsp | faust | FASORE con RESET della fase
Importo la libreria
Ora che abbiamo parlato della generazione del fasore
raccogliamo i dati esposti fino ad ora per generare un segnale
non convenzionale: un Fasore con un reset della fase
reset passando alla variabile reset 1. Non reset = 0. |
import("stdfaust.lib");
but = button("[1]gate segnale");
decimale(x)= x-int(x);
zerophase(reset) = 0.00002 : (+ : decimale) * (1-reset)~ _ ;
process = zerophase(but);
|
c17402786f2e075e04b7946bf1b249fffb618cd833e585c8584487e7690ffe67 | LucaSpanedda/Sound_reading_and_writing_techniques_in_Faust | 2.00_One_Grain.dsp | // ---------------------------------------------------------------------------------
/*
ONE GRAIN:
FIXED READER PHASOR with
Frequency Variable Noise - for change READING position,
same Frequency of the Noise for ENVELOPE Window.
ON A FIXED TABLE OF 1 SECOND (TAPE).
*/
// import Standard Faust library
// https://gith... | https://raw.githubusercontent.com/LucaSpanedda/Sound_reading_and_writing_techniques_in_Faust/bb01eff05a51424c16420a00b383441d8973d85e/0_work-in-progress/2.00_One_Grain.dsp | faust | ---------------------------------------------------------------------------------
ONE GRAIN:
FIXED READER PHASOR with
Frequency Variable Noise - for change READING position,
same Frequency of the Noise for ENVELOPE Window.
ON A FIXED TABLE OF 1 SECOND (TAPE).
import Standard Faust library
https://github.com/grame... |
import("stdfaust.lib");
onegrain(reconoff,fnoise,fphasor,seed,powwindow,amprec) =
rwtable(dimension,0.0,indexwrite,_,indexread) * (window*amprec)
with{
varnoise = ((seed) : (+ @(ma.SR/fnoise)~ *(1103515245)))/2147483647.0;
decimale(step)= step-int(step);
fasore = (fnoise/ma.SR) : (+ : decimale) ~ _;
... |
0a9ab7c9f5de0cc82d82c3e91c3d8e1a6a106060ee024d93ef09bfb620b123fd | LucaSpanedda/Guida_Primi_Codici_in_FAUST | 0.32_Rampa_Lineare.dsp | // RAMPA LINEARE
//Importo la libreria
import("stdfaust.lib");
/* cambiamo la logica di generazione del Fasore
per generare al suo posto una rampa lineare. */
trig = button("[1]phase reset");
milliseconds = 1000;
// decimalramp permette di passare ai valori solo quando sono tra 0. e 1.
decimalramp(a) = (a < 1) * a;... | https://raw.githubusercontent.com/LucaSpanedda/Guida_Primi_Codici_in_FAUST/b13fac93d70c545fab92342087c85079d19b69d3/0.32_Rampa_Lineare.dsp | faust | RAMPA LINEARE
Importo la libreria
cambiamo la logica di generazione del Fasore
per generare al suo posto una rampa lineare.
decimalramp permette di passare ai valori solo quando sono tra 0. e 1.
linephasor genera una rampa infinita, la cui retroazione si svuota
quando il valore crescente al suo interno viene molt... |
import("stdfaust.lib");
trig = button("[1]phase reset");
milliseconds = 1000;
decimalramp(a) = (a < 1) * a;
linephasor(ms,trigger) = +( ((1/ma.SR)/ms)*1000 ) *(1-trig)~_ : decimalramp;
process = linephasor(milliseconds,trig);
|
0828d6c5e762419de308d7b3d2ee5df2b5c691a433325a86694d0a77938e1ab1 | LucaSpanedda/Musical_Studies_of_Chaotic_Systems | 0.13_Filter_TPT-SVF-GUI.dsp | // import Standard Faust library
// https://github.com/grame-cncm/faustlibraries/
import("stdfaust.lib");
// TPT version of the SVF Filter by Vadim Zavalishin
// reference : (by Will Pirkle)
// http://www.willpirkle.com/Downloads/AN-4VirtualAnalogFilters.2.0.pdf
// SVFTPT filter function
SVFTPT(K, Q, CF, Glp , Ghp , ... | https://raw.githubusercontent.com/LucaSpanedda/Musical_Studies_of_Chaotic_Systems/d8b78c011cc0b2b75f74643eba78306d6a3f92df/Tools/0.13_Filter_TPT-SVF-GUI.dsp | faust | import Standard Faust library
https://github.com/grame-cncm/faustlibraries/
TPT version of the SVF Filter by Vadim Zavalishin
reference : (by Will Pirkle)
http://www.willpirkle.com/Downloads/AN-4VirtualAnalogFilters.2.0.pdf
SVFTPT filter function
choose the output from the SVF Filter (ex. bshelf)
GUI for the Fi... | import("stdfaust.lib");
SVFTPT(K, Q, CF, Glp , Ghp , Gbp, Gnotch, Gapf, Gubp, Gpeak, Gbshelf, x) = circuitout
with {
g = tan(CF * ma.PI / ma.SR);
R = 1.0 / (2.0 * Q);
G1 = 1.0 / (1.0 + 2.0 * R * g + g * g);
G2 = 2.0 * R + g;
circuit(s1, s2) = u1 , u2 , lp , hp , bp, notch,... |
7c779fd81067639a1a3f75f35300d2cfcc1fea1640d28fc560e101a5d7a45dd3 | LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis | LorenzEquations.dsp | // import faust standard library
import("stdfaust.lib");
LorenzSystem(x0, y0, z0, dt, beta, rho, sigma) = LorenzSystemEquations
with {
x_init = x0-x0'; y_init = y0-y0'; z_init = z0-z0';
LorenzSystemEquations(x, y, z) =
(x + sigma * (y - x) * dt + x_init),
(y... | https://raw.githubusercontent.com/LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis/b73b60d9e0b45e09bbf72b1477c21202b895f1bb/ITA/codes/LorenzEquations.dsp | faust | import faust standard library | import("stdfaust.lib");
LorenzSystem(x0, y0, z0, dt, beta, rho, sigma) = LorenzSystemEquations
with {
x_init = x0-x0'; y_init = y0-y0'; z_init = z0-z0';
LorenzSystemEquations(x, y, z) =
(x + sigma * (y - x) * dt + x_init),
(y + (rho * x - x * z - y) * dt + y... |
d550207b925eaa94f98da60c61230fd40dd17febbd2b01ef6f2b16f021bbddfd | LucaSpanedda/Spanedda-PDlibraries | RTSG_Multiple_Instances.dsp | // ---------------------------------------------------------------------------------
/*
REAL TIME SYNCHRONOUS GRANULATOR with COUNTER:
100 Milliseconds grains with Envelope window shape control.
ON PARALLEL FIXED TABLES OF 1 SECOND (TAPES)
*/
// import Standard Faust library
// https://github.com/grame-cncm/faustlibr... | https://raw.githubusercontent.com/LucaSpanedda/Spanedda-PDlibraries/5b818fd8af0377d133505e240a8bf9de9ea05651/slll.pd-main/Win_PD_Externals_FAUST/RTSG_Multiple_Instances.dsp | faust | ---------------------------------------------------------------------------------
REAL TIME SYNCHRONOUS GRANULATOR with COUNTER:
100 Milliseconds grains with Envelope window shape control.
ON PARALLEL FIXED TABLES OF 1 SECOND (TAPES)
import Standard Faust library
https://github.com/grame-cncm/faustlibraries/
GRAI... |
import("stdfaust.lib");
counter = hslider("[0] Grains Rec",1,1,40,1);
ampguiin = hslider("[1] Grains Amp In",1,0,1,0.01);
windowgui = hslider("[4] Grains Window",1,1,200,1);
ampgui = hslider("[2] Grains Amp Out",0.1,0,10,0.1);
freqguiplus = hslider("[5] Grains Freq+",1,1,100,1);
freqguiminus = hslider("[6] Grains Fr... |
a0a56ba2adb5edbdd02bf3523d80fca700ea5064418236f1d6daf3a276f20315 | LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis | PeakHolderAdaptive.dsp | // import faust standard library
import("stdfaust.lib");
peakHolder(holdTime, x) = loop ~ si.bus(2) : ! , _
with {
loop(timerState, outState) = timer , output
with {
isNewPeak = abs(x) >= outState;
isTimeOut = timerState >= (holdTime * ma.SR - 1);
bypass = isNewPeak | isTimeOut;
... | https://raw.githubusercontent.com/LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis/b73b60d9e0b45e09bbf72b1477c21202b895f1bb/ITA/codes/PeakHolderAdaptive.dsp | faust | import faust standard library | import("stdfaust.lib");
peakHolder(holdTime, x) = loop ~ si.bus(2) : ! , _
with {
loop(timerState, outState) = timer , output
with {
isNewPeak = abs(x) >= outState;
isTimeOut = timerState >= (holdTime * ma.SR - 1);
bypass = isNewPeak | isTimeOut;
timer = ba.if(bypass, 0, timerSt... |
6f2f724cc806acd0794e0b03fecfd3e68825941587f5d31e4ea97a03c184f468 | LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis | LorenzSystem.dsp | // import faust standard library
import("stdfaust.lib");
// Lorenz System
LorenzSystem(x0, y0, z0, dt, beta, rho, sigma) = LorenzSystemEquations ~ si.bus(3) :
par(i, 3, _ * 0.002)
with {
x_init = x0-x0'; y_init = y0-y0'; z_init = z0-z0';
LorenzSystemEquations(x, y, z) =
(... | https://raw.githubusercontent.com/LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis/b73b60d9e0b45e09bbf72b1477c21202b895f1bb/ITA/codes/LorenzSystem.dsp | faust | import faust standard library
Lorenz System
Lorenz System Parameters
| import("stdfaust.lib");
LorenzSystem(x0, y0, z0, dt, beta, rho, sigma) = LorenzSystemEquations ~ si.bus(3) :
par(i, 3, _ * 0.002)
with {
x_init = x0-x0'; y_init = y0-y0'; z_init = z0-z0';
LorenzSystemEquations(x, y, z) =
(x + (sigma * (y - x)) * dt + x_init),
(y... |
547ad1d9f05ba4e720ed80693521b95a504ab49a5181e4bc69ac758eaac12078 | LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis | LocalMax.dsp | // import faust standard library
import("stdfaust.lib");
localMax(seconds, x) = loop ~ si.bus(4) : _ , ! , ! , !
with {
loop(yState, timerState, peakState, timeInSamplesState) =
y , timer , peak , timeInSamples
with {
timeInSamples = ba.if(reset + 1 - 1', seconds *
ma.SR, timeInSa... | https://raw.githubusercontent.com/LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis/b73b60d9e0b45e09bbf72b1477c21202b895f1bb/ITA/codes/LocalMax.dsp | faust | import faust standard library | import("stdfaust.lib");
localMax(seconds, x) = loop ~ si.bus(4) : _ , ! , ! , !
with {
loop(yState, timerState, peakState, timeInSamplesState) =
y , timer , peak , timeInSamples
with {
timeInSamples = ba.if(reset + 1 - 1', seconds *
ma.SR, timeInSamplesState);
reset = time... |
d4434286a088efa0029e2d40b51d07300f14a0b4347a94bfbf08b03c3cf95aad | LucaSpanedda/Musical_Studies_of_Chaotic_Systems | 0.00_Dynamic_Systems.dsp | // FAUST standard library
import("stdfaust.lib");
/*
Laplace's determinism finds its own mathematical formulation
in the modern definition of dynamic system.
A discrete-time dynamic system is given by the pair: X, f
where X indicates the phase space
f is a transformation that associates each point of X with another po... | https://raw.githubusercontent.com/LucaSpanedda/Musical_Studies_of_Chaotic_Systems/d8b78c011cc0b2b75f74643eba78306d6a3f92df/Tools/0.00_Dynamic_Systems.dsp | faust | FAUST standard library
Laplace's determinism finds its own mathematical formulation
in the modern definition of dynamic system.
A discrete-time dynamic system is given by the pair: X, f
where X indicates the phase space
f is a transformation that associates each point of X with another point.
The behavior of the syst... | import("stdfaust.lib");
Ramp = Xn
letrec{
'Xn = Xn+1;
};
Counter = Ramp / ma.SR : int;
Phasor(f) = Xn
letrec{
'Xn = (Xn+(f/ma.SR))-int(Xn);
};
process = Counter;
|
d9328a42a27435f178a184e29bbc9241ee729eddc84cd7f0442574ed262e4ed6 | LucaSpanedda/Sound_reading_and_writing_techniques_in_Faust | Timesplicing.dsp | // import Standard Faust library
// https://github.com/grame-cncm/faustlibraries/
import("stdfaust.lib");
/*
TIME SPLICING:
WRITING AND READING WITH SCATTERING
ON A FIXED TABLE OF 1 SECOND (TAPE)
*/
// 16 Primes Numbers List
somePrimes = (10487, 10499, 10501, 10513, 10529, 10531, 10559, 10567,
10589,... | https://raw.githubusercontent.com/LucaSpanedda/Sound_reading_and_writing_techniques_in_Faust/fe75a153d8e837ae4498b1cfd21ed311e3b62683/Timesplicing.dsp | faust | import Standard Faust library
https://github.com/grame-cncm/faustlibraries/
TIME SPLICING:
WRITING AND READING WITH SCATTERING
ON A FIXED TABLE OF 1 SECOND (TAPE)
16 Primes Numbers List
index of the somePrimes numbers
only decimal pass
only integer pass
binary selector 0 - 1
noise with prime numbers
TAPE-SPL... | import("stdfaust.lib");
somePrimes = (10487, 10499, 10501, 10513, 10529, 10531, 10559, 10567,
10589, 10597, 10601, 10607, 10613, 10627, 10631, 10639);
primeI(index) = ba.take(index , list)
with{
list = somePrimes;
};
decimal(x) = x-int(x);
integer(x) = int(x);
selector(sel,x,y) = ( x * (1-sel)... |
584f6acd56dee0ae033fd6ad71b7e14972718c38cc7fd52023287c8de3e25191 | LucaSpanedda/Sound_reading_and_writing_techniques_in_Faust | Timestretching_OATO.dsp | import("stdfaust.lib");
// GRANULATOR Overlap Add To One
// Sample and Hold Function
SAH2(trig,x) = loop~_
with{
loop(y) = (y,x : select2(trig));
};
// Phasor Function
Phasor(f) = Xn
letrec{
'Xn = (Xn+(f/ma.SR))-int(Xn);
};
// tableMax = table Max Dimension
tableMax = 192000 * 3;... | https://raw.githubusercontent.com/LucaSpanedda/Sound_reading_and_writing_techniques_in_Faust/bb01eff05a51424c16420a00b383441d8973d85e/0_work-in-progress/Timestretching_OATO.dsp | faust | GRANULATOR Overlap Add To One
Sample and Hold Function
Phasor Function
tableMax = table Max Dimension
L = buffer dimension in seconds
Write index - ramp 0 to L
Hanning window Equation
Grain in Ms.
stretchFactor - 0 Normal / 1 Extreme stretch (Freeze)
Jitter Amount in the position for the reads
Position of th... | import("stdfaust.lib");
SAH2(trig,x) = loop~_
with{
loop(y) = (y,x : select2(trig));
};
Phasor(f) = Xn
letrec{
'Xn = (Xn+(f/ma.SR))-int(Xn);
};
tableMax = 192000 * 3;
L = ma.SR * 3;
wIdx = (+(1) : %(L)) ~ _ : int;
buffer(p, x) = it.frwtable(3, tableMax, .0, wIdx, x, p);
hann(x) ... |
0843e8ba9c5185f3e845ffdcc0afc1a030cd0c64198ede391eec206fb06e7037 | LucaSpanedda/Guida_Primi_Codici_in_FAUST | 0.70_Noise_e_Random.dsp | // RUMORE BIANCO E RANDOM
/* per generare del rumore bianco in FAUST
occorre creare una retroazione come per un fasore,
ma invece che creare un processo di accumulazione,
bisogna creare un sistema che generi un numero casuale
per ogni campione.*/
// Importo la libreria standard
import("stdfaust.lib");
// NOISE
// i... | https://raw.githubusercontent.com/LucaSpanedda/Guida_Primi_Codici_in_FAUST/90eef06a976f36347e1a4e48091ad1c7b109fdd9/0.70_Noise_e_Random.dsp | faust | RUMORE BIANCO E RANDOM
per generare del rumore bianco in FAUST
occorre creare una retroazione come per un fasore,
ma invece che creare un processo di accumulazione,
bisogna creare un sistema che generi un numero casuale
per ogni campione.
Importo la libreria standard
NOISE
in questo caso passiamo un valore di see... |
import("stdfaust.lib");
noise(seed) = (+(seed)~*(1103515245))/2147483647.0;
varnoise(freq,seed) = ((seed) : (+ @(ma.SR/freq)~
*(1103515245))) /2147483647.0;
process = noise(8960458042) <:_,_;
|
4453a1f7bbfc0d5bd962ef857bd04d992662396e17a23b489b3b216423b10512 | LucaSpanedda/Audible-Ecosystemics-2 | Noise_Test_Speakers_Mics.dsp | // import faust standard library
import("stdfaust.lib");
Noise(initSeed) = LCG ~ _ : (_ / m)
with{
// variables
// initSeed = an initial seed value
a = 18446744073709551557; // a large prime number, such as 18446744073709551557
c = 12345; // a small prime number, such as 12345
m = 2 ^ 31; // 2.1 bi... | https://raw.githubusercontent.com/LucaSpanedda/Audible-Ecosystemics-2/c4be0f10b765b5466fe87fbe42afaab5cfd37793/Electroacoustic_chain_environmental_tests/Noise_Test_Speakers_Mics.dsp | faust | import faust standard library
variables
initSeed = an initial seed value
a large prime number, such as 18446744073709551557
a small prime number, such as 12345
2.1 billion
linear_congruential_generator | import("stdfaust.lib");
Noise(initSeed) = LCG ~ _ : (_ / m)
with{
LCG(seed) = ((a * seed + c) + (initSeed-initSeed') % m);
};
dBMeters = hgroup("8 channels dB meter", par(i, 16, vgroup("%i", vmeter(i) : null)))
with{
null(x) = attach(0,x);
envelop = abs : max(ba.db2linear(-70)) : ba.linear2db : min(10) :... |
a7c729c76f6e46dbbbb75dc03b20eaf59ddcb9d65c420e0a030a71a59403ce0d | LucaSpanedda/Guida_Primi_Codici_in_FAUST | 0.71_Clicks_Generator_Samples.dsp | // ---------------------------------------------------------------------------------
// CLICKS GENERATOR - SAMPLES
/* quando il valore random generato
dal noise fra -1 e +1 corrisponde ad un numero
minore di 0. viene generato un impulso in fase negativa.
Quando corrisponde ad un numero maggiore di 0.
viene generato... | https://raw.githubusercontent.com/LucaSpanedda/Guida_Primi_Codici_in_FAUST/636a4f14a312027eefb1f05303d4b2dc063ef5eb/0.71_Clicks_Generator_Samples.dsp | faust | ---------------------------------------------------------------------------------
CLICKS GENERATOR - SAMPLES
quando il valore random generato
dal noise fra -1 e +1 corrisponde ad un numero
minore di 0. viene generato un impulso in fase negativa.
Quando corrisponde ad un numero maggiore di 0.
viene generato un impu... |
import("stdfaust.lib");
clicks(seed,f,samples,amp) = outimpulse
with{
varnoise = (((seed) : (+ @(ma.SR/f)~ *(1103515245)))/2147483647.0);
routeimpulse(a,b) = a : _@(samples), b :> - : _ > 0;
noisemaj = varnoise>0;
noisemin = varnoise<0;
majimpulse = noisemaj <: routeimpulse;
minimpulse = noisemin <: routeimpulse *-... |
810b4e0b1c2b8bc99e231908e1628a07f0ed7da7dda5ab850a638af4eacab018 | LucaSpanedda/Guida_Primi_Codici_in_FAUST | 0.60_Condizioni_Su_Segnale.dsp | // CONDIZIONI SU UN SEGNALE
/* In FAUST possiamo utilizzare dei Breakpoint
sul percorso del segnale per l'elaborazione,
e per determinare delle particolari condizioni.
In questo caso utilizzeremo i valori
di minimo e massimo per impostare un limite
oltre il quale il segnale diventa costante rispetto
a quella sog... | https://raw.githubusercontent.com/LucaSpanedda/Guida_Primi_Codici_in_FAUST/cca4cea8714997cd0fa8bb7f103a36c141e166e2/0.60_Condizioni_Su_Segnale.dsp | faust | CONDIZIONI SU UN SEGNALE
In FAUST possiamo utilizzare dei Breakpoint
sul percorso del segnale per l'elaborazione,
e per determinare delle particolari condizioni.
In questo caso utilizzeremo i valori
di minimo e massimo per impostare un limite
oltre il quale il segnale diventa costante rispetto
a quella soglia d... |
import("stdfaust.lib");
clipz(a,v) = _*a : min(v) : max(-v);
due_pigreco = 6.2831853071795;
decimale(x) = x-int(x);
osc(frequenza,ampiezza) = sin((frequenza/ma.SR : (+ : decimale) ~ _ )
*due_pigreco) *ampiezza;
sine = osc(200,1);
process = sine : clipz(1,0.5) <: _,_;
|
0d1ff77d212c6416300a6eeb89e1cf156d1b3ab429f426e4453e7f5bc159fe46 | LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis | CostrainedLorenzSystem.dsp | // import faust standard library
import("stdfaust.lib");
// Hyperbolic Tangent Saturator Parameter
THRESHOLD = 1000;
// Hyperbolic Tangent Saturator Function
saturator(lim, x) = lim * ma.tanh( x / (max(lim, ma.EPSILON)) );
// DC Blocker Parameters
ZERO = 1;
POLE = .995;
// DC Blocker Filter Function
dcblo... | https://raw.githubusercontent.com/LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis/b73b60d9e0b45e09bbf72b1477c21202b895f1bb/ITA/codes/CostrainedLorenzSystem.dsp | faust | import faust standard library
Hyperbolic Tangent Saturator Parameter
Hyperbolic Tangent Saturator Function
DC Blocker Parameters
DC Blocker Filter Function
Costrained (Modified) Lorenz System
| import("stdfaust.lib");
THRESHOLD = 1000;
saturator(lim, x) = lim * ma.tanh( x / (max(lim, ma.EPSILON)) );
ZERO = 1;
POLE = .995;
dcblocker(zero, pole, x) = x : _ <: _, mem : _, * (zero) : - : + ~ * (pole);
LorenzSystem(x0, y0, z0, dt, beta, rho, sigma, tanHrange) =
(LorenzSystemEquations : par(i, 3, ... |
083b17c2cb15a84269fcff2efadfd0de29d330ef008d8d44211b27cec5245073 | LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis | Sampler.dsp | // import faust standard library
import("stdfaust.lib");
// hard-coded: change this to match your samplerate
SampleRate = 44100;
sampler(lengthSec, memChunk, ratio, x) =
it.frwtable(3, bufferLen, .0, writePtr, x, readPtr) * window
with {
memChunkLimited = max(0.100, min(1, mem... | https://raw.githubusercontent.com/LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis/b73b60d9e0b45e09bbf72b1477c21202b895f1bb/ITA/codes/Sampler.dsp | faust | import faust standard library
hard-coded: change this to match your samplerate | import("stdfaust.lib");
SampleRate = 44100;
sampler(lengthSec, memChunk, ratio, x) =
it.frwtable(3, bufferLen, .0, writePtr, x, readPtr) * window
with {
memChunkLimited = max(0.100, min(1, memChunk));
bufferLen = lengthSec * SampleRate;
writePtr = ba.period(bufferL... |
255d7fdb1ec827b59916f717af8a26f5ad415190d39d00f133febb0bda485675 | LucaSpanedda/Guida_Primi_Codici_in_FAUST | 0.05_Par.dsp | // IL PAR
//Importo la libreria standard di FAUST
import("stdfaust.lib");
// OSCILLATORE SAW (ARGOMENTO DA RICHIAMARE NEL PAR)
decimale(x) = x-int(x);
saw(frequenza) = ((frequenza/ma.SR : (+ : decimale)~_)*2-1);
/* in faust l'ietrazione PAR può essere usata per duplicare
le espressioni in parallelo
- il primo arg... | https://raw.githubusercontent.com/LucaSpanedda/Guida_Primi_Codici_in_FAUST/d5a5335c5a04b5b45a04f69a15ede02036c5be6c/0.05_Par.dsp | faust | IL PAR
Importo la libreria standard di FAUST
OSCILLATORE SAW (ARGOMENTO DA RICHIAMARE NEL PAR)
in faust l'ietrazione PAR può essere usata per duplicare
le espressioni in parallelo
- il primo argomento è la variabile che deve essere richiamata
in seguito per designare le iterazioni
starting at 0.
- il secondo argo... |
import("stdfaust.lib");
decimale(x) = x-int(x);
saw(frequenza) = ((frequenza/ma.SR : (+ : decimale)~_)*2-1);
iteration = par(i,8,saw(100+i)) :> *(0.1);
process = iteration <: _,_;
|
9bc12d4a075ab261e4b782d505308df7c5c93edbe3ae1c314869d672ac098f98 | LucaSpanedda/Guida_Primi_Codici_in_FAUST | 0.02_Argomento_di_Funzione.dsp | // ARGOMENTO DI FUNZIONE
//Importo la libreria standard di FAUST
import("stdfaust.lib");
//creo una funzione che sottragga i numeri interi lasciando i decimali
decimale(x) = x-int(x);
/* In Faust oltre alle funzioni possiamo usare
gli argomenti di una funzione.
Posso mettere un argomento alla funzione quan... | https://raw.githubusercontent.com/LucaSpanedda/Guida_Primi_Codici_in_FAUST/20e1a9a763b26c410948fe376eece02901f7cae2/0.02_Argomento_di_Funzione.dsp | faust | ARGOMENTO DI FUNZIONE
Importo la libreria standard di FAUST
creo una funzione che sottragga i numeri interi lasciando i decimali
In Faust oltre alle funzioni possiamo usare
gli argomenti di una funzione.
Posso mettere un argomento alla funzione quando la scrivo
in questo modo:
funzione(argomento di funzione 1,... |
import("stdfaust.lib");
decimale(x) = x-int(x);
fasore(frequenza) = (frequenza/ma.SR : (+ : decimale)~_);
process = fasore(100)*2-1 <:_,_;
|
84c25f0508442a2baf75d4653d9b2dd34ef0879458d830039905f4e1cf6e5559 | LucaSpanedda/Guida_Primi_Codici_in_FAUST | 0.04_Routing.dsp | // IL ROUTING DI UN SEGNALE
// Importo libreria standard di FAUST
import("stdfaust.lib");
/* in FAUST di base, non è un processo scontato gestire il routing
di un segnale che superi le due entrate o uscite di collegamento
in catena.
Con la tecnica della funzione router illustrata a seguito
si rende possibile la ges... | https://raw.githubusercontent.com/LucaSpanedda/Guida_Primi_Codici_in_FAUST/b4fa55da275813b2cb8e5cf6215b024c8feadde4/0.04_Routing.dsp | faust | IL ROUTING DI UN SEGNALE
Importo libreria standard di FAUST
in FAUST di base, non è un processo scontato gestire il routing
di un segnale che superi le due entrate o uscite di collegamento
in catena.
Con la tecnica della funzione router illustrata a seguito
si rende possibile la gestione di più canali indipendenti... |
import("stdfaust.lib");
router(a,b,c,d,e,f,g) = a, b, c, d, e, f, g;
out_router(a,b,c,d,e,f,g) = a+b+c+d+e+f+g;
process = _ <: router :> out_router;
|
0658097062be451aed619ab3a658e22a90f0470c2bb41ce391acbe7d8e7bfe62 | LucaSpanedda/Guida_Primi_Codici_in_FAUST | 0.09_Argomento_di_Funzione.dsp | // ARGOMENTO DI FUNZIONE
//Importo la libreria standard di FAUST
import("stdfaust.lib");
//creo una funzione che sottragga i numeri interi lasciando i decimali
decimale(x) = x-int(x);
/* In Faust oltre alle funzioni possiamo usare
gli argomenti di una funzione.
Posso mettere un argomento alla funzione quan... | https://raw.githubusercontent.com/LucaSpanedda/Guida_Primi_Codici_in_FAUST/fe7fba2be6ccb8b83efc1367d4565777af8cdef5/0.09_Argomento_di_Funzione.dsp | faust | ARGOMENTO DI FUNZIONE
Importo la libreria standard di FAUST
creo una funzione che sottragga i numeri interi lasciando i decimali
In Faust oltre alle funzioni possiamo usare
gli argomenti di una funzione.
Posso mettere un argomento alla funzione quando la scrivo
in questo modo:
funzione(argomento di funzione ... |
import("stdfaust.lib");
decimale(x) = x-int(x);
fasore(frequenza) = ((frequenza/ma.SR : (+ : decimale) ~ _ ) *2 -1 )
*hslider("ampiezza segnale", 0, 0, 1, 0.01);
process = fasore(100), fasore(101);
|
4976e7918fd88b2ea097926ce9043f2ebb58d6ca18cdc1c4f3c9aad6dc1d704d | LucaSpanedda/RITI-Room-Is-The-Instrument | byHandModel.dsp | // Faust standard libraries
import("stdfaust.lib");
// Spectral Modeling Synthesis
// https://en.wikipedia.org/wiki/Spectral_modeling_synthesis
// INSTRUMENT SPECTRE --------------------------------------
// index of the lists
Flist(index) = ba.take(index + 1, ( 66, 129, 196, 261, 325, 390, 457, 520 ));
... | https://raw.githubusercontent.com/LucaSpanedda/RITI-Room-Is-The-Instrument/dc7497f7621a32b070c9f983f75a120d486a5c46/Audio-Analysis/FAUST-SpectralModel/byHandModel.dsp | faust | Faust standard libraries
Spectral Modeling Synthesis
https://en.wikipedia.org/wiki/Spectral_modeling_synthesis
INSTRUMENT SPECTRE --------------------------------------
index of the lists
BP FILTER ----------------------------------------------
optimized BP from the TPT version of the SVF Filter by Vadim ... | import("stdfaust.lib");
Flist(index) = ba.take(index + 1, ( 66, 129, 196, 261, 325, 390, 457, 520 ));
Alist(index) = ba.take(index + 1, ( .8, 1.2, .50, .60, .30, .20, .04, .18 ));
BWlist(index) = ba.take(index + 1, ( 10, 8.0, 8.0, 6.0, 6.0, 10., 2.0, 10. ));
Voices = 8;
BPSVF(glin, bw, cf, x) = l... |
f63899cff506130e377d35680b9e9938447d3df0ead7ee557e1bd698b48556ac | LucaSpanedda/Sound_reading_and_writing_techniques_in_Faust | TimestretchingWRONG.dsp | declare name "Timestretching";
declare author "Luca Spanedda";
// FAUST standard library
import("stdfaust.lib");
GRec = checkbox("[0]Cyclic Recording");
GBuffer = hslider("[1]Buffer Dimension",1000,120,8000,1):si.smoo;
GStretch = hslider("[2]Stretch Factor",1,1,100,0.01):si.smoo;
GGraindim = hslider("[3]G... | https://raw.githubusercontent.com/LucaSpanedda/Sound_reading_and_writing_techniques_in_Faust/bb01eff05a51424c16420a00b383441d8973d85e/0_work-in-progress/TimestretchingWRONG.dsp | faust | FAUST standard library
Sample and Hold: input --> sah(control sig)
Phasor
Gaussian Windowing: phasor input, power
offset for the index write and read
buffer dynamic dimension
graindim = dimension of the grain in ms.
indexwrite = cyclic constant writing on all the buffer + offset
wrap reset the int
X_bufferpo... | declare name "Timestretching";
declare author "Luca Spanedda";
import("stdfaust.lib");
GRec = checkbox("[0]Cyclic Recording");
GBuffer = hslider("[1]Buffer Dimension",1000,120,8000,1):si.smoo;
GStretch = hslider("[2]Stretch Factor",1,1,100,0.01):si.smoo;
GGraindim = hslider("[3]Grain Dimension",80,1,100,0... |
41da584d44878d6cff630749be5c0b88a9fea82a9fd35818c600ba73f55a8dc6 | LucaSpanedda/RITI-Room-Is-The-Instrument | SMSoptimizedBPSVFTPT.dsp | // Faust standard libraries
import("stdfaust.lib");
// Spectral Modeling Synthesis
// https://en.wikipedia.org/wiki/Spectral_modeling_synthesis
// INSTRUMENT SPECTRE --------------------------------------
// Import lists: Frequencies, Amps, Bandwidth
spectrefreq = component("frequencies.dsp").frequencieslist;
spectr... | https://raw.githubusercontent.com/LucaSpanedda/RITI-Room-Is-The-Instrument/dc7497f7621a32b070c9f983f75a120d486a5c46/Audio-Analysis/FAUST-SpectralModel/SMSoptimizedBPSVFTPT.dsp | faust | Faust standard libraries
Spectral Modeling Synthesis
https://en.wikipedia.org/wiki/Spectral_modeling_synthesis
INSTRUMENT SPECTRE --------------------------------------
Import lists: Frequencies, Amps, Bandwidth
index of the lists
process = Flist(11), Flist(11), BWlist(11);
BP FILTER --------------------------... | import("stdfaust.lib");
spectrefreq = component("frequencies.dsp").frequencieslist;
spectreamps = component("amplitudes.dsp").amplitudeslist;
spectreband = component("bandwidths.dsp").bandwidthslist;
Flist(index) = ba.take(index, spectrefreq) * .500 ;
Alist(index) = ba.take(index, spectreamps) * 1.00 ;
BWlist(inde... |
63f96913ada36a084ebcad215212b6543c6b471052d8bd2f577afe17a3910b25 | LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis | LookaheadLimiter.dsp | // import faust standard library
import("stdfaust.lib");
// Peak Max IIR filter with max comparison and RT60 Decay
peakenvelope(t, x) = abs(x) <: loop ~ _ * rt60(t)
with{
loop(y, z) = ( (y, z) : max);
rt60(t) = 0.001^((1/ma.SR) / t);
};
// process = _ : peakenvelope(decayFactor);
// PeakHolder with Timer
pea... | https://raw.githubusercontent.com/LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis/b73b60d9e0b45e09bbf72b1477c21202b895f1bb/ITA/codes/LookaheadLimiter.dsp | faust | import faust standard library
Peak Max IIR filter with max comparison and RT60 Decay
process = _ : peakenvelope(decayFactor);
PeakHolder with Timer
process = _ : peakHolder(1);
PeakHold module with an exponential decay curve
Zavalishin's Onepole TPT Filter
Outs: lp , hp , ap
Lowpass TPT
Highpass TPT
Lookahe... | import("stdfaust.lib");
peakenvelope(t, x) = abs(x) <: loop ~ _ * rt60(t)
with{
loop(y, z) = ( (y, z) : max);
rt60(t) = 0.001^((1/ma.SR) / t);
};
peakHolder(holdTime, x) = loop ~ si.bus(2) : ! , _
with {
loop(timerState, outState) = timer , output
with {
isNewPeak = abs(x) >= outState;
... |
90866ddc6b5aa93653bddb94125100f338d518e88d181a4f90d36e707102e525 | LucaSpanedda/Guida_Primi_Codici_in_FAUST | 0.91_dBConversions_and_GUI.dsp | //Importo la libreria standard di Faust
import("stdfaust.lib");
/*
Logaritmo:
potenza = numero alla base, e risultato del numero alla base per la potenza.
ex. potenza di 4 = logaritmo in base 4 di 16 (16 = risultato base 4 alla ^4).
Decibel :
Il decibel (simbolo ㏈) è la decima parte del bel (simbolo B): 10 ㏈ =
1 B ... | https://raw.githubusercontent.com/LucaSpanedda/Guida_Primi_Codici_in_FAUST/60c39e6cbda295d6eeb82a21af9811f6752ca090/0.91_dBConversions_and_GUI.dsp | faust | Importo la libreria standard di Faust
Logaritmo:
potenza = numero alla base, e risultato del numero alla base per la potenza.
ex. potenza di 4 = logaritmo in base 4 di 16 (16 = risultato base 4 alla ^4).
Decibel :
Il decibel (simbolo ㏈) è la decima parte del bel (simbolo B): 10 ㏈ =
1 B ed è un'unità di misura logar... | import("stdfaust.lib");
Smooth(G) = *(1-G) : +~*(G);
lineartodB(g) = 20.0*log10(max(ma.MIN, g));
dBtolinear(l) = pow(10.0, l/20.0);
SliderdB = hslider("Slider in dB",-80,-80,0,0.001) : Smooth(0.98) : dBtoline
with{
dBtoline(G) = pow(10.0, G/20.0);
};
process = no.noise*SliderdB;
|
2cfc4e2299bc1943f77fa4d3a7616e326df4eb83f6a834bb499c91283e2083bb | LucaSpanedda/Guida_Primi_Codici_in_FAUST | 0.40_Sinusoide.dsp | // SINUSOIDE
//Importo la libreria
import("stdfaust.lib");
//creo una funzione che sottragga i numeri interi lasciando i decimali
decimale(x) = x-int(x);
//creo una funzione in cui stabilisco la frequenza da utilizzare
// e da richiamare a seguito all'occorrenza
frequenza = 440;
//stabilisco la frequen... | https://raw.githubusercontent.com/LucaSpanedda/Guida_Primi_Codici_in_FAUST/98bc34b89046605d1283cb8fd22574e538b5d03b/0.40_Sinusoide.dsp | faust | SINUSOIDE
Importo la libreria
creo una funzione che sottragga i numeri interi lasciando i decimali
creo una funzione in cui stabilisco la frequenza da utilizzare
e da richiamare a seguito all'occorrenza
stabilisco la frequenza del fasore:
dividendola per il Sample Rate,
e creo il fasore generando il loop dei... |
import("stdfaust.lib");
decimale(x) = x-int(x);
frequenza = 440;
fasore = frequenza/ma.SR : (+ : decimale) ~ _;
due_pigreco = 6.2831853071795;
fasore_pi = fasore * due_pigreco;
sinusoide = sin(fasore_pi) ;
process = sinusoide, sinusoide;
|
d4bd776d61023c59d4cacfb33ec00f832f5ddfb030e5428105cc956c70281fe5 | LucaSpanedda/Guida_Primi_Codici_in_FAUST | 0.50_Sintesi_Additiva.dsp | // SINTESI ADDITIVA
/* La sintesi additiva è una tecnica di sintesi sonora
utilizzata nella musica elettronica che crea timbriche,
quindi forme d'onda comunque complesse, sommando insieme singole onde,
generalmente sinusoidali.
In base alla teoria di Fourier, la forma d'onda di un segnale
e il suo inviluppo nel te... | https://raw.githubusercontent.com/LucaSpanedda/Guida_Primi_Codici_in_FAUST/1e7dadd7071be6974d9bcba1b7dc8beee435b77e/0.50_Sintesi_Additiva.dsp | faust | SINTESI ADDITIVA
La sintesi additiva è una tecnica di sintesi sonora
utilizzata nella musica elettronica che crea timbriche,
quindi forme d'onda comunque complesse, sommando insieme singole onde,
generalmente sinusoidali.
In base alla teoria di Fourier, la forma d'onda di un segnale
e il suo inviluppo nel tempo p... |
import("stdfaust.lib");
due_pigreco = 6.2831853071795;
decimale(x) = x-int(x);
osc(frequenza, ampiezza) = sin((frequenza/ma.SR : (+ : decimale) ~ _ )
*due_pigreco) *ampiezza;
process =
osc(300.5, 0.500) +osc(450, 0.200) +osc(500, 0.100) +osc(600, 0.060);
|
4633149246b37a4450467bd90ce3ad3a15c90dc34ac90b83c81d63077bdc2a46 | LucaSpanedda/Guida_Primi_Codici_in_FAUST | 0.90_GUI.dsp | // GUI - GRAPHIC USER INTERFACE
// importo la libreria standard e
// del rumore bianco come sorgente da controllare
import("stdfaust.lib");
noise = no.noise;
/* In FAUST è possibile creare delle interfacce grafiche
per il controllo visuale all'interno del proprio codice.
L'interfaccia grafica, nota anche com... | https://raw.githubusercontent.com/LucaSpanedda/Guida_Primi_Codici_in_FAUST/66186175e1dc79e12d2b0773d20b1e15c9f37bb9/0.90_GUI.dsp | faust | GUI - GRAPHIC USER INTERFACE
importo la libreria standard e
del rumore bianco come sorgente da controllare
In FAUST è possibile creare delle interfacce grafiche
per il controllo visuale all'interno del proprio codice.
L'interfaccia grafica, nota anche come GUI
(dall'inglese Graphical User Interface),
in in... |
import("stdfaust.lib");
noise = no.noise;
process = noise* hslider("Ampiezza knob [style:knob]",0,0,1, 0.01);
|
78507279fe23e5cfeec022613e93f2200a953dba450ed81ae699520d18f395ba | LucaSpanedda/Guida_Primi_Codici_in_FAUST | 0.03_Funzioni_with.dsp | // LA FUNZIONE CON WITH
//Importo la libreria standard di FAUST
import("stdfaust.lib");
// Una Funzione contiene le istruzioni che specificano
// le operazioni da effettuare al suo interno.
// In FAUST una funzione può essere creata specificando
// un nome da dare alle istruzioni che seguono,
// e scrivendo nel caso... | https://raw.githubusercontent.com/LucaSpanedda/Guida_Primi_Codici_in_FAUST/0c35091ef7d2e354d82fa9d75efb15d7947df058/0.03_Funzioni_with.dsp | faust | LA FUNZIONE CON WITH
Importo la libreria standard di FAUST
Una Funzione contiene le istruzioni che specificano
le operazioni da effettuare al suo interno.
In FAUST una funzione può essere creata specificando
un nome da dare alle istruzioni che seguono,
e scrivendo nel caso in cui sia necessario,
una lista di ar... |
import("stdfaust.lib");
osc1(frequency, amplitude) = fasore_out
with{
decimale(step)= step-int(step);
fasore = (frequency/ma.SR) : (+ : decimale) ~ _;
riscalamento_fasi = fasore-0.5;
fasore_out = amplitude * riscalamento_fasi;
};
process = osc1(200, 1.), osc1(301, 1.);
|
fa2b0f75d5213e6601d36d0c43c3b3907ff141f3297fb34a7913ee75e84d49fa | LucaSpanedda/RITI-Room-Is-The-Instrument | limiters.dsp | // Faust standard libraries
import("stdfaust.lib");
//------------------------------------------------------------------ FILTERS ---
// Zavalishin Onepole TPT Filter
onePoleTPT(cf, x) = loop ~ _ : ! , si.bus(3) // Outs: lp , hp , ap
with {
g = tan(cf * ma.PI * ma.T);
G = g / (1.0 + g);
loop(s) = u... | https://raw.githubusercontent.com/LucaSpanedda/RITI-Room-Is-The-Instrument/dc7497f7621a32b070c9f983f75a120d486a5c46/Audio-Analysis/FAUST-SpectralModel/limiters.dsp | faust | Faust standard libraries
------------------------------------------------------------------ FILTERS ---
Zavalishin Onepole TPT Filter
Outs: lp , hp , ap
Lowpass TPT
Highpass TPT
---------------------------------------------------------------- FUNCTIONS ---
---------------------------------------------------... | import("stdfaust.lib");
with {
g = tan(cf * ma.PI * ma.T);
G = g / (1.0 + g);
loop(s) = u , lp , hp , ap
with {
v = (x - s) * G; u = v + lp; lp = v + s; hp = x - lp; ap = lp - hp;
};
};
LPTPT(cf, x) = onePoleTPT(cf, x) : (_ , ! , !);
HPTPT(cf, x) = onePoleTPT(cf, x) : (! , _ , !)... |
e49fb6ec47943148af53cbc16f1fb1be83c530ef271ec327af7ea69601b6c627 | LucaSpanedda/Guida_Primi_Codici_in_FAUST | 0.61_Oscillatori_Virtual_Analog.dsp | // OSCILLATORI VIRTUAL ANALOG
/* Come appurato, in FAUST è possibile elaborare
la forma d'onda di un segnale imponendo determinate
condizioni matematiche.
Proprio come nel mondo Elettrotecnico è quindi
possibile procedere alla creazione di Oscillatori
matematici, imponendo un determinato tipo di condizioni
di funzi... | https://raw.githubusercontent.com/LucaSpanedda/Guida_Primi_Codici_in_FAUST/558be7918684616389e600e3de019534c87588eb/0.61_Oscillatori_Virtual_Analog.dsp | faust | OSCILLATORI VIRTUAL ANALOG
Come appurato, in FAUST è possibile elaborare
la forma d'onda di un segnale imponendo determinate
condizioni matematiche.
Proprio come nel mondo Elettrotecnico è quindi
possibile procedere alla creazione di Oscillatori
matematici, imponendo un determinato tipo di condizioni
di funzioname... |
import("stdfaust.lib");
decimale(x) = x-int(x);
phase(f) = f/ma.SR : (+ : decimale) ~ _;
scale_phasortr(f) = phase(f) - 0.5;
negative_parttr(f) = (scale_phasortr(f) < 0) * scale_phasortr(f);
positive_parttr(f) = (scale_phasortr(f) > 0) * scale_phasortr(f);
transposed_positivetr(f) = positive_parttr(f) * -1;
full_tr... |
35a36e29aab4f53a0edf9840507ccf052b78f6b39fa436473a4abea84a501e23 | LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis | Granulator.dsp | // import faust standard library
import("stdfaust.lib");
// hard-coded: change this to match your samplerate
SampleRate = 44100;
//------------------------------------------------ GRANULAR SAMPLING --
grain(L, position, duration, x, trigger) = hann(phase) *
buffer(readPtr, x)
with ... | https://raw.githubusercontent.com/LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis/b73b60d9e0b45e09bbf72b1477c21202b895f1bb/ITA/codes/Granulator.dsp | faust | import faust standard library
hard-coded: change this to match your samplerate
------------------------------------------------ GRANULAR SAMPLING --
works for N >= 2
in the full system this this is the granular sampling function | import("stdfaust.lib");
SampleRate = 44100;
grain(L, position, duration, x, trigger) = hann(phase) *
buffer(readPtr, x)
with {
maxLength = L * SampleRate;
length = L * SampleRate;
hann(ph) = sin(ma.PI * ph) ^ 2.0;
lineSegment = loop ~ si.bus(2) : _ , ! , _
... |
cbd91ed72e76c9279ddf329bc06ce393a96482dfa5e070580fbd4119218ddc2a | LucaSpanedda/RITI-Room-Is-The-Instrument | autolorenz2.dsp | // Faust standard libraries
import("stdfaust.lib");
Ktf = ( hslider("Tangent", 1, 1, 100, .001) ) : si.smoo;
Fbf = ( hslider("Feedback", 1, -1, 1, .001) + 1)/2 : si.smoo;
// INSTRUMENT SPECTRE --------------------------------------
// Import lists: Frequencies, Amps, Bandwidth
spectrefreq = component("frequencies.ds... | https://raw.githubusercontent.com/LucaSpanedda/RITI-Room-Is-The-Instrument/dc7497f7621a32b070c9f983f75a120d486a5c46/Audio-Analysis/FAUST-SpectralModel/autolorenz2.dsp | faust | Faust standard libraries
INSTRUMENT SPECTRE --------------------------------------
Import lists: Frequencies, Amps, Bandwidth
index of the lists
process = Flist(11), Flist(11), BWlist(11);
BP FILTER ----------------------------------------------
optimized BP from the TPT version of the SVF Filter by Vadim Zaval... | import("stdfaust.lib");
Ktf = ( hslider("Tangent", 1, 1, 100, .001) ) : si.smoo;
Fbf = ( hslider("Feedback", 1, -1, 1, .001) + 1)/2 : si.smoo;
spectrefreq = component("frequencies.dsp").frequencieslist;
spectreamps = component("amplitudes.dsp").amplitudeslist;
spectreband = component("bandwidths.dsp").bandwidthslist... |
f40117f0f81761b5f094f24b365c30727886ea8846ac9ba38782e76663e29034 | LucaSpanedda/Guida_Primi_Codici_in_FAUST | 0.01_Funzione.dsp | // FUNZIONE
/* FAUST (Functional AUdio STream) è un linguaggio di programmazione
puramente funzionale di dominio specifico per l'implementazione
di algoritmi di elaborazione del segnale sotto forma di librerie,
plug-in audio o applicazioni standalone. Un programma FAUST
denota un processore di segnale: una funzion... | https://raw.githubusercontent.com/LucaSpanedda/Guida_Primi_Codici_in_FAUST/a852872573158e0c2d48003274317113678e167d/0.01_Funzione.dsp | faust | FUNZIONE
FAUST (Functional AUdio STream) è un linguaggio di programmazione
puramente funzionale di dominio specifico per l'implementazione
di algoritmi di elaborazione del segnale sotto forma di librerie,
plug-in audio o applicazioni standalone. Un programma FAUST
denota un processore di segnale: una funzione mat... |
import("stdfaust.lib");
process = no.noise;
|
75e71dbbe5053d82e81bb85817ee32cbea09616632746e809832c3e43dbf303d | LucaSpanedda/RITI-Room-Is-The-Instrument | spectral_modeling_synthesis.dsp | // Faust standard libraries
import("stdfaust.lib");
// Import lists: Frequencies, Amps, Bandwidth
import("chunk1ch1D2_Cello.lib");
import("chunk2ch1D2_Cello.lib");
import("chunk3ch1D2_Cello.lib");
import("chunk4ch1D2_Cello.lib");
// import list example:
// chunk_1_ch1_D2_Cello_frequencies
// chunk_2_ch1_D2_Cello_amplit... | https://raw.githubusercontent.com/LucaSpanedda/RITI-Room-Is-The-Instrument/690a472535c921d55f104fb83a849a675a63dc49/Audio-Analysis/Lists/spectral_modeling_synthesis.dsp | faust | Faust standard libraries
Import lists: Frequencies, Amps, Bandwidth
import list example:
chunk_1_ch1_D2_Cello_frequencies
chunk_2_ch1_D2_Cello_amplitudes
chunk_4_ch1_D2_Cello_bandwidths
Spectral Modeling Synthesis
https://en.wikipedia.org/wiki/Spectral_modeling_synthesis
INSTRUMENT SPECTRE --------------------... | import("stdfaust.lib");
import("chunk1ch1D2_Cello.lib");
import("chunk2ch1D2_Cello.lib");
import("chunk3ch1D2_Cello.lib");
import("chunk4ch1D2_Cello.lib");
Flist(index) = ba.take(index, chunk_1_ch1_D2_Cello_frequencies) * 1 ;
Alist(index) = ba.take(index, chunk_1_ch1_D2_Cello_amplitudes) * 1 ;
BWlist(index) = ba.ta... |
fcd54733ed79acb3271f2161df880414eead57475e52eab0bbee6e0429467c6e | LucaSpanedda/Sound_reading_and_writing_techniques_in_Faust | 2.01_Realtime_Granulator_PDB.dsp | // ---------------------------------------------------------------------------------
declare name "PDB_Realtime_Granulator";
declare version "1.0";
declare author "Luca Spanedda";
declare reference "http://www.granularsynthesis.com/guide.php";
/*
RTSG - REAL TIME SYNCHRONOUS GRANULATOR with COUNTER:
... | https://raw.githubusercontent.com/LucaSpanedda/Sound_reading_and_writing_techniques_in_Faust/bb01eff05a51424c16420a00b383441d8973d85e/0_work-in-progress/2.01_Realtime_Granulator_PDB.dsp | faust | ---------------------------------------------------------------------------------
RTSG - REAL TIME SYNCHRONOUS GRANULATOR with COUNTER:
100 to 100^-1000 Milliseconds grains - with Envelope window shape control.
PDB - ON PARALLEL FIXED TABLES OF 1 SECOND (TAPES): Parallel Data Buffers.
import Standard Faust library
... | declare name "PDB_Realtime_Granulator";
declare version "1.0";
declare author "Luca Spanedda";
declare reference "http://www.granularsynthesis.com/guide.php";
import("stdfaust.lib");
graininstances = 80;
ampguiin = hslider("[3] Grains Amp In",1,0,10,0.01) : si.smoo;
windowgui = hslider("[5] Grai... |
6ac877d667f4ed7bf68c1bbc7031f2ac733a95d8ceb74f8c0140d29ddd9db2c3 | LucaSpanedda/Guida_Primi_Codici_in_FAUST | 0.51_Sintesi_Additiva_Onde_Elementari.dsp | // SINTESI ADDITIVA FORME D'ONDA ELEMENTARI
// Importo la libreria
import("stdfaust.lib");
//dichiaro 2PI
due_pigreco = 6.2831853071795;
// Generazione oscillatore sinusoidale:
// creo una funzione che sottragga i numeri interi lasciando i decimali
decimale(x) = x-int(x);
// uso un argomento alla funzione per stabili... | https://raw.githubusercontent.com/LucaSpanedda/Guida_Primi_Codici_in_FAUST/3acb04097b6b5eca2c16cced17ce0de6d3c5da44/0.51_Sintesi_Additiva_Onde_Elementari.dsp | faust | SINTESI ADDITIVA FORME D'ONDA ELEMENTARI
Importo la libreria
dichiaro 2PI
Generazione oscillatore sinusoidale:
creo una funzione che sottragga i numeri interi lasciando i decimali
uso un argomento alla funzione per stabilire la frequenza nel process
e uso un secondo argomento per stabilire l'ampiezza
e creo la f... |
import("stdfaust.lib");
due_pigreco = 6.2831853071795;
decimale(x) = x-int(x);
osc(frequenza, ampiezza) = sin((frequenza/ma.SR : (+ : decimale) ~ _ )
*due_pigreco) *ampiezza;
f = 200;
a = 0.5;
sine =
osc(f,a);
square =
osc(f,a) +
osc(f*3,a/3) +
... |
19a2aa215432ec8d8dbea100a4831d8c8f43212c97405da1c3f2da8ccafd9bc2 | LucaSpanedda/RITI-Room-Is-The-Instrument | RITILorenzNetwork.dsp | // import faust standard library
import("stdfaust.lib");
// import audible ecosystemics objects library
import("ritilib.lib");
// Import lists: Frequencies, Amps, Bandwidth
import("Cello_D2.lib");
// SYSTEM VARIABLES ----------------------------------------
SystemSpaceVar = meterstoSamps(10);
FilterOrder = ... | https://raw.githubusercontent.com/LucaSpanedda/RITI-Room-Is-The-Instrument/8c49f5b5ea699577e5c0b50a92b680b0173aaea9/Code_Drafts/RITILorenzNetwork.dsp | faust | import faust standard library
import audible ecosystemics objects library
Import lists: Frequencies, Amps, Bandwidth
SYSTEM VARIABLES ----------------------------------------
Filterbanks Controls
Spectre BP Filter Banks
| import("stdfaust.lib");
import("ritilib.lib");
import("Cello_D2.lib");
SystemSpaceVar = meterstoSamps(10);
FilterOrder = 1;
FilterPartials = 32;
Voices = 4;
NonLFreq = hslider("Nonlinearities Frequency", .1, 0., 1, .001) : si.smoo;
NonLAmps = hslider("Nonlinearities Amplitude", 0., 0., 1, .001) : si.smoo;... |
28a211c2dc2d9c55daa7f8f2a3d6608911851cfdd4f842f51a4ff450d7511869 | LucaSpanedda/RITI-Room-Is-The-Instrument | RITILorenz.dsp | // import faust standard library
import("stdfaust.lib");
// import audible ecosystemics objects library
import("ritilib.lib");
// Import lists: Frequencies, Amps, Bandwidth
import("Cello_D2.lib");
// INSTRUMENT SPECTRES --------------------------------------
// index of the lists
// FlistCH1(index) = ba.take(index, ... | https://raw.githubusercontent.com/LucaSpanedda/RITI-Room-Is-The-Instrument/8c49f5b5ea699577e5c0b50a92b680b0173aaea9/Code_Drafts/RITILorenz.dsp | faust | import faust standard library
import audible ecosystemics objects library
Import lists: Frequencies, Amps, Bandwidth
INSTRUMENT SPECTRES --------------------------------------
index of the lists
FlistCH1(index) = ba.take(index, Cello1_D2_frequencies) * FREQUENCYf ;
AlistCH1(index) = ba.take(index, Cello1_D2_ampl... | import("stdfaust.lib");
import("ritilib.lib");
import("Cello_D2.lib");
TANHf = ( hslider("TANH", 1, 1, 100, .001) ) : si.smoo;
FBf = 2 ^ hslider("EQ FEEDBACK", 0, -1, 1, .001) : si.smoo;
DTf = ( hslider("DT", 0.62, 0, 10, .001)) : si.smoo;
SIGMAf = ( hslider("SIGMA", 8.2, 0, 100, .001)) : si.smoo;
RHOf = ( hslid... |
fa31628052de2c1a45f2d9eef86f6bb23e78344c4f1c3712584e6be1cd401888 | LucaSpanedda/Sound_reading_and_writing_techniques_in_Faust | GranularSampling_Audible_Ecosystemics_2.dsp | import("stdfaust.lib");
/*
Granular Sampling -
version with - Overlap Add To One - Granulator
for:
Agostino Di Scipio - AUDIBLE ECOSYSTEMICS
n.2a / Feedback Study (2003)
n.2b / Feedback Study, sound installation (2004).
*/
/*
Author NOTES in the Score.
page 5:
- granular sampling =
read sample sequences off su... | https://raw.githubusercontent.com/LucaSpanedda/Sound_reading_and_writing_techniques_in_Faust/bb01eff05a51424c16420a00b383441d8973d85e/0_work-in-progress/GranularSampling_Audible_Ecosystemics_2.dsp | faust |
Granular Sampling -
version with - Overlap Add To One - Granulator
for:
Agostino Di Scipio - AUDIBLE ECOSYSTEMICS
n.2a / Feedback Study (2003)
n.2b / Feedback Study, sound installation (2004).
Author NOTES in the Score.
page 5:
- granular sampling =
read sample sequences off subsequent buffer memory chunks,
... | import("stdfaust.lib");
var1 = 3;
GUItimeIndex1 = ((hslider("[2]mem.pointer", 0, -1, 1, .001)+1)/2) : si.smoo;
GUIgraindurjitter = ((hslider("[1]grain.dur.jitter", -1, -1, 1, .001)+1)/2) : si.smoo;
GUIjitter = (hslider("[3]mem.pointer.jitter", 0, 0, 100, .001)+1) : si.smoo;
GUIfixedGrainMS = hslider("[0]grain.dur... |
1978540f44709d7c62aa47c634af516ca5c7b4b8340b53e3af9f89521780fea3 | LucaSpanedda/Audible-Ecosystemics-2 | Spectral_Centroid_Mic_Test.dsp | // import faust standard library
import("stdfaust.lib");
SpectralCentroid = tgroup("Spectral Centroid Test",
par(i, 8, _ <:
vgroup("Mic %i[2]",
((HP3(nentry("Frequency", 1, 1, 20000, 1)) :
an.rms_envelope_rect(.5)) <:
attach(_, abs : ba.linear2db : hbargra... | https://raw.githubusercontent.com/LucaSpanedda/Audible-Ecosystemics-2/c4be0f10b765b5466fe87fbe42afaab5cfd37793/Electroacoustic_chain_environmental_tests/Spectral_Centroid_Mic_Test.dsp | faust | import faust standard library
choose the output from the SVF Filter (ex. bshelf)
Butterworth
Filters Order Butterworth
Filters Order in series
LP1(CF, x) = x : LPTPT(CF);
HP1(CF, x) = x : HPTPT(CF);
LP2(CF, x) = x : LPTPT(CF) : LPTPT(CF);
HP2(CF, x) = x : HPTPT(CF) : HPTPT(CF);
LP3(CF, x) = x : LPTPT(CF) : LP... | import("stdfaust.lib");
SpectralCentroid = tgroup("Spectral Centroid Test",
par(i, 8, _ <:
vgroup("Mic %i[2]",
((HP3(nentry("Frequency", 1, 1, 20000, 1)) :
an.rms_envelope_rect(.5)) <:
attach(_, abs : ba.linear2db : hbargraph("HP",-80,20))),
((... |
adc9010303f1ae3baee626e2db1df8e94e7eaea8eadc2a7391f8744faf24cf83 | LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis | soloLAR_Audible_Ecosystemics_2.dsp | // import faust standard library
import("stdfaust.lib");
LARmechanismAE2(mic1, mic2) = sig1, sig2
with{
Mic_1B_1 = hgroup("Mixer", hgroup("Signal Flow 1B",
gainMic_1B_1(mic1)));
Mic_1B_2 = hgroup("Mixer", hgroup("Signal Flow 1B",
gainMic_1B_2(mic2)));
... | https://raw.githubusercontent.com/LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis/b73b60d9e0b45e09bbf72b1477c21202b895f1bb/ITA/codes/soloLAR_Audible_Ecosystemics_2.dsp | faust | import faust standard library
cntrlMic - original version
from Signal Flow 2a
in the full system this this is a secondary counterbalance
------- ------------- ----- -----------
-- LIBRARY ----------------------------------------------------------
------- --------
selected objects from "aelibrary.lib"
-------------... | import("stdfaust.lib");
LARmechanismAE2(mic1, mic2) = sig1, sig2
with{
Mic_1B_1 = hgroup("Mixer", hgroup("Signal Flow 1B",
gainMic_1B_1(mic1)));
Mic_1B_2 = hgroup("Mixer", hgroup("Signal Flow 1B",
gainMic_1B_2(mic2)));
cntrlMic(x) = x : HP1(50) : L... |
e5b5b9ad1455eb02d7d45308ccae3b5481ba07d86ab216f9650aa41c89ad6676 | LucaSpanedda/RITI-Room-Is-The-Instrument | RITIinterpolatedLorenz.dsp | // import faust standard library
import("stdfaust.lib");
// import audible ecosystemics objects library
import("ritilib.lib");
// Import lists: Frequencies, Amps, Bandwidth
import("Cello_D2.lib");
// INSTRUMENT SPECTRES --------------------------------------
// index of the lists
FlistCH1(index) = ba.take(index, Cel... | https://raw.githubusercontent.com/LucaSpanedda/RITI-Room-Is-The-Instrument/8c49f5b5ea699577e5c0b50a92b680b0173aaea9/Code_Drafts/RITIinterpolatedLorenz.dsp | faust | import faust standard library
import audible ecosystemics objects library
Import lists: Frequencies, Amps, Bandwidth
INSTRUMENT SPECTRES --------------------------------------
index of the lists
sliders for control the system
process = BANDWIDTHf;
BP FILTER ----------------------------------------------
optimi... | import("stdfaust.lib");
import("ritilib.lib");
import("Cello_D2.lib");
FlistCH1(index) = ba.take(index, Cello1_D2_frequencies) * FREQUENCYf ;
AlistCH1(index) = ba.take(index, Cello1_D2_amplitudes) * 1 ;
QlistCH1(index) = ba.take(1, Cello1_D2_bandwidths) * BANDWIDTHf ;
FlistCH2(index) = ba.take(index, Cello2_D... |
62182de8720209f9b88a7fe234a854b9f5ec24bbe8d4cfac1e4ef05f10d6a111 | LucaSpanedda/RITI-Room-Is-The-Instrument | RITI_AutonomousNetwork_fixedVersion.dsp | // import faust standard library
import("stdfaust.lib");
// import RITI objects library
import("RITI.lib");
// SYSTEM INTERFACE ----------------------------------------
TGroup(x) = tgroup("Main", x);
MixerGroup(x) = hgroup("Mixer", x);
FiltersGroup(x) = hgroup("Bandpass Filters Bank", x);
... | https://raw.githubusercontent.com/LucaSpanedda/RITI-Room-Is-The-Instrument/7ea34afa403eb7c7a70f0b23c6425964e0689e7d/Compiled_15-2-2023_RITI_AutonomousNetwork_fixedVersion/RITI_AutonomousNetwork_fixedVersion.dsp | faust | import faust standard library
import RITI objects library
SYSTEM INTERFACE ----------------------------------------
SYSTEM VARIABLES ----------------------------------------
MODIFIED LORENZ SYSTEM ----------------------------------------
GLOBAL SYSTEM NETWORK ----------------------------------------
| import("stdfaust.lib");
import("RITI.lib");
TGroup(x) = tgroup("Main", x);
MixerGroup(x) = hgroup("Mixer", x);
FiltersGroup(x) = hgroup("Bandpass Filters Bank", x);
TFreqsGroup(x) = tgroup("Bank Voices", x);
FreqsGroup(i, x) = hgroup("Voice_%i", x);
FDNGroup(x) = h... |
fbb1377cd7ab3b7f9b3b066d0d97f4e2bac08c5ec71fb1d45b9ba078be92be50 | LucaSpanedda/Riverberazione_Digitale_in_FAUST | 0.22_FBCombTPT.dsp | // import Standard Faust library
// https://github.com/grame-cncm/faustlibraries/
import("stdfaust.lib");
// TPT version of the FBComb Filter
// reference : (by Will Pirkle)
// http://www.willpirkle.com/Downloads/AN-4VirtualAnalogFilters.2.0.pdf
// Feedback Comb Filter. FBComb(Del,G,signal)
// Del=delay time in samp... | https://raw.githubusercontent.com/LucaSpanedda/Riverberazione_Digitale_in_FAUST/5b0d8fdd01d355676ef017cd351e0e89f22d7387/0.22_FBCombTPT.dsp | faust | import Standard Faust library
https://github.com/grame-cncm/faustlibraries/
TPT version of the FBComb Filter
reference : (by Will Pirkle)
http://www.willpirkle.com/Downloads/AN-4VirtualAnalogFilters.2.0.pdf
Feedback Comb Filter. FBComb(Del,G,signal)
Del=delay time in samples, G=feedback gain 0-1 | import("stdfaust.lib");
FBCombTPT(Del,G,x) = FBcircuit ~ _
with {
FBcircuit(y) = x+y@(Del-1)*G;
};
process = FBCombTPT(1000,0.998);
|
d2327795147e515ea660036e7322d2612966ff03b75942b80dfcf7d97122d72f | LucaSpanedda/Riverberazione_Digitale_in_FAUST | 0.12_OnepoleTPT.dsp | // import Standard Faust library
// https://github.com/grame-cncm/faustlibraries/
import("stdfaust.lib");
// One-Pole filter function. OnepoleTPT(CF) = Frequency Cut in HZ
// TPT version of the One-Pole Filter by Vadim Zavalishin
// reference : (by Will Pirkle)
// http://www.willpirkle.com/Downloads/AN-4VirtualAnalogF... | https://raw.githubusercontent.com/LucaSpanedda/Riverberazione_Digitale_in_FAUST/5b0d8fdd01d355676ef017cd351e0e89f22d7387/0.12_OnepoleTPT.dsp | faust | import Standard Faust library
https://github.com/grame-cncm/faustlibraries/
One-Pole filter function. OnepoleTPT(CF) = Frequency Cut in HZ
TPT version of the One-Pole Filter by Vadim Zavalishin
reference : (by Will Pirkle)
http://www.willpirkle.com/Downloads/AN-4VirtualAnalogFilters.2.0.pdf
out | import("stdfaust.lib");
OnepoleTPT(CF,x) = circuit ~ _ : ! , _
with {
g = tan(CF * ma.PI / ma.SR);
G = g / (1.0 + g);
circuit(sig) = u , lp
with {
v = (x - sig) * G;
u = v + lp;
lp = v + sig;
};
};
process = Onepol... |
78e590344d0ce33123a34e02b9bdc75eb3b81bc5a76a403087390ed82186a270 | LucaSpanedda/Riverberazione_Digitale_in_FAUST | 1.30_Riverbero_Allpass_Loop_di_Keith_Barr.dsp | import("stdfaust.lib");
// Keith Barr Allpass Loop Reverb
apf(delaysamples) = ap
with{
ap =
(+ : _ <: @(delaysamples-1), *(0.5)) ~
*(-0.5) : mem, _ : + : _;
};
// tempo decadimento
krt = 0.9;
lrtap(dl,dr) = _@(dr) <: _,_,_;
//process = lrtap(7,14);
... | https://raw.githubusercontent.com/LucaSpanedda/Riverberazione_Digitale_in_FAUST/f40fe0b4a2555671fe45ba122264b1053c4de6da/1.30_Riverbero_Allpass_Loop_di_Keith_Barr.dsp | faust | Keith Barr Allpass Loop Reverb
tempo decadimento
process = lrtap(7,14);
section 1
process = sect1~_;
process = (sect1 : sect2)~_;
process = (sect1 : sect2 : sect3)~_;
| import("stdfaust.lib");
apf(delaysamples) = ap
with{
ap =
(+ : _ <: @(delaysamples-1), *(0.5)) ~
*(-0.5) : mem, _ : + : _;
};
krt = 0.9;
lrtap(dl,dr) = _@(dr) <: _,_,_;
sect1(x,y) = x+y : apf(4801) : apf(2903) : lrtap(593,659) : *(krt),y,_,_;
rout... |
072ecde73d1110b1a58beb7f91d031ee106b56cf19e033fe967acb80d01bef01 | LucaSpanedda/Riverberazione_Digitale_in_FAUST | 0.26_LFBCombTPT.dsp | // import Standard Faust library
// https://github.com/grame-cncm/faustlibraries/
import("stdfaust.lib");
// TPT version of the Lowpass Feedback Comb Filter. FBComb(Del,G,signal)
// Del=delay time in samples, G=feedback gain 0-1
// TPT version of the One-Pole Filter by Vadim Zavalishin
// reference : (by Will Pirkle... | https://raw.githubusercontent.com/LucaSpanedda/Riverberazione_Digitale_in_FAUST/5b0d8fdd01d355676ef017cd351e0e89f22d7387/0.26_LFBCombTPT.dsp | faust | import Standard Faust library
https://github.com/grame-cncm/faustlibraries/
TPT version of the Lowpass Feedback Comb Filter. FBComb(Del,G,signal)
Del=delay time in samples, G=feedback gain 0-1
TPT version of the One-Pole Filter by Vadim Zavalishin
reference : (by Will Pirkle)
http://www.willpirkle.com/Downloads... | import("stdfaust.lib");
LFBCombTPT(Del,G,CF) = LFBCcircuit ~ _
with{
LFBCcircuit(y,z) = z+(LowpassTPT(y)@(Del-1))*G
with{
LowpassTPT(x) = (lowpasscircuit ~ _ : ! , _)
with{
g = tan(CF * ma.PI / ma.SR);
G = g /... |
cefc00ba311aa232b7e3a7468aa4fa04f4f8b4d1030bac29616072255b6cf624 | LucaSpanedda/Sound_reading_and_writing_techniques_in_Faust | 1.00_Table_Lookup_Reading.dsp | // import Standard Faust library
// https://github.com/grame-cncm/faustlibraries/
import("stdfaust.lib");
// MAIN FUNCTION (OUT)
process =
// DEFINITION OF THE TABLE: SAMPLE DATA
waveform
{0.00000,0.02000,0.03986,0.05264,0.06458,
0.07510,0.08310,0.08978,0.09360,0.09607,
0.09613,0.09332,0.08936,0.08344,0... | https://raw.githubusercontent.com/LucaSpanedda/Sound_reading_and_writing_techniques_in_Faust/bb01eff05a51424c16420a00b383441d8973d85e/0_work-in-progress/1.00_Table_Lookup_Reading.dsp | faust | import Standard Faust library
https://github.com/grame-cncm/faustlibraries/
MAIN FUNCTION (OUT)
DEFINITION OF THE TABLE: SAMPLE DATA
COUNTER of the LOOKUP TABLE
READTABLE
| import("stdfaust.lib");
process =
waveform
{0.00000,0.02000,0.03986,0.05264,0.06458,
0.07510,0.08310,0.08978,0.09360,0.09607,
0.09613,0.09332,0.08936,0.08344,0.07614,
0.06784,0.05826,0.04871,0.03906,0.03146,
0.02536,0.02045,0.01755,0.01477,0.01282,
0.01312,0.01593,0.01859,0.02176,0.02484,
0.02734,0.03018... |
aa8bdf5052807974abde3058218f4b6dd678d90e63990a4f133c5f3769c92eab | LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis | RITI_AutonomousNetwork_fixedVersion.dsp | // import faust standard library
import("stdfaust.lib");
// import RITI objects library
import("RITI.lib");
// SYSTEM VARIABLES ----------------------------------------
DelSecondsMax = 12;
SystemSpaceVarOUT = 2.8713;
SystemSpaceVarIN = 2.3132;
BPFOrder = 1;
BPFilters = 32;
NetworkVoices = 4;
InitDCBlock... | https://raw.githubusercontent.com/LucaSpanedda/Luca_Spanedda_St_Cecilia_Conservatory_Thesis/b73b60d9e0b45e09bbf72b1477c21202b895f1bb/ITA/codes/RITI_AutonomousNetwork_fixedVersion.dsp | faust | import faust standard library
import RITI objects library
SYSTEM VARIABLES ----------------------------------------
SYSTEM CONTROLS ----------------------------------------
MODIFIED LORENZ SYSTEM ----------------------------------------
GLOBAL SYSTEM NETWORK ----------------------------------------
| import("stdfaust.lib");
import("RITI.lib");
DelSecondsMax = 12;
SystemSpaceVarOUT = 2.8713;
SystemSpaceVarIN = 2.3132;
BPFOrder = 1;
BPFilters = 32;
NetworkVoices = 4;
InitDCBlockzero = 1;
InitDCBlockpole = 0.995;
InitX0 = 1.2;
InitY0 = 1.3;
InitZ0 = 1.6;
RoomInterfaceNetwork(Mic1, Mic2, Mic3, Mic4)... |
f443e470468e12333b917083fe92380fd0db434a2a2eaa47a5a6c46de4f02652 | LucaSpanedda/RITI-Room-Is-The-Instrument | RITI_AutonomousNetwork_fixedVersion.dsp | // import faust standard library
import("stdfaust.lib");
// import RITI objects library
import("RITI.lib");
// SYSTEM INTERFACE ----------------------------------------
TGroup(x) = tgroup("Main", x);
MixerGroup(x) = hgroup("Mixer", x);
FiltersGroup(x) = hgroup("Bandpass Filters Bank", x);
... | https://raw.githubusercontent.com/LucaSpanedda/RITI-Room-Is-The-Instrument/d8014a009772cb1a5a8580dcf5bd8e24bf65a11e/RITI_v1_CelloResponse/RITI_v1_CelloA3/RITI_AutonomousNetwork_fixedVersion.dsp | faust | import faust standard library
import RITI objects library
SYSTEM INTERFACE ----------------------------------------
SYSTEM VARIABLES ----------------------------------------
MODIFIED LORENZ SYSTEM ----------------------------------------
GLOBAL SYSTEM NETWORK ----------------------------------------
| import("stdfaust.lib");
import("RITI.lib");
TGroup(x) = tgroup("Main", x);
MixerGroup(x) = hgroup("Mixer", x);
FiltersGroup(x) = hgroup("Bandpass Filters Bank", x);
TFreqsGroup(x) = tgroup("Bank Voices", x);
FreqsGroup(i, x) = hgroup("Voice_%i", x);
FDNGroup(x) = h... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.