_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 |
|---|---|---|---|---|---|---|---|
44e32c216c0072f1cfcad44282f0d82b8e2f3b574fce5033936870bcdf1e1bb3 | anwaldt/sound_synthesis_faust | exponential.dsp | // exponential.dsp
//
// Additive synthesizer with controllable
// exponential spectral decay.
//
// - continuous
// - stereo output
//
// Henrik von Coler
// 2020-05-05
import("stdfaust.lib");
// define a fundamental frequency
f0 = 100;
// define the number of partials
n_partial = 50;
slope = hslider("s", ... | https://raw.githubusercontent.com/anwaldt/sound_synthesis_faust/05d4f55b2d064f63cfc0c04403c9f9cb688ba023/faust/Additive/exponential/exponential.dsp | faust | exponential.dsp
Additive synthesizer with controllable
exponential spectral decay.
- continuous
- stereo output
Henrik von Coler
2020-05-05
define a fundamental frequency
define the number of partials
partial function
arguments
the processing function,
running 50 partials parallel
summing them up an... |
import("stdfaust.lib");
f0 = 100;
n_partial = 50;
slope = hslider("s", 1, 0.1, 7, 0.01);
partial(partCNT,s) = os.oscrs(f) * volume
with {
f = f0 * (partCNT+1);
volume = 0.3 * exp(s * -partCNT);
};
process = par(i, n_partial, partial(i,slope)) :>_ * hslider("Master Gain",0,0,1, 0.1)... |
57827a6cccaefd9003998e5d1a483430a0603cdbb13bf48f1f8cf9e9c2d3e6a7 | anwaldt/sound_synthesis_faust | granular_synth.dsp | ///////////////////////////////////////////////////////////////////////////////////////////////////
//
// Grain Generator.
// Another granular synthesis example.
// This one is not finished, but ready for more features and improvements...
//
//////////////////////////////////////////////////////////////////////////////... | https://raw.githubusercontent.com/anwaldt/sound_synthesis_faust/05d4f55b2d064f63cfc0c04403c9f9cb688ba023/faust/Granular/granular_synth.dsp | faust | /////////////////////////////////////////////////////////////////////////////////////////////////
Grain Generator.
Another granular synthesis example.
This one is not finished, but ready for more features and improvements...
//////////////////////////////////////////////////////////////////////////////////////////... |
import("all.lib");
s = soundfile("label[url:{'kick.wav'; 'cowbell.wav'; 'my_model.wav'}]", 1);
sample = so.sound(s, 2);
speed = hslider("speed", 1, 0.125, 4, 0.001);
feedback = hslider("feedback",0,0,2,0.001);
freq = 1000/taille;
tmpTaille = taille*ma.SR/ 1000;
detect1(x) = select2 (x < 10, 0, 1);
detect2(x) ... |
24edf2318281d3940753208055b62fd15586ac4da3821c6d8b8b8fe1354952bf | anwaldt/sound_synthesis_faust | waveguide_string.dsp | // waveguide_string.dsp
//
// waveguide model of a string
//
// - one-pole lowpass termination
//
// Henrik von Coler
// 2020-06-09
import("all.lib");
// use '(pm.)l2s' to calculate number of samples
// from length in meters:
segment(maxLength,length) = waveguide(nMax,n)
with{
nMax = maxLength : l2s;
n = l... | https://raw.githubusercontent.com/anwaldt/sound_synthesis_faust/05d4f55b2d064f63cfc0c04403c9f9cb688ba023/faust/Physical/waveguide/waveguide_string.dsp | faust | waveguide_string.dsp
waveguide model of a string
- one-pole lowpass termination
Henrik von Coler
2020-06-09
use '(pm.)l2s' to calculate number of samples
from length in meters:
one lowpass terminator
one gain terminator with control
waveguide chain |
import("all.lib");
segment(maxLength,length) = waveguide(nMax,n)
with{
nMax = maxLength : l2s;
n = length : l2s/2;
};
fc = hslider("lowpass",1000,10,10000,1);
rt = rTermination(basicBlock,*(-1) : si.smooth(1.0-2*(fc/ma.SR)));
gain = hslider("gain",0.99,0,1,0.01);
lt = lTermination(*(-1)* gain,basicBlock... |
1a6410c6627b6d80dff24a7113ca5322e05baef62c1f7f8bab9719835971f0c4 | anwaldt/sound_synthesis_faust | sample_trigger.dsp | // sample_trigger.dsp
//
// Read files and make them playable with a trigger.
//
// - makes use of the
//
// Henrik von Coler
// 2020-05-28
import("stdfaust.lib");
// read a set of wav files
s = soundfile("label[url:{'../WAV/kick.wav'; '../WAV/cowbell.wav'; '../WAV/my_model.wav'}]", 1);
// a slider for controlling ... | https://raw.githubusercontent.com/anwaldt/sound_synthesis_faust/05d4f55b2d064f63cfc0c04403c9f9cb688ba023/faust/Sampling/sample_trigger.dsp | faust | sample_trigger.dsp
Read files and make them playable with a trigger.
- makes use of the
Henrik von Coler
2020-05-28
read a set of wav files
a slider for controlling the level of all samples:
sample objects |
import("stdfaust.lib");
s = soundfile("label[url:{'../WAV/kick.wav'; '../WAV/cowbell.wav'; '../WAV/my_model.wav'}]", 1);
level = hslider("level",1,0,2,0.01);
kick = so.sound(s, 0);
bell = so.sound(s, 1);
process = kick.play( level, button("kick") ), bell.play( level, button("bell")) :> _ <: _,_ ;
|
9bb06c491ddb400e4537bfd99b74d55b9147fccfc1ed3c1e083a1ee2b21c9d7c | anwaldt/sound_synthesis_faust | guitar.dsp | import("all.lib");
//process = nylonGuitar_ui_MIDI : _;
process = nylonGuitarModel(3,1,button("trigger")) : _; | https://raw.githubusercontent.com/anwaldt/sound_synthesis_faust/05d4f55b2d064f63cfc0c04403c9f9cb688ba023/faust/Physical/guitar/guitar.dsp | faust | process = nylonGuitar_ui_MIDI : _; | import("all.lib");
process = nylonGuitarModel(3,1,button("trigger")) : _; |
137c816f2a808dd98f639eba7791addbf67141e6008b6d7013f89a4ae9a84ca9 | anwaldt/sound_synthesis_faust | grain_player.dsp | // grain_player.dsp
//
// Play a wave file in grains.
//
// - four grains
// - glitches when changing grain position
//
// Henrik von Coler
// 2020-05-28
import("stdfaust.lib");
// read a set of wav files
s = soundfile("label[url:{'../WAV/chips.wav'; '../WAV/my_model.wav'; '../WAV/sine.wav'}]", 1);
// a slider fo... | https://raw.githubusercontent.com/anwaldt/sound_synthesis_faust/05d4f55b2d064f63cfc0c04403c9f9cb688ba023/faust/Granular/grain_player.dsp | faust | grain_player.dsp
Play a wave file in grains.
- four grains
- glitches when changing grain position
Henrik von Coler
2020-05-28
read a set of wav files
a slider for selecting a sound file:
a slider for controlling the playback speed of the grains:
start point for grain playback
a slider for the grain lengt... |
import("stdfaust.lib");
s = soundfile("label[url:{'../WAV/chips.wav'; '../WAV/my_model.wav'; '../WAV/sine.wav'}]", 1);
file_idx = hslider("file_idx",0,0,2,1);
speed = hslider("speed",1,-10,10,0.01);
start = hslider("start",0,0,1,0.01);
length = hslider("length",1000,1000,40000,1): si.smoo;
density = hslider... |
9766da149fa0fea837a59ec4b0859a369c068fdc382f11d32ada516dfe82ea82 | anwaldt/sound_synthesis_faust | switch_example.dsp | // switch_example.dsp
//
//
// Henrik von Coler
// 2020-05-28
import("all.lib");
// outputs 0 if x is greater 1
// and 1 if x is below 0
// 'l' is used as an implicit argument
sel(l,x) = select2((x>=0), 0, 1);
process = -0.1 : sel(2); | https://raw.githubusercontent.com/anwaldt/sound_synthesis_faust/05d4f55b2d064f63cfc0c04403c9f9cb688ba023/faust/Basics/switch_example.dsp | faust | switch_example.dsp
Henrik von Coler
2020-05-28
outputs 0 if x is greater 1
and 1 if x is below 0
'l' is used as an implicit argument |
import("all.lib");
sel(l,x) = select2((x>=0), 0, 1);
process = -0.1 : sel(2); |
4ff885223750b64302e35afe668b10dc86897fda50d919de5ff0fb65ae81e916 | anwaldt/sound_synthesis_faust | sample_looper.dsp | // sample_looper.dsp
//
// Read a set of samples from wav files
//
// - loop sample with slider for speed
// - select active sample
//
// Henrik von Coler
// 2020-05-28
import("stdfaust.lib");
// read a set of wav files
s = soundfile("label[url:{'../WAV/kick.wav'; '../WAV/cowbell.wav'; '../WAV/my_model.wav'}]", 1);
... | https://raw.githubusercontent.com/anwaldt/sound_synthesis_faust/05d4f55b2d064f63cfc0c04403c9f9cb688ba023/faust/Sampling/sample_looper.dsp | faust | sample_looper.dsp
Read a set of samples from wav files
- loop sample with slider for speed
- select active sample
Henrik von Coler
2020-05-28
read a set of wav files
a slider for selecting a sound file:
a slider for controlling the playback speed:
a logic for reverse loops (wrap to positive indices)
the l... |
import("stdfaust.lib");
s = soundfile("label[url:{'../WAV/kick.wav'; '../WAV/cowbell.wav'; '../WAV/my_model.wav'}]", 1);
file_idx = hslider("file_idx",0,0,2,1);
speed = hslider("speed",1,-100,100,0.01);
wrap(l,x) = select2((x>=0),l-abs(x),x);
loop(s, idx) = (idx, reader(s)) : outs(s)
with {
length(... |
ffe4be1f04017e0feb1c16c4b387f89d391558f4af5297c7b70acdbf02f40a93 | s-e-a-m/fc2003dsaae2 | signalflow1b.dsp | import("seam.lib");
//-----------------------signal flow 1b-----------------------
//Role of the signal flow block: generation of control signals based on mic1 and mic2 input, plus internal signal generators
//--------------------Four variables are to be initialized prior to performance:
//VAR1
//distance (in meters)... | https://raw.githubusercontent.com/s-e-a-m/fc2003dsaae2/139f19bbc245f6afe31d708d9731404c8fc2bd1e/src/signalflow1b.dsp | faust | -----------------------signal flow 1b-----------------------
Role of the signal flow block: generation of control signals based on mic1 and mic2 input, plus internal signal generators
--------------------Four variables are to be initialized prior to performance:
VAR1
distance (in meters) between the two farthest remove... | import("seam.lib");
var1 = 23;
var2 = 1000;
var3 = 0.2;
var4 = 11;
signal_flow_1b(
var1,
var3,
grainOut1,
grainOut2,
mic1,
mic2,
memWriteLev,
cntrlMain
) =
(
m... |
04da270d070426daf2dda48d32e58d606455bfd11e55bb9b89b78c1059044a33 | s-e-a-m/fc2003dsaae2 | signalflow3.dsp | import("seam.lib");
//-----------------------signal flow 3-----------------------
//Role of the signal flow block: dispatching of audio signals to output channels
//--------------------Four variables are to be initialized prior to performance:
//VAR1
//distance (in meters) between the two farthest removed loudspeaker... | https://raw.githubusercontent.com/s-e-a-m/fc2003dsaae2/139f19bbc245f6afe31d708d9731404c8fc2bd1e/src/signalflow3.dsp | faust | -----------------------signal flow 3-----------------------
Role of the signal flow block: dispatching of audio signals to output channels
--------------------Four variables are to be initialized prior to performance:
VAR1
distance (in meters) between the two farthest removed loudspeakers on the left-right axis.
VAR2
r... | import("seam.lib");
var1 = 23;
var2 = 1000;
var3 = 0.2;
var4 = 11;
signal_flow_3(var4) = _,_ <:
_,_,
de.delay(sds.delMax, (var4/2/344)),
de.delay(sds.delMax, (var4/2/344)),
de.delay(sds.delMax, (var4/344))... |
46ff8db03d68926a9a81f1313f1575801f3524ecc619d8bac961df926dbd98b6 | s-e-a-m/fc2003dsaae2 | signalflow2b.dsp | import("seam.lib");
//-----------------------signal flow 2b-----------------------
//Role of the signal flow block: signal processing of audio input from mic1 and mic2, and mixing of all audio signals
//--------------------Four variables are to be initialized prior to performance:
//VAR1
//distance (in meters) betwee... | https://raw.githubusercontent.com/s-e-a-m/fc2003dsaae2/139f19bbc245f6afe31d708d9731404c8fc2bd1e/src/signalflow2b.dsp | faust | -----------------------signal flow 2b-----------------------
Role of the signal flow block: signal processing of audio input from mic1 and mic2, and mixing of all audio signals
--------------------Four variables are to be initialized prior to performance:
VAR1
distance (in meters) between the two farthest removed louds... | import("seam.lib");
var1 = 23;
var2 = 1000;
var3 = 0.2;
var4 = 11;
signal_flow_2b(
var1,
sig1,
sig2,
sig3,
sig4,
sig5,
sig6,
sig7,
graIN,
timeIndex1,
timeIndex2,
... |
5b41c279b1ff1d115e6fae1d0d66596257a736a9a78b780872b79dac5807413c | s-e-a-m/fc2003dsaae2 | signalflow1a.dsp | import("seam.lib");
//-----------------------signal flow 1a-----------------------
//Role of the signal flow block: generation of control signals based on mic3 and mic4 input
//--------------------Four variables are to be initialized prior to performance:
//VAR1
//distance (in meters) between the two farthest remov... | https://raw.githubusercontent.com/s-e-a-m/fc2003dsaae2/139f19bbc245f6afe31d708d9731404c8fc2bd1e/src/signalflow1a.dsp | faust | -----------------------signal flow 1a-----------------------
Role of the signal flow block: generation of control signals based on mic3 and mic4 input
--------------------Four variables are to be initialized prior to performance:
VAR1
distance (in meters) between the two farthest removed loudspeakers on the left-right ... | import("seam.lib");
var1 = 23;
var2 = 1000;
var3 = 0.2;
var4 = 11;
signal_flow_1a(
var1,
var2,
mic3,
mic4
) =
(mic3, mic4 <:
+,(
_,_,(sds.integrator(0.01), sds.integrator(0.01) :
sds.de... |
5e5f387f333c9c3d8d19c5c5f876bd67a45bfdec9af3be09364bc75660777515 | s-e-a-m/fc2003dsaae2 | signalflow2a.dsp | import("seam.lib");
//-----------------------signal flow 2a-----------------------
//Role of the signal flow block: signal processing of audio input from mic1 and mic2, and mixing of all audio signals
//--------------------Four variables are to be initialized prior to performance:
//VAR1
//distance (in meters) betwee... | https://raw.githubusercontent.com/s-e-a-m/fc2003dsaae2/139f19bbc245f6afe31d708d9731404c8fc2bd1e/src/signalflow2a.dsp | faust | -----------------------signal flow 2a-----------------------
Role of the signal flow block: signal processing of audio input from mic1 and mic2, and mixing of all audio signals
--------------------Four variables are to be initialized prior to performance:
VAR1
distance (in meters) between the two farthest removed louds... | import("seam.lib");
var1 = 23;
var2 = 1000;
var3 = 0.2;
var4 = 11;
signal_flow_2a(
var1,
var2,
mic1,
mic2,
cntrlMic1,
cntrlMic2,
directLevel,
triangle1,
triangle2,
diffHL,
... |
99a79275114dc31be6013230d698b835cfeeb8c9fa7486e22516c296f69caee4 | s-e-a-m/fc2003dsaae2 | ae2.dsp |
declare name "Agostino Di Scipio - AUDIBLE ECOSYSTEMICS n.2";
declare version "xxx";
declare author "Giuseppe Silvi";
declare author "Luca Spanedda";
declare author "Davide Tedesco";
declare author "Giovanni Michelangelo D'urso";
declare author "Alessandro Malcangi";
declare license "GNU-GPL-v3";
declare copyright "(c... | https://raw.githubusercontent.com/s-e-a-m/fc2003dsaae2/a919f4791038c681866216e19087606726453f72/src/ae2.dsp | faust | declare options "[midi:on]";
--------------------Four variables are to be initialized prior to performance:
VAR1
distance (in meters) between the two farthest removed loudspeakers on the left-right axis.
VAR2
rough estimate of the center frequency in the spectrum of the room’s background noise (spectral centroid):
to e... |
declare name "Agostino Di Scipio - AUDIBLE ECOSYSTEMICS n.2";
declare version "xxx";
declare author "Giuseppe Silvi";
declare author "Luca Spanedda";
declare author "Davide Tedesco";
declare author "Giovanni Michelangelo D'urso";
declare author "Alessandro Malcangi";
declare license "GNU-GPL-v3";
declare copyright "(c... |
db7352dba435a4e41428be469fc17d8fca4286ce25306e27f9a8542f83904915 | SputnikStan5/LV2-Prototyper | bank-filter_gain.dsp | // SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
// SPDX-License-Identifier: CC0-1.0
import("stdfaust.lib");
gain_l = hslider("gain left[0]", 0, 0, 1, 0.01);
gain_r = hslider("gain right[1]", 0, 0, 1, 0.01);
process = _ * gain_l, _ * gain_r;
// vim: set syntax=faust:
| https://raw.githubusercontent.com/SputnikStan5/LV2-Prototyper/14965bd2c5f042d3f11e9a11f9614b5089b99184/Plugins/Faust/mephisto.lv2/dsp/bank-filter_gain.dsp | faust | SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
SPDX-License-Identifier: CC0-1.0
vim: set syntax=faust: |
import("stdfaust.lib");
gain_l = hslider("gain left[0]", 0, 0, 1, 0.01);
gain_r = hslider("gain right[1]", 0, 0, 1, 0.01);
process = _ * gain_l, _ * gain_r;
|
550f1996b2ac614a0e1b88946c22f6ed98420b1fc35b9cca25c5f6bdf05c23de | SputnikStan5/LV2-Prototyper | bank-analyzer_vu-meter.dsp | // SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
// SPDX-License-Identifier: CC0-1.0
import("stdfaust.lib");
process = _ <: attach(_,abs : ba.linear2db : hbargraph("Level [0]", -60, 0));
// vim: set syntax=faust:
| https://raw.githubusercontent.com/SputnikStan5/LV2-Prototyper/14965bd2c5f042d3f11e9a11f9614b5089b99184/Plugins/Faust/mephisto.lv2/dsp/bank-analyzer_vu-meter.dsp | faust | SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
SPDX-License-Identifier: CC0-1.0
vim: set syntax=faust: |
import("stdfaust.lib");
process = _ <: attach(_,abs : ba.linear2db : hbargraph("Level [0]", -60, 0));
|
e8d2c4839ada9abc325f3d87bd0fc440c41e3753629ae3d5b1461c35aceffada | SputnikStan5/LV2-Prototyper | bank-filter_through.dsp | // SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
// SPDX-License-Identifier: CC0-1.0
import("stdfaust.lib");
process = _, _;
// vim: set syntax=faust:
| https://raw.githubusercontent.com/SputnikStan5/LV2-Prototyper/14965bd2c5f042d3f11e9a11f9614b5089b99184/Plugins/Faust/mephisto.lv2/dsp/bank-filter_through.dsp | faust | SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
SPDX-License-Identifier: CC0-1.0
vim: set syntax=faust: |
import("stdfaust.lib");
process = _, _;
|
1b18d8d6ceee4e4f3b421fe0b96264dce7219654d974b85f4c2e96bbd9aed072 | SputnikStan5/LV2-Prototyper | bank-instrument_osc.dsp | // SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
// SPDX-License-Identifier: CC0-1.0
declare options "[nvoices:16][midi:on]";
import("stdfaust.lib");
freq = hslider("freq", 20, 20, 20000, 1);
gain = hslider("gain", 0, 0, 1, 0.01);
gate = button("gate");
lfo_f = hslider("LFO frequency[0]"... | https://raw.githubusercontent.com/SputnikStan5/LV2-Prototyper/14965bd2c5f042d3f11e9a11f9614b5089b99184/Plugins/Faust/mephisto.lv2/dsp/bank-instrument_osc.dsp | faust | SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
SPDX-License-Identifier: CC0-1.0
vim: set syntax=faust: |
declare options "[nvoices:16][midi:on]";
import("stdfaust.lib");
freq = hslider("freq", 20, 20, 20000, 1);
gain = hslider("gain", 0, 0, 1, 0.01);
gate = button("gate");
lfo_f = hslider("LFO frequency[0]", 0, 0, 100, 1);
lfo_a = hslider("LFO amplitude[1]", 0, 0, 1, 0.01);
env = en.adsr(0.01, 1.0, 0.8, 0.1, gate) * ... |
6a2b29d769ec2e995468914a53c44cb89f97b7a80370af38d4a182267f6c4402 | SputnikStan5/LV2-Prototyper | bank-time_lfo.dsp | // SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
// SPDX-License-Identifier: CC0-1.0
declare options "[time:on]";
import("stdfaust.lib");
barBeat = hslider("bar beat[time:barBeat]", 0, 0, 32, 1);
beatsPerBar = hslider("beats per bar[time:beatsPerBar]", 1, 1, 32, 1);
gate = button("speed[t... | https://raw.githubusercontent.com/SputnikStan5/LV2-Prototyper/14965bd2c5f042d3f11e9a11f9614b5089b99184/Plugins/Faust/mephisto.lv2/dsp/bank-time_lfo.dsp | faust | SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
SPDX-License-Identifier: CC0-1.0
vim: set syntax=faust: |
declare options "[time:on]";
import("stdfaust.lib");
barBeat = hslider("bar beat[time:barBeat]", 0, 0, 32, 1);
beatsPerBar = hslider("beats per bar[time:beatsPerBar]", 1, 1, 32, 1);
gate = button("speed[time:speed]");
mul = hslider("mul[0]", 0, 0, 1000, 1);
add = hslider("add[1]", 0, 0, 1000, 1);
frac = barBeat / ... |
d1845663a876daa58e0f19772ddd460cf16170e6d846c9a56905580780b6d3a6 | SputnikStan5/LV2-Prototyper | guitar.dsp | import("stdfaust.lib");
// *** COMPRESSOR ***
compressorParam = hslider("compressorParam", 6, 1, 20, 0.01) : si.smoo;
compressorDepth = hslider("compressorDepth", 0, 0, 1, 0.01) : si.smoo;
compressor = _*(1+compressorDepth) <: _*(1-compressorDepth), compressorDepth*co.compressor_mono(compressorParam,-20,0.08,0.3) ... | https://raw.githubusercontent.com/SputnikStan5/LV2-Prototyper/14965bd2c5f042d3f11e9a11f9614b5089b99184/Plugins/Faust/Library/DSP/guitar.dsp | faust | *** COMPRESSOR ***
*** FUZZ ***
*** PHASER ***
*** REVERB ***
Delay-line lengths in seconds:
feedforward delays in seconds
total delays in seconds
samples
NOTE: Since SR is not bounded at compile time, we can't use it to
allocate delay lines; hence, the fsmax parameter:
allpass comb-filter coefficient
filte... | import("stdfaust.lib");
compressorParam = hslider("compressorParam", 6, 1, 20, 0.01) : si.smoo;
compressorDepth = hslider("compressorDepth", 0, 0, 1, 0.01) : si.smoo;
compressor = _*(1+compressorDepth) <: _*(1-compressorDepth), compressorDepth*co.compressor_mono(compressorParam,-20,0.08,0.3) :> _ ;
fuzzDepth = h... |
07a5988fb1365525da998e8925d34832d28f3799159a6946cdb2f9629b2895ed | SputnikStan5/LV2-Prototyper | weatherorgan.dsp | declare name "Weather Organ";
declare author "Mykle James Hansen";
declare copyright "(c) Mykle James Hansen 2018";
declare version "0.5";
declare license "This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.";
import("stdfaust.lib");
/////////////////////////
// User i... | https://raw.githubusercontent.com/SputnikStan5/LV2-Prototyper/14965bd2c5f042d3f11e9a11f9614b5089b99184/Plugins/Faust/Library/weather_organ/weatherorgan.dsp | faust | ///////////////////////
User interface:
(Note: [scale:log] sliders with min or max 0 are unuseable in some Faust UI implementations.
Many of the log-scale sliders below use a hack to get around this, where an integer
is subtracted from the slider value, to make zero values possible.
See https://github.com/gram... | declare name "Weather Organ";
declare author "Mykle James Hansen";
declare copyright "(c) Mykle James Hansen 2018";
declare version "0.5";
declare license "This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.";
import("stdfaust.lib");
flux_adj = vslider("v:[-1]Weat... |
5c96d54304fa8bce2a26351704df51cafe631be4a266e68b53c95930b8243152 | SputnikStan5/LV2-Prototyper | dx7.dsp | //#################################### dx7.lib #########################################
// Yamaha DX7 emulation library. Its official prefix is `dx`.
//########################################################################################
// Yamaha DX7 emulation library. The various functions available in this libra... | https://raw.githubusercontent.com/SputnikStan5/LV2-Prototyper/14965bd2c5f042d3f11e9a11f9614b5089b99184/Plugins/Faust/Library/dx7.dsp | faust | #################################### dx7.lib #########################################
Yamaha DX7 emulation library. Its official prefix is `dx`.
########################################################################################
Yamaha DX7 emulation library. The various functions available in this library
are ... |
declare name "dx7";
import("stdfaust.lib");
import("dx7.lib");
ALGORITHM=7;
dx7_widget =
dx.dx7_algo(ALGORITHM,egR1,egR2,egR3,egR4,egL1,egL2,egL3,egL4,outLevel,keyVelSens,ampModSens,opMode,opFreq,opDetune,opRateScale,feedback,lfoDelay,lfoDepth,lfoSpeed,freq,gain,gate) :> _
with{
feedback = hslider("global... |
d87199fa278f29ef6c278641174bffcaaee9997bd80216b08575972bdf462845 | SputnikStan5/LV2-Prototyper | mooSpace.dsp | declare name "mooSpace";
declare description "variable space reverberation audio effect";
declare author "Arev Imer (arev.imer@students.fhnw.ch)";
declare copyright "Arev";
declare version "0.1";
import("stdfaust.lib");
MAX_DIFF = 9.5;
MAX_LATE = 5;
MAX_MOD = 150;
MAX_LAG = 2^14-2;
diff_mult = hslider("smear", ... | https://raw.githubusercontent.com/SputnikStan5/LV2-Prototyper/14965bd2c5f042d3f11e9a11f9614b5089b99184/Plugins/Faust/Library/mooSpace.dsp | faust | dtime = hslider("reverse", 200, 0, 1000, 0.1) : si.smoo : _ * 88.2 ;
Parameters
Functions
node24_30[1990] -> L-
node24_30[353] -> R+
node24_30[3627] -> R+
node31_33[187] -> L-, node31_33[1228] -> R-
node33_39[2673] -> R+
node33_39[1066] -> L-
Lmult-
Rmult-
Lprev-
Rsum+
R+
L-
2nd GOING TO LEFT OUT / 3rd GOING... | declare name "mooSpace";
declare description "variable space reverberation audio effect";
declare author "Arev Imer (arev.imer@students.fhnw.ch)";
declare copyright "Arev";
declare version "0.1";
import("stdfaust.lib");
MAX_DIFF = 9.5;
MAX_LATE = 5;
MAX_MOD = 150;
MAX_LAG = 2^14-2;
diff_mult = hslider("smear", ... |
49021eb201571a3e49036e5e9758d9636ce0a3c4ac81388b3a88e04ee80fe47a | SputnikStan5/LV2-Prototyper | polysampler.dsp | declare name "MyInstrument";
declare options "[nvoices:8]"; // FaustProcessor has a property which will override this.
import("stdfaust.lib");
// This example demonstrates a "sampler" in Faust, and it happens to use
// Lagrange interpolation. The interpolation probably only matters
// when the sampler is played at a ... | https://raw.githubusercontent.com/SputnikStan5/LV2-Prototyper/14965bd2c5f042d3f11e9a11f9614b5089b99184/Plugins/Faust/Library/polysampler.dsp | faust | FaustProcessor has a property which will override this.
This example demonstrates a "sampler" in Faust, and it happens to use
Lagrange interpolation. The interpolation probably only matters
when the sampler is played at a MIDI note other than the "center_note".
The following variables are excluded from this file b... | declare name "MyInstrument";
import("stdfaust.lib");
declare frdtable author "Dario Sanfilippo";
declare frdtable copyright "Copyright (C) 2021 Dario Sanfilippo
<sanfilippo.dario@gmail.com>";
declare frdtable license "LGPL v3.0 license";
lagrange_h(N, idx) = par(n, N + 1, prod(k, N + 1, f(n, k)))
with {
... |
f2be816494dc07fbd66eb95c2064b099fe90219d3a0441b4340410b5d672c426 | SputnikStan5/LV2-Prototyper | temper.dsp | import("stdfaust.lib");
// Pre-filter parameters
pfilterfc = hslider("Cutoff", 20000, 100, 20000, 1.0);
pfilterq = hslider("Resonance", 1.0, 1.0, 8, 0.001) : si.smooth(0.995);
// Distortion parameters
pdrive = hslider("Drive", 4.0, -10.0, 10.0, 0.001) : si.smooth(0.995);
psat = hslider("Saturation", 1.0, 0.0, 1.0, 0.... | https://raw.githubusercontent.com/SputnikStan5/LV2-Prototyper/14965bd2c5f042d3f11e9a11f9614b5089b99184/Plugins/Faust/Library/DSP/temper.dsp | faust | Pre-filter parameters
Distortion parameters
Output parameters
A fairly standard wave shaping curve; we use this to shape the input signal
before modulating the filter coefficients by this signal. Which shaping curve
we use here is pretty unimportant; as long as we can introduce higher harmonics,
the coefficient ... | import("stdfaust.lib");
pfilterfc = hslider("Cutoff", 20000, 100, 20000, 1.0);
pfilterq = hslider("Resonance", 1.0, 1.0, 8, 0.001) : si.smooth(0.995);
pdrive = hslider("Drive", 4.0, -10.0, 10.0, 0.001) : si.smooth(0.995);
psat = hslider("Saturation", 1.0, 0.0, 1.0, 0.001) : si.smooth(0.995);
pcurve = hslider("Curve",... |
6d616881578ca49b8fb75c9b52f950fbd3fbda6aff709421176468bdb70076d8 | SputnikStan5/LV2-Prototyper | polywavetable.dsp | declare name "MyInstrument";
declare options "[nvoices:8]"; // FaustProcessor has a property which will override this.
import("stdfaust.lib");
// This example demonstrates using lagrange interpolation to improve
// the sampling of a short waveform.
// Specifically, we simulate only having 4 samples of a sine wave,
//... | https://raw.githubusercontent.com/SputnikStan5/LV2-Prototyper/14965bd2c5f042d3f11e9a11f9614b5089b99184/Plugins/Faust/Library/polywavetable.dsp | faust | FaustProcessor has a property which will override this.
This example demonstrates using lagrange interpolation to improve
the sampling of a short waveform.
Specifically, we simulate only having 4 samples of a sine wave,
so the values are {0, 1, 0, -1}.
However, with Lagrange interpolation, we can turn these into ... | declare name "MyInstrument";
import("stdfaust.lib");
declare frdtable author "Dario Sanfilippo";
declare frdtable copyright "Copyright (C) 2021 Dario Sanfilippo
<sanfilippo.dario@gmail.com>";
declare frdtable license "LGPL v3.0 license";
lagrange_h(N, idx) = par(n, N + 1, prod(k, N + 1, f(n, k)))
with {
... |
5156878cca7393b59e5dd6c0eaf59bd7a311f569ee385486118746cf04969797 | SputnikStan5/LV2-Prototyper | reverb.dsp | import("stdfaust.lib");
metaverb(maxdel,
sz, dffs, fb_gain, lfo_freq, lfo_amount, hi_level, hi_freq, lo_level, lo_freq) =
(route_in : +,+ : core) ~ fb with {
route_in = route(4, 4, (1, 3), (2, 2), (3, 1), (4, 4));
sz_scale(0) = 0.506392;
sz_scale(1) = 0.803821;
sz_scale(2) = 1;
sz_... | https://raw.githubusercontent.com/SputnikStan5/LV2-Prototyper/14965bd2c5f042d3f11e9a11f9614b5089b99184/Plugins/Faust/Library/DSP/reverb.dsp | faust | + lfo(ch*i);
sz = hslider("Size", 476.8, 476.8, 2400, 0.01); | import("stdfaust.lib");
metaverb(maxdel,
sz, dffs, fb_gain, lfo_freq, lfo_amount, hi_level, hi_freq, lo_level, lo_freq) =
(route_in : +,+ : core) ~ fb with {
route_in = route(4, 4, (1, 3), (2, 2), (3, 1), (4, 4));
sz_scale(0) = 0.506392;
sz_scale(1) = 0.803821;
sz_scale(2) = 1;
sz_... |
842c3239bdd68eb65a8320405979e714f23463a2cdb8b44dea1e394b8930bc77 | SputnikStan5/LV2-Prototyper | tubescreamer.dsp | import("stdfaust.lib");
declare name "TrueScreamer";
declare version "0.1";
declare author "ChekPuk";
declare description "Tebubescreamerish pedal, closest to my dreams of right pedal";
declare license "GPL 3.0+";
bias = hslider("t:[2]/v:advanced/[0]Bias voltage",0,-4.5,4.5,0.001);
boost = hslider("t:[2]/v:advanced/[1... | https://raw.githubusercontent.com/SputnikStan5/LV2-Prototyper/14965bd2c5f042d3f11e9a11f9614b5089b99184/Plugins/Faust/Library/DSP/tubescreamer.dsp | faust | import("stdfaust.lib");
declare name "TrueScreamer";
declare version "0.1";
declare author "ChekPuk";
declare description "Tebubescreamerish pedal, closest to my dreams of right pedal";
declare license "GPL 3.0+";
bias = hslider("t:[2]/v:advanced/[0]Bias voltage",0,-4.5,4.5,0.001);
boost = hslider("t:[2]/v:advanced/[1... | |
bb3f70ddb92f6e49c513786999c4f0e8698d654ea955c4ffd2ae4cd9cc47855b | SputnikStan5/LV2-Prototyper | kpp_distruction.dsp | /*
* Copyright (C) 2018-2020 Oleg Kapitonov
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program i... | https://raw.githubusercontent.com/SputnikStan5/LV2-Prototyper/14965bd2c5f042d3f11e9a11f9614b5089b99184/Plugins/Faust/Library/Kapitonov-Plugins-Pack/LADSPA/kpp_distruction/kpp_distruction.dsp | faust |
* Copyright (C) 2018-2020 Oleg Kapitonov
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is ... |
declare name "kpp_distruction";
declare author "Oleg Kapitonov";
declare license "GPLv3";
declare version "1.1";
import("stdfaust.lib");
process = output with {
drive = vslider("drive",63,0,100,0.01);
volume = vslider("volume",0.5,0,1,0.001);
voice = vslider("voice",0.5,0,1,0.001);
... |
f47928fc09d41f2a1e3be42e2068dcab6d792fd99edfb424f74d7ca419169075 | SputnikStan5/GobyJIT | ellip.dsp | import("stdfaust.lib");
// First stage of the series with analog transfer function coefficients
// selected via
//
// [b0, b1, b2, 1, a1, a2] = sos(1, :)
//
// Note that the function signature for `tf2s` seems to label the coefficients
// in reverse order. Looking at the elliptic filter examples in the filter
// l... | https://raw.githubusercontent.com/SputnikStan5/GobyJIT/589bb827b5b85095d81558c21438d080951a94b5/Faust/ellip.dsp | faust | First stage of the series with analog transfer function coefficients
selected via
[b0, b1, b2, 1, a1, a2] = sos(1, :)
Note that the function signature for `tf2s` seems to label the coefficients
in reverse order. Looking at the elliptic filter examples in the filter
library, the coefficients are passed into ... | import("stdfaust.lib");
s1(fc) = fi.tf2s(b0, b1, b2, a1, a2, w1) with {
b0 = 0.000015848949555;
b1 = 0.0;
b2 = 0.000786144271496;
a1 = 0.525921318217520;
a2 = 0.122972664533630;
w1 = 2 * ma.PI * fc;
};
s2(fc) = fi.tf2s(b0, b1, b2, a1, a2, w1) with {
b0 = 1.0;
b1 = 0.0;
b2 = 3.241841838455698;
a1 =... |
290f485f340004256eed288a8ea1ae417318db2790d521dc56b5355827e9d22b | SputnikStan5/AudioLAB | dx7.dsp | import("stdfaust.lib");
freq = hslider("freq",100,20,600,0.01);
gate = button("gate");
nextAlgo = button("Next algorithm");
gAttack1 = vslider("h:Operator1/h:[0]Envelope gain/[0]Attack [style:knob]", 0.01, 0.01, 0.5, 0.01) : si.smoo;
gDecay1 = vslider("h:Operator1/h:[0]Envelope gain/[1]Decay [style:knob]", 0.1, ... | https://raw.githubusercontent.com/SputnikStan5/AudioLAB/c12684b16f4d27dc3c33e63986611923821117d2/Faust/Library/dsp/dx7.dsp | faust | Algorithm 1
Algorithm 2
Algorithm 3
Algorithm 4
Algorithm 5
Algorithm 6
Algorithm 7
Algorithm 8
Algorithm 9
Algorithm 10
Algorithm 11
Algorithm 12
Algorithm 13
Algorithm 14
Algorithm 15
Algorithm 16
Algorithm 17
Algorithm 18
Algorithm 19
Algorithm 20
Algorithm 21
Algorithm 22
Algorithm 23
Algorithm 24
Algorithm 25
Algo... | import("stdfaust.lib");
freq = hslider("freq",100,20,600,0.01);
gate = button("gate");
nextAlgo = button("Next algorithm");
gAttack1 = vslider("h:Operator1/h:[0]Envelope gain/[0]Attack [style:knob]", 0.01, 0.01, 0.5, 0.01) : si.smoo;
gDecay1 = vslider("h:Operator1/h:[0]Envelope gain/[1]Decay [style:knob]", 0.1, ... |
fc87670bc020fd9bd58efccf29c0de63e0a7579ab25e040daf54f94bfbcaf1b8 | SputnikStan5/AudioLAB | freeverb.dsp | import("stdfaust.lib");
origSR = 44100;
freeverb(fb1,fb2,damp,spread) = _ <: par(i,8,lbcf(combtuningL(i)+spread,fb1,damp)) :>
seq(i,4,fi.allpass_comb(1024,allpasstuningL(i)+spread,fb2))
with{
dLall = (556,441,341,225);
allpasstuningL(i) = ba.take(i+1,dLall)*ma.SR/origSR;
dLcomb = (1116,1188,1277,1356,1422,1491,1... | https://raw.githubusercontent.com/SputnikStan5/AudioLAB/c12684b16f4d27dc3c33e63986611923821117d2/Faust/Library/freeverb.dsp | faust | import("stdfaust.lib");
origSR = 44100;
freeverb(fb1,fb2,damp,spread) = _ <: par(i,8,lbcf(combtuningL(i)+spread,fb1,damp)) :>
seq(i,4,fi.allpass_comb(1024,allpasstuningL(i)+spread,fb2))
with{
dLall = (556,441,341,225);
allpasstuningL(i) = ba.take(i+1,dLall)*ma.SR/origSR;
dLcomb = (1116,1188,1277,1356,1422,1491,1... | |
b08cc56035ba68e93a9ce6b8daea1d47602946736948db4d1a97068c24fb3f7c | SputnikStan5/AudioLAB | svf.dsp | import("stdfaust.lib");
lpfilter = fi.svf.lp(F,Q) with {
F = vslider("Freq", 1000, 30, 10000, 1) : si.smoo;
Q = vslider("Q", 1, 0.01, 20, 0.01) : si.smoo;
};
hpfilter = fi.svf.hp(F,Q) with {
F = vslider("Freq", 1000, 30, 10000, 1) : si.smoo;
Q = vslider("Q", 1, 0.01, 20, 0.01) : si.smoo;
};
bpfilte... | https://raw.githubusercontent.com/SputnikStan5/AudioLAB/c12684b16f4d27dc3c33e63986611923821117d2/svf.dsp | faust | import("stdfaust.lib");
lpfilter = fi.svf.lp(F,Q) with {
F = vslider("Freq", 1000, 30, 10000, 1) : si.smoo;
Q = vslider("Q", 1, 0.01, 20, 0.01) : si.smoo;
};
hpfilter = fi.svf.hp(F,Q) with {
F = vslider("Freq", 1000, 30, 10000, 1) : si.smoo;
Q = vslider("Q", 1, 0.01, 20, 0.01) : si.smoo;
};
bpfilte... | |
bf3a6787653b008046ac81db5cda3f70f421e24ffbfebb4adad2ac06c417be19 | vqlion/Teensy-MIDI-synth | myDsp.dsp | import("stdfaust.lib");
// freqs and gains definitions go here
osc(freq) = rdtable(tablesize, os.sinwaveform(tablesize), int(os.phasor(tablesize,freq)))
with{
tablesize = 1 << 15; // instead of 1 << 16
};
kick(pitch, click, attack, decay, drive, gate) = out
with {
env = en.adsr(attack, decay, 0.0, 0.1, gate);
... | https://raw.githubusercontent.com/vqlion/Teensy-MIDI-synth/2bdeae824806c4e07259a5a444bcc3bc0953712e/archives/myDsp.dsp | faust | freqs and gains definitions go here
instead of 1 << 16
process = polys0*(mode==0), polys1*(mode==1), polys2*(mode==2);
multiple voices all go to the same effect line | import("stdfaust.lib");
osc(freq) = rdtable(tablesize, os.sinwaveform(tablesize), int(os.phasor(tablesize,freq)))
with{
};
kick(pitch, click, attack, decay, drive, gate) = out
with {
env = en.adsr(attack, decay, 0.0, 0.1, gate);
pitchenv = en.adsr(0.005, click, 0.0, 0.1, gate);
clean = env * osc((1 + pitch... |
fb565876149214f838c9b2d426cb68ab6c097a61ba9d464fc39ddeb838afcb42 | vqlion/Teensy-MIDI-synth | myDspFinal.dsp | import("stdfaust.lib");
osc(freq) = rdtable(tablesize, os.sinwaveform(tablesize), int(os.phasor(tablesize,freq)))
with{
tablesize = 1 << 15; // instead of 1 << 16
};
kick(pitch, click, attack, decay, drive, gate) = out
with {
env = en.adsr(attack, decay, 0.0, 0.1, gate);
pitchenv = en.adsr(0.005, click, 0.... | https://raw.githubusercontent.com/vqlion/Teensy-MIDI-synth/2bdeae824806c4e07259a5a444bcc3bc0953712e/myDspFinal.dsp | faust | instead of 1 << 16
those two redefinitions were required so the code actually fit on the teensy | import("stdfaust.lib");
osc(freq) = rdtable(tablesize, os.sinwaveform(tablesize), int(os.phasor(tablesize,freq)))
with{
};
kick(pitch, click, attack, decay, drive, gate) = out
with {
env = en.adsr(attack, decay, 0.0, 0.1, gate);
pitchenv = en.adsr(0.005, click, 0.0, 0.1, gate);
clean = env * osc((1 + pitch... |
16cd520e98a03e1f8b485f2c03dc75ab34a29c8d1f9d43baf6556fe3db05b81e | vqlion/Teensy-MIDI-synth | myDsp2.dsp | import("stdfaust.lib");
// freqs and gains definitions go here
osc(freq) = rdtable(tablesize, os.sinwaveform(tablesize), int(os.phasor(tablesize,freq)))
with{
tablesize = 1 << 15; // instead of 1 << 16
};
kick(pitch, click, attack, decay, drive, gate) = out
with {
env = en.adsr(attack, decay, 0.0, 0.1, gate);
... | https://raw.githubusercontent.com/vqlion/Teensy-MIDI-synth/2bdeae824806c4e07259a5a444bcc3bc0953712e/archives/myDsp2.dsp | faust | freqs and gains definitions go here
instead of 1 << 16
lowpass to add!
process = polys0*(mode==0), polys1*(mode==1), polys2*(mode==2);
multiple voices all go to the same effect line | import("stdfaust.lib");
osc(freq) = rdtable(tablesize, os.sinwaveform(tablesize), int(os.phasor(tablesize,freq)))
with{
};
kick(pitch, click, attack, decay, drive, gate) = out
with {
env = en.adsr(attack, decay, 0.0, 0.1, gate);
pitchenv = en.adsr(0.005, click, 0.0, 0.1, gate);
clean = env * osc((1 + pitch... |
063b442cf7a74b320106a102a28d8e877dabfe5765e10f4245543f32dfefcd67 | grame-cncm/faustdoc | exfaust8.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 isomor... | https://raw.githubusercontent.com/grame-cncm/faustdoc/b6ac76b628799dc1386e22495e4eeed313560d9a/docs/examples/smartKeyboard/exfaust8/exfaust8.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 keyboard w... |
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',
'K... |
fe1c3907694ea3944dddf6dc2fda3401870a324fbec3788b106562d6b7e888d7 | grame-cncm/faustdoc | exfaust0.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/grame-cncm/faustdoc/f2148f87872e3eb1098b39f1daf783ed513dc193/docs/examples/smartKeyboard/exfaust0/exfaust0.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 w... |
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':... |
908f8f9ae50019d275284dbfee94473c18f3adb26c72c5c95838fe0ee8562240 | makingsoundmachines/Faust-on-Teensy | faustAdditive.dsp |
import("stdfaust.lib");
///////////////////////////////////////////////////////////////////////////////////////////////////
//
// Additive synthesizer (harmonic oscillator), originally for BELA, adapted for Teensy.
//
// Original project here:
// https://github.com/grame-cncm/faust/blob/master-dev/examples/bela/Addi... | https://raw.githubusercontent.com/makingsoundmachines/Faust-on-Teensy/c0c0cb23983005c47ca2f68e68e0f906c5fb5dbc/AdditiveSynth_Faust/faustAdditive.dsp | faust | /////////////////////////////////////////////////////////////////////////////////////////////////
Additive synthesizer (harmonic oscillator), originally for BELA, adapted for Teensy.
Original project here:
https://github.com/grame-cncm/faust/blob/master-dev/examples/bela/AdditiveSynth.dsp
It has 8 harmonics, ea... |
import("stdfaust.lib");
oscTeensy(f) = rdtable(tablesize, os.sinwaveform(tablesize), int(os.phasor(tablesize,f)))
with{
};
gate = button("gate");
freq = hslider("freq[unit:Hz]", 440, 20, 20000, 1);
gain = hslider("gain", 0.5, 0, 10, 0.01);
ctFreq = hslider("ctFreq",500,20,10000,0.01) : si.smoo;
filterQ = hslide... |
37e71a2b0a05c9836b6e9364c0311e85b573f4b20e9c0096488d7c433658741d | grame-cncm/faustdoc | exfaust13.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 for thi... | https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/examples/smartKeyboard/exfaust13/exfaust13.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 and
... |
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 Ke... |
1003ae3fee848b1105dd6e500037395e32493c01e8e88bc30691f411b4a131ed | grame-cncm/faustdoc | exfaust2.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 Strateg... | https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/examples/smartKeyboard/exfaust2/exfaust2.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 keyboar... |
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... |
423e4da6f79c782c436021b01003ee9079df4e09537ea5b07263ea3925acc590 | grame-cncm/faustdoc | exfaust16.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 c... | https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/examples/smartKeyboard/exfaust16/exfaust16.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 of ... |
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 - Numb... |
fd03145943f91541f8b074f0591c533c7ebe5b4169ab5fee652a22200e9cd81a | grame-cncm/faustdoc | exfaust6.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/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/examples/smartKeyboard/exfaust6/exfaust6.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.
## SmartK... |
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',
'Keyb... |
5a45a16a43b65ebe174a165168e5ba31be351bc5da21f1254bfed623f311d366 | grame-cncm/faustdoc | exfaust5.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/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/examples/smartKeyboard/exfaust5/exfaust5.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 Use ... |
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',
'Keybo... |
4beabe34babe79842511a6a2b84e2a8537cd5572bb869617e9fee6c3b292b792 | hpfmn/FaustTeensyGenerator | FaustInstrument.dsp | // FaustInstrument.dsp
//
// Example for FaustTeensyGenerator
// a simple subtractive synth with gyro and light control
//
// Johannes Wegener
import("stdfaust.lib");
import("noises.lib");
// input parameters with GUI elements
osc1G(x) = vgroup("Osc1", x);
osc2G(x) = vgroup("Osc2", x);
AmpEnv(x) = vgroup("AmpEnv", ... | https://raw.githubusercontent.com/hpfmn/FaustTeensyGenerator/973e146497d560e30f108d682f5efbfbb488c09f/FaustInstrument.dsp | faust | FaustInstrument.dsp
Example for FaustTeensyGenerator
a simple subtractive synth with gyro and light control
Johannes Wegener
input parameters with GUI elements
fb1 = hslider("feedback1",0.67,0,1,0.01);
fb2 = hslider("feedback2",0.58,0,1,0.01);
damp = hslider("damp",0.8,0,1,0.01);
spread = hslider("spread",0... |
import("stdfaust.lib");
import("noises.lib");
osc1G(x) = vgroup("Osc1", x);
osc2G(x) = vgroup("Osc2", x);
AmpEnv(x) = vgroup("AmpEnv", x);
PitchEnv(x) = vgroup("PitchEnv", x);
Filter(x) = vgroup("Filter", x);
light = nentry("lightSens[io: A10]",0, -1, 1, 0.1);
lightAmt = Filter(hslider("li2fc",0, 0, 2000, 100));
g... |
cba4020c68c3a0116cfaa9d80d4b9644239f691ff5961ee8ddd2019b7b01c662 | orchidas/Music-256A | synth.dsp | //Subtractive synthesis - sawtooth + square wave is passed through ADSR envelope and a
//butterworth lowpass filter
import("stdfaust.lib");
freqsaw = hslider("frequency", 440, 50, 2000, 0.1) : si.smoo; //create frequency slider and smooth it
freqsqr = hslider("frequency", 218, 50, 2000, 0.1) : si.smoo;
cutoff = hsli... | https://raw.githubusercontent.com/orchidas/Music-256A/46c465a3f004a00723088f918106a854af863d08/MySynth/Source/faust/synth.dsp | faust | Subtractive synthesis - sawtooth + square wave is passed through ADSR envelope and a
butterworth lowpass filter
create frequency slider and smooth it |
import("stdfaust.lib");
freqsqr = hslider("frequency", 218, 50, 2000, 0.1) : si.smoo;
cutoff = hslider("cutoff", 2000, 500, 20000, 50) : si.smoo;
gain = hslider("gain" , 0.5,0,0.5,0.01) : si.smoo;
gate = button("gate");
saw = hgroup("saw", os.sawtooth(freqsaw) * gain);
sqr = hgroup("sqr", os.square(freqsqr) * gain)... |
115a5502e3868ea53b39782a2de0c5d7bf858630185f9c915aaa6d1a1eef3b93 | grame-cncm/faustdoc | exfaust34.dsp |
import("stdfaust.lib");
// Approximation of a sawtooth wave using additive synthesis
sawtooth(f) = 2/ma.PI*sum(k, 4, (-1)^k * os.osc((k+1)*f)/(k+1));
process = sawtooth(55);
| https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/workshops/2020-04-10-faust-101/exfaust34/exfaust34.dsp | faust | Approximation of a sawtooth wave using additive synthesis |
import("stdfaust.lib");
sawtooth(f) = 2/ma.PI*sum(k, 4, (-1)^k * os.osc((k+1)*f)/(k+1));
process = sawtooth(55);
|
173ba7285eb3932f0cfa8ef7dc43b8a0debf3002e29fd55371c6ba85682a9b3c | OceanSwift/Faust-Course-Examples | Filter-Tremolo-Example.dsp | import("stdfaust.lib");
waveGenerator = hgroup("[0]Wave Generator",no.noise,os.triangle(freq),os.square(freq),os.sawtooth(freq) : ba.selectn(4,wave))
with{
wave = nentry("[0]Waveform",3,0,3,1);
freq = hslider("[1]freq",440,50,2000,0.01);
};
subtractive = waveGenerator : hgroup("[1]Filter",fi.resonbp(resFreq,q,1))
w... | https://raw.githubusercontent.com/OceanSwift/Faust-Course-Examples/c3c779ab8257fae9563de4bc09ee71c5346bb1cd/Filter-Tremolo-Example.dsp | faust | import("stdfaust.lib");
waveGenerator = hgroup("[0]Wave Generator",no.noise,os.triangle(freq),os.square(freq),os.sawtooth(freq) : ba.selectn(4,wave))
with{
wave = nentry("[0]Waveform",3,0,3,1);
freq = hslider("[1]freq",440,50,2000,0.01);
};
subtractive = waveGenerator : hgroup("[1]Filter",fi.resonbp(resFreq,q,1))
w... | |
551cf71193bccbab308fdb9bfcc3e28abc72e284891d2987ea890af44fa0c98a | grame-cncm/faustdoc | exfaust2.dsp |
import("stdfaust.lib");
decimalpart(x) = x-int(x);
phase(f) = f/ma.SR : (+ : decimalpart) ~ _;
sawtooth(f) = phase(f) * 2 - 1;
process = sawtooth(440);
| https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/workshops/2020-03-24-faust-citi/exfaust2/exfaust2.dsp | faust |
import("stdfaust.lib");
decimalpart(x) = x-int(x);
phase(f) = f/ma.SR : (+ : decimalpart) ~ _;
sawtooth(f) = phase(f) * 2 - 1;
process = sawtooth(440);
| |
14a4045fb8c8be0940a4182acfc5933b599a20e66ece7294c81732c9f369b5fd | grame-cncm/faustdoc | exfaust115.dsp |
import("stdfaust.lib");
s = vslider("Signal[style:menu{'Noise':0;'Sawtooth':1}]",0,0,1,1);
process = select2(s,no.noise,os.sawtooth(440));
| https://raw.githubusercontent.com/grame-cncm/faustdoc/515c59ce7c4e390d3cf0fc518cd0d9f3ef7be262/docs/manual/syntax/exfaust115/exfaust115.dsp | faust |
import("stdfaust.lib");
s = vslider("Signal[style:menu{'Noise':0;'Sawtooth':1}]",0,0,1,1);
process = select2(s,no.noise,os.sawtooth(440));
| |
e5b26031c2eb907af2280c2dbfb289a8337269107efe1ff24e44610d90d201f4 | grame-cncm/faustdoc | exfaust116.dsp |
import("stdfaust.lib");
s = vslider("Signal[style:radio{'Noise':0;'Sawtooth':1}]",0,0,1,1);
process = select2(s,no.noise,os.sawtooth(440));
| https://raw.githubusercontent.com/grame-cncm/faustdoc/515c59ce7c4e390d3cf0fc518cd0d9f3ef7be262/docs/manual/syntax/exfaust116/exfaust116.dsp | faust |
import("stdfaust.lib");
s = vslider("Signal[style:radio{'Noise':0;'Sawtooth':1}]",0,0,1,1);
process = select2(s,no.noise,os.sawtooth(440));
| |
14614a37b3757296ecd107cc530ebf7ce0a7494ce6f5886625a62a9a4608afa3 | grame-cncm/faustdoc | exfaust35.dsp |
import("stdfaust.lib");
decimalpart(x) = x-int(x);
phase(f) = f/ma.SR : (+ : decimalpart) ~ _;
sawtooth(f) = phase(f) * 2 - 1;
//process = sawtooth(440);
process = os.sawN(3,400);
| https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/workshops/2020-04-10-faust-101/exfaust35/exfaust35.dsp | faust | process = sawtooth(440); |
import("stdfaust.lib");
decimalpart(x) = x-int(x);
phase(f) = f/ma.SR : (+ : decimalpart) ~ _;
sawtooth(f) = phase(f) * 2 - 1;
process = os.sawN(3,400);
|
112e64777f3643f640ff5738eab15a4c2ce0c17dcac981a1db0d044577b16bd4 | grame-cncm/faustdoc | exfaust6.dsp |
import("stdfaust.lib");
inst = nentry("Instrument[midi:pgm]",0,0,3,1) : int;
process = (os.sawtooth(400),os.osc(400),os.sawtooth(600),os.osc(600)) : ba.selectn(4,inst);
| https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/manual/midi/exfaust6/exfaust6.dsp | faust |
import("stdfaust.lib");
inst = nentry("Instrument[midi:pgm]",0,0,3,1) : int;
process = (os.sawtooth(400),os.osc(400),os.sawtooth(600),os.osc(600)) : ba.selectn(4,inst);
| |
0cb0318005a0a7c0a26a8765b9b229b63d33a2f296f9e90874a9d5895cded994 | grame-cncm/faustdoc | exfaust113.dsp |
import("stdfaust.lib");
freqS = vslider("[0]freq",440,50,1000,0.1);
gainS = vslider("[1]gain",0,0,1,0.01);
freqT = vslider("[0]freq",440,50,1000,0.1);
gainT = vslider("[1]gain",0,0,1,0.01);
process = hgroup("Oscillators",
hgroup("[0]Sawtooth",os.sawtooth(freqS)*gainS) +
hgroup("[1]Triangle",os.triangle(freqT)*gai... | https://raw.githubusercontent.com/grame-cncm/faustdoc/515c59ce7c4e390d3cf0fc518cd0d9f3ef7be262/docs/manual/syntax/exfaust113/exfaust113.dsp | faust |
import("stdfaust.lib");
freqS = vslider("[0]freq",440,50,1000,0.1);
gainS = vslider("[1]gain",0,0,1,0.01);
freqT = vslider("[0]freq",440,50,1000,0.1);
gainT = vslider("[1]gain",0,0,1,0.01);
process = hgroup("Oscillators",
hgroup("[0]Sawtooth",os.sawtooth(freqS)*gainS) +
hgroup("[1]Triangle",os.triangle(freqT)*gai... | |
b656715a2adbacb00f044c459c7acb883b4f2b087232c0ea8cdf66e31e6146ef | OceanSwift/Faust-Course-Examples | Filter Series n FX Example.dsp | import("stdfaust.lib");
waveGenerator = hgroup("[0]Wave Generator",no.noise,os.triangle(freq),os.square(freq),os.sawtooth(freq) : ba.selectn(4,wave))
with{
wave = nentry("[0]Waveform",3,0,3,1);
freq = hslider("[1]freq",440,50,2000,0.01);
};
peakFilters = hgroup("[1]Peak EQ Filters",seq(i,2,myFilters(i)))
with{
m... | https://raw.githubusercontent.com/OceanSwift/Faust-Course-Examples/c3c779ab8257fae9563de4bc09ee71c5346bb1cd/Filter%20Series%20n%20FX%20Example.dsp | faust | import("stdfaust.lib");
waveGenerator = hgroup("[0]Wave Generator",no.noise,os.triangle(freq),os.square(freq),os.sawtooth(freq) : ba.selectn(4,wave))
with{
wave = nentry("[0]Waveform",3,0,3,1);
freq = hslider("[1]freq",440,50,2000,0.01);
};
peakFilters = hgroup("[1]Peak EQ Filters",seq(i,2,myFilters(i)))
with{
m... | |
78eb6394e32dd5875729c04a516f2b304e0c6211368c357a4cbfad701582a31e | Corredor1230/varikeyTests | test.dsp | import("stdfaust.lib");
freq = vslider("freq", 220, 40, 1000, 1);
gate = button("gate");
gain = vslider("gain", 1, 0, 1, 0.001);
process = os.sawtooth(freq)*0.2<:_,_; | https://raw.githubusercontent.com/Corredor1230/varikeyTests/de0706c046f4c308e6f300b3e90927df29f369ba/SynthTests/JuceSynth/Source/Faust/test.dsp | faust | import("stdfaust.lib");
freq = vslider("freq", 220, 40, 1000, 1);
gate = button("gate");
gain = vslider("gain", 1, 0, 1, 0.001);
process = os.sawtooth(freq)*0.2<:_,_; | |
99a3a8db9d8f55e13a9f17c27f00e90fcb8c54269ff4d2b2ef78b21ad341d5ee | grame-cncm/faustdoc | exfaust8.dsp |
import("stdfaust.lib");
process = os.sawtooth(440) <: _,_,_;
| https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/manual/syntax/exfaust8/exfaust8.dsp | faust |
import("stdfaust.lib");
process = os.sawtooth(440) <: _,_,_;
| |
6e3449423c86d0365eedf9fe50ac4fc2e76652acfffdcb438a200569c6ca6cd2 | grame-cncm/faustdoc | exfaust3.dsp |
import("stdfaust.lib");
process = os.osc(440),os.sawtooth(550),os.triangle(660);
| https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/manual/syntax/exfaust3/exfaust3.dsp | faust |
import("stdfaust.lib");
process = os.osc(440),os.sawtooth(550),os.triangle(660);
| |
addec4e201fb46a27dc02d98b1ca6c315df97ac12ec98d40edc8eada20ad4fdf | jpark052/CSC484D | q8.dsp | import("stdfaust.lib");
freq = hslider("frequency[midi:ctrl 11]",200,50,1000,0.01) : si.smoo;
// Q1
process = os.osc(440);
// Q4, need to uncomment each line to generate each sound.
//process = os.sawtooth(440);
//process = os.triangle(440);
//process = os.ba.pulse(440);
//process = no.noise;
| https://raw.githubusercontent.com/jpark052/CSC484D/b86d35d9c08bd682bc2359318bea349a071d9455/A1/q8.dsp | faust | Q1
Q4, need to uncomment each line to generate each sound.
process = os.sawtooth(440);
process = os.triangle(440);
process = os.ba.pulse(440);
process = no.noise; | import("stdfaust.lib");
freq = hslider("frequency[midi:ctrl 11]",200,50,1000,0.01) : si.smoo;
process = os.osc(440);
|
67979f8131539f0be58aadc2c9cdfa1bfac1be360a8b07c6b095cd98d9d291a2 | Corredor1230/varikeyTests | SynthTest2.dsp | import("stdfaust.lib");
//Variables
volume = vslider("Volume",1,0,1,0.001):si.smoo;
//Filter
ctFreq = hslider("cutoffFrequency[scale:log][style:knob]",500,50,20000,0.01):si.smoo;
q = hslider("q[style:knob]",1,1,15,0.1):si.smoo;
qRange=((q-1)/4.67)+1;
gainFilt = hslider("gainFilt[style:knob]",1,0,1,0.01):si.s... | https://raw.githubusercontent.com/Corredor1230/varikeyTests/025edd8e1f10e92a23b906a5ad6037cc7272f2fa/Faust/SynthTest2.dsp | faust | Variables
Filter
Pan
Midi Input
Detunes
Vibrato
| import("stdfaust.lib");
volume = vslider("Volume",1,0,1,0.001):si.smoo;
ctFreq = hslider("cutoffFrequency[scale:log][style:knob]",500,50,20000,0.01):si.smoo;
q = hslider("q[style:knob]",1,1,15,0.1):si.smoo;
qRange=((q-1)/4.67)+1;
gainFilt = hslider("gainFilt[style:knob]",1,0,1,0.01):si.smoo;
qGainAdjust=1/qRa... |
22af0db5c3ca19a5209dd9e7790f2bbb6629573f74dc04aacc0ed6f863d3c484 | grame-cncm/faustdoc | exfaust15.dsp |
//################################### trumpet.dsp #####################################
// A simple trumpet app... (for large screens).
//
// ## Compilation Instructions
//
// This Faust code will compile fine with any of the standard Faust targets. However
// it was specifically designed to be used with faust2smartke... | https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/examples/smartKeyboard/exfaust15/exfaust15.dsp | faust | ################################### trumpet.dsp #####################################
A simple trumpet app... (for large screens).
## Compilation Instructions
This Faust code will compile fine with any of the standard Faust targets. However
it was specifically designed to be used with faust2smartkeyb. For best re... |
import("stdfaust.lib");
declare interface "SmartKeyboard{
'Number of Keyboards':'5',
'Max Keyboard Polyphony':'1',
'Mono Mode':'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... |
2c0e2fe1753f6c60afe1378cd2e86a136133bbb8a70aa742c39a5af44028117f | Corredor1230/varikeyTests | synthFaustStyle.dsp | import("stdfaust.lib");
//Parameter declarations
freq = vslider("freq[style:knob]",500,200,1000,0.01);
gain = vslider("gain",-20,-60,0,1) : ba.db2linear;
gate = button("gate") : si.smoo;
cutoff = vslider("cutoff[style:knob][scale:log]",1000,110,20000,0.01) : si.smoo : max(20);
vibFreq = vslider("vibFreq",0,0,20,0.02):... | https://raw.githubusercontent.com/Corredor1230/varikeyTests/ee7d6798d14d56a2a68a3dcc72d582f7bcab3f6c/Faust/synthFaustStyle.dsp | faust | Parameter declarations | import("stdfaust.lib");
freq = vslider("freq[style:knob]",500,200,1000,0.01);
gain = vslider("gain",-20,-60,0,1) : ba.db2linear;
gate = button("gate") : si.smoo;
cutoff = vslider("cutoff[style:knob][scale:log]",1000,110,20000,0.01) : si.smoo : max(20);
vibFreq = vslider("vibFreq",0,0,20,0.02):si.smoo;
vibDepth = vslid... |
f0e1fd06b1a796438dca694736acb8513acd975329711e86a6c538289c985024 | luke1241/MUSS3640_Vocal_Synth | dspExternalFormants.dsp | declare options "[nvoices:8]";
import("stdfaust.lib");
/*INPUT/API*/
gate = button("gate");
//Formant Data
f1Freq = nentry("f1Freq", 800, 20, 20000, 1);
f1Gain = nentry("f1Gain", 1.0, 0.0, 1.0, 0.01);
f1BW = nentry("f1BW", 80, 20, 20000, 1);
f2Freq = nentry("f2Freq", 1150, 20, 20000, 1);
f2Gain = nentry("f2Gain", 0... | https://raw.githubusercontent.com/luke1241/MUSS3640_Vocal_Synth/deea246b4526f5e89b109fd30150105822909091/dspExternalFormants.dsp | faust | INPUT/API
Formant Data
Voice Envelope Control
Source Control
Fricative Control
Vibrato Control
Gain Control
unisonDetune = hslider("unisonDetune", 0.0, 0.0, 2.0, 0.01);
Global signals
ENVLOPE
VIBRATO
FOF
FOF Formant Object
FOF Formant Bank
FOF Gain Compensation
FOF Process Block
BANDPASS
Bandpass formant bank
FRICATIVE... | declare options "[nvoices:8]";
import("stdfaust.lib");
gate = button("gate");
f1Freq = nentry("f1Freq", 800, 20, 20000, 1);
f1Gain = nentry("f1Gain", 1.0, 0.0, 1.0, 0.01);
f1BW = nentry("f1BW", 80, 20, 20000, 1);
f2Freq = nentry("f2Freq", 1150, 20, 20000, 1);
f2Gain = nentry("f2Gain", 0.630957, 0.0, 1.0, 0.0001);
f... |
255922ad49b47f6c64f334b05066c5a39e3edcdd9b7632a05f3b3f620103a2e7 | OceanSwift/Faust-Course-Examples | ITDpan.dsp | import("stdfaust.lib");
// ITD: the Interaural Time Difference in samples, assuming that:
// - the distance between the two ears is: 0.2 m
// - the speed of the sound is: 340 m/s
// - the sampling rate is: ma.SR
ITD = (0.2/340)*ma.SR;
// itdpan(p): ITD based panoramic
// The parameter p ... | https://raw.githubusercontent.com/OceanSwift/Faust-Course-Examples/c3c779ab8257fae9563de4bc09ee71c5346bb1cd/ITDpan.dsp | faust | ITD: the Interaural Time Difference in samples, assuming that:
- the distance between the two ears is: 0.2 m
- the speed of the sound is: 340 m/s
- the sampling rate is: ma.SR
itdpan(p): ITD based panoramic
The parameter p indicates the position of the source:
0.0 (full left): 0 on the left channel, full IT... | import("stdfaust.lib");
ITD = (0.2/340)*ma.SR;
itdpan(p) = _ <: @(p*ITD), @(ITD*(1-p));
process = ba.pulsen(1,10000) * checkbox("play") : pm.djembe(60,0.3,0.5,1) : itdpan(hslider("pan", 0.5, 0, 1, 0.01)); |
fc61de2b95bc6b388112c44bb36b08aa6bb5abfb18b498b38787c2d285b2f8be | grame-cncm/FAST | guitar-effects.dsp | import("stdfaust.lib");
// Reverb
reverb = ba.bypass2(rbp,dattorro_rev_demo)
with {
rbp = button("Bypass [switch:5]");
};
dattorro_rev_demo = _,_ <: re.dattorro_rev(pre_delay, bw, i_diff1, i_diff2, decay, d_diff1, d_diff2, damping),_,_:
dry_wet
with {
pre_delay = 0;
bw = 0.7;
i_diff1 = 0.625;
... | https://raw.githubusercontent.com/grame-cncm/FAST/b6e4397756a6f57dbc792d536d5bbd3ddc58e915/docs/codes/guitar-effects.dsp | faust | Reverb
Flanger
Drive | import("stdfaust.lib");
reverb = ba.bypass2(rbp,dattorro_rev_demo)
with {
rbp = button("Bypass [switch:5]");
};
dattorro_rev_demo = _,_ <: re.dattorro_rev(pre_delay, bw, i_diff1, i_diff2, decay, d_diff1, d_diff2, damping),_,_:
dry_wet
with {
pre_delay = 0;
bw = 0.7;
i_diff1 = 0.625;
i_diff2 = ... |
787a0b9bdf39ee91b8a25d0b1153b59afd29ec21af3145ff0947e77813a11158 | grame-cncm/FAST | guitar-effects.dsp | import("stdfaust.lib");
//Reverb
reverb=ba.bypass2(rbp,dattorro_rev_demo)
with{
rbp = button("Bypass [switch:5]");
};
dattorro_rev_demo = _,_ <: re.dattorro_rev(pre_delay, bw, i_diff1, i_diff2, decay, d_diff1, d_diff2, damping),_,_:
dry_wet
with {
pre_delay = 0;
bw = 0.7;
i_diff1 = 0.625;
... | https://raw.githubusercontent.com/grame-cncm/FAST/fe3db7307fb11e046b3d39c0aea22a9b66803773/web/docs/codes/guitar-effects.dsp | faust | Reverb
Flanger
drive | import("stdfaust.lib");
reverb=ba.bypass2(rbp,dattorro_rev_demo)
with{
rbp = button("Bypass [switch:5]");
};
dattorro_rev_demo = _,_ <: re.dattorro_rev(pre_delay, bw, i_diff1, i_diff2, decay, d_diff1, d_diff2, damping),_,_:
dry_wet
with {
pre_delay = 0;
bw = 0.7;
i_diff1 = 0.625;
i_diff2 =... |
ca4db815ec33b662000a8a318102e4f9840be6261db3b2b49509258064114147 | zeloe/ReverbZen | reverb.dsp | import("stdfaust.lib");
hipfilter(ct) = fi.highpass(1,fc)
with {
fc = ct;
};
filters(dp) = fi.lowpass(1,fc1) , fi.lowpass(1,fc2), fi.lowpass(1,fc3), fi.lowpass(1,fc4),fi.lowpass(1,fc5), fi.lowpass(1,fc6), fi.lowpass(1,fc7), fi.lowpass(1,fc8)
with {
fc1 = (10000) * dp + 100;
fc2 = 9000 * dp + 90;
fc3 = 8500 * d... | https://raw.githubusercontent.com/zeloe/ReverbZen/0755f81dc499df09cc1e77117ad484a6bfd43386/Source/reverb.dsp | faust | import("stdfaust.lib");
hipfilter(ct) = fi.highpass(1,fc)
with {
fc = ct;
};
filters(dp) = fi.lowpass(1,fc1) , fi.lowpass(1,fc2), fi.lowpass(1,fc3), fi.lowpass(1,fc4),fi.lowpass(1,fc5), fi.lowpass(1,fc6), fi.lowpass(1,fc7), fi.lowpass(1,fc8)
with {
fc1 = (10000) * dp + 100;
fc2 = 9000 * dp + 90;
fc3 = 8500 * d... | |
22bd358d1fa39a7bc5b8febfd21f57dbe073fd7b8a7e068ec802b401bf3b688e | butchwarns/LR_Delay | delay.dsp | import("stdfaust.lib");
maxDelay = 1.5 * ma.SR; // 1.5s max delay time
interpTime = 42 * ma.SR / 1000; // 1ms interpolation time
p_drive = vslider("drive[unit:dB][style:knob]", 0.0, -24.0, 12.0, 0.1) : ba.db2linear : si.smoo;
p_volume = vslider("volume[unit:dB][style:knob]", 0.0, -24.0, 12.0, 0.1) : ba.db2linear : si... | https://raw.githubusercontent.com/butchwarns/LR_Delay/42b39fcc4a326d05a7317b6d4dfb64bc867fdb9e/dsp/delay.dsp | faust | 1.5s max delay time
1ms interpolation time
Left channel
Right channel
DC blocking and stereo width | import("stdfaust.lib");
p_drive = vslider("drive[unit:dB][style:knob]", 0.0, -24.0, 12.0, 0.1) : ba.db2linear : si.smoo;
p_volume = vslider("volume[unit:dB][style:knob]", 0.0, -24.0, 12.0, 0.1) : ba.db2linear : si.smoo;
p_dryWet_L = vslider("dryWet_L[unit:%][style:knob]", 0, 0, 100, 0) / 100 : si.smoo;
p_dryWet_R = ... |
d40b62415b1cdabdd1aa5905fd3ce873f067e6a1c60eba6c29492fdc0600be17 | AppliedAcousticsChalmers/pass-by-synth | wfsParallel.dsp | import("maths.lib");
import("basics.lib");
// import("filters.lib");
// import("delays.lib");
import("stdfaust.lib");
nSpeakers = 24;
d = 0.154;
freqs = (562.0, 708.0, 891.0, 1122.0, 1413.0, 1778.0, 2239.0, 2818.0, 3548.0);
freqs3Ob(k) = ba.take(k, (500.0, 630.0, 800.0, 1000.0, 1250.0, 1600.0, 2000.0, 2500.0, 3150.0,... | https://raw.githubusercontent.com/AppliedAcousticsChalmers/pass-by-synth/a3fa80a91bf8bba39d6944d25e16021ff3fde2ba/wfsParallel.dsp | faust | import("filters.lib");
import("delays.lib");
Temperature in Celsius
Temperature in Kelvin
Reference temperature
Reference ambient pressure
Molar conc.of water vapour( %)
Relaxation freq of oxygen
yref = 0.0;
xnew(d,i) = ma.fabs(x - (i - 1) * d - (v*t/SR) );
cosphi(d,i,y) = xnew(d,i)/((y^2 + xnew(d,i)^2)^0.5... | import("maths.lib");
import("basics.lib");
import("stdfaust.lib");
nSpeakers = 24;
d = 0.154;
freqs = (562.0, 708.0, 891.0, 1122.0, 1413.0, 1778.0, 2239.0, 2818.0, 3548.0);
freqs3Ob(k) = ba.take(k, (500.0, 630.0, 800.0, 1000.0, 1250.0, 1600.0, 2000.0, 2500.0, 3150.0, 4000.0));
airatt(f,r) = _ : (*(10^(-r*airattdb1m(... |
af9f5d54e1ea388021ae07ac35c427ca5aec0f954f6ef418a0aa3a91d3295e3e | grame-cncm/faustdoc | exfaust1.dsp |
import("stdfaust.lib");
echo(d,f) = +~de.delay(48000,del)*f
with {
del = d*ma.SR;
};
delay = nentry("delay",0.25,0,1,0.01) : si.smoo;
feedback = nentry("feedback",0.5,0,1,0.01) : si.smoo;
process = par(i,2,echo(delay,feedback));
| https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/workshops/2020-04-10-faust-juce/exfaust1/exfaust1.dsp | faust |
import("stdfaust.lib");
echo(d,f) = +~de.delay(48000,del)*f
with {
del = d*ma.SR;
};
delay = nentry("delay",0.25,0,1,0.01) : si.smoo;
feedback = nentry("feedback",0.5,0,1,0.01) : si.smoo;
process = par(i,2,echo(delay,feedback));
| |
db30e7a88aa97687d1df830fbcd38fe2d203da83af25d01129eccdd5655a644b | orchidas/Music-256A | delay.dsp | import("stdfaust.lib");
d = hslider("duration",0.5,0,1,0.01) : si.smoo;
f = hslider("feedback",0,0,1,0.01) : si.smoo;
gain = hslider("gain",1,0,1,0.01) : si.smoo;
gate = button("gate");
echo(duration,feedback) = +~(de.delay(ma.np2(44100),delayLength) : *(feedback))
with{
delayLength = duration*ma.SR-1;
};
process =... | https://raw.githubusercontent.com/orchidas/Music-256A/46c465a3f004a00723088f918106a854af863d08/ofEffectsChain/src/faust/delay.dsp | faust | import("stdfaust.lib");
d = hslider("duration",0.5,0,1,0.01) : si.smoo;
f = hslider("feedback",0,0,1,0.01) : si.smoo;
gain = hslider("gain",1,0,1,0.01) : si.smoo;
gate = button("gate");
echo(duration,feedback) = +~(de.delay(ma.np2(44100),delayLength) : *(feedback))
with{
delayLength = duration*ma.SR-1;
};
process =... | |
a62cc73e902d09493e52765e7b939480a61e56abef32b59cab550a9d065e7199 | miccio-dk/LeslieSim | leslie.dsp | import("stdfaust.lib");
//// params
// amp
amp_drive = hslider("[0]Amp drive", 0.1, 0, 1, 0.01) : si.smoo;
// crossover
xver_freq = hslider("[1]Crossover freq (Hz)", 800, 200, 8000, 0.01) : si.smoo;
// bass
bass_speed = hslider("[00]Bass speed (RPM)", 30, 5, 500, 0.01) : si.smoo;
bass_am_depth = hslider("[1]Bass AM d... | https://raw.githubusercontent.com/miccio-dk/LeslieSim/c82211a42a14a40914be8c857b2f69f69f3d97e0/faust/leslie.dsp | faust | // params
amp
crossover
bass
treble
mix
// modules
phasor
tube amplifier
passive crossover
source-listener distance
doppler simulation based on delay lines
amplitude modulation
signal level, normalized in range +/- 1
variable low pass filter
horn frequency response
// signal routing and UI
// process | import("stdfaust.lib");
amp_drive = hslider("[0]Amp drive", 0.1, 0, 1, 0.01) : si.smoo;
xver_freq = hslider("[1]Crossover freq (Hz)", 800, 200, 8000, 0.01) : si.smoo;
bass_speed = hslider("[00]Bass speed (RPM)", 30, 5, 500, 0.01) : si.smoo;
bass_am_depth = hslider("[1]Bass AM depth", 1, 0, 10, 0.01) : si.smoo;
treble... |
b0c4605f60b6ed7959b0be9e2474944558f136e5c2677b51b20601dfdf22decf | orchidas/Music-256A | flanger.dsp | import("stdfaust.lib");
flangerMaxDelay = hslider("maxDelay",10,0,20,0.01)*0.001*ma.SR : si.smoo; //control either this parameter or depth
flangerDepth = hslider("depth",0,0,1,0.01) : si.smoo;
flangerSpeed = hslider("speed",1,0.1,10,0.01) : si.smoo;
gain = hslider("gain",1,0,1,0.01) : si.smoo;
gate = button("gate");
... | https://raw.githubusercontent.com/orchidas/Music-256A/46c465a3f004a00723088f918106a854af863d08/ofEffectsChain/src/faust/flanger.dsp | faust | control either this parameter or depth | import("stdfaust.lib");
flangerDepth = hslider("depth",0,0,1,0.01) : si.smoo;
flangerSpeed = hslider("speed",1,0.1,10,0.01) : si.smoo;
gain = hslider("gain",1,0,1,0.01) : si.smoo;
gate = button("gate");
flanger(maxDelay,depth,speed) = comb(delLength,depth)
with{
delLength = maxDelay*(os.osc(speed)+1)/2;
comb(delLen... |
84d362bcf6364dd67ac6c0b0575a971270beaad00c3131a18ed5880a6042765f | grame-cncm/faustdoc | exfaust43.dsp |
import("stdfaust.lib");
// IIR, comb filter
process = no.noise * hslider("noise", 0.5, 0, 1, 0.01) :
+ ~ transformation;
transformation = @(hslider("delay", 0, 0, 20, 1)) : *(hslider("gain", 0, -0.98, 0.98, 0.01));
| https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/workshops/2020-04-10-faust-101/exfaust43/exfaust43.dsp | faust | IIR, comb filter |
import("stdfaust.lib");
process = no.noise * hslider("noise", 0.5, 0, 1, 0.01) :
+ ~ transformation;
transformation = @(hslider("delay", 0, 0, 20, 1)) : *(hslider("gain", 0, -0.98, 0.98, 0.01));
|
c505d80e2cd15f3b80c4d9004d2f345b169e4c705c1e753586e6f222938c5c3c | grame-cncm/faustdoc | exfaust44.dsp |
import("stdfaust.lib");
// Karplus Strong (1/2)
process = no.noise * hslider("noise", 0.5, 0, 1, 0.01) :
+ ~ transformation;
transformation = @(hslider("delay", 0, 0, 200, 1)) : mean : *(hslider("gain", 0, -0.98, 0.98, 0.01));
mean(x) = (x+x')/2;
| https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/workshops/2020-04-10-faust-101/exfaust44/exfaust44.dsp | faust | Karplus Strong (1/2) |
import("stdfaust.lib");
process = no.noise * hslider("noise", 0.5, 0, 1, 0.01) :
+ ~ transformation;
transformation = @(hslider("delay", 0, 0, 200, 1)) : mean : *(hslider("gain", 0, -0.98, 0.98, 0.01));
mean(x) = (x+x')/2;
|
066681ca0ed815cbf784eb98667daf608b7efc559d577eee07d35871002e0b06 | grame-cncm/faustdoc | exfaust20.dsp |
import("stdfaust.lib");
// Karplus Strong (1/2)
process = no.noise * hslider("noise", 0.5, 0, 1, 0.01) :
+ ~ transformation;
transformation = @(hslider("delay", 0, 0, 200, 1)) : moyenne : *(hslider("gain", 0, -0.98, 0.98, 0.01));
moyenne(x) = (x+x')/2;
| https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/workshops/2020-03-24-faust-citi/exfaust20/exfaust20.dsp | faust | Karplus Strong (1/2) |
import("stdfaust.lib");
process = no.noise * hslider("noise", 0.5, 0, 1, 0.01) :
+ ~ transformation;
transformation = @(hslider("delay", 0, 0, 200, 1)) : moyenne : *(hslider("gain", 0, -0.98, 0.98, 0.01));
moyenne(x) = (x+x')/2;
|
07314ed613c866cea74d1d1b02db3e7c32ea758d9deb2a79de3dda59f10c5c74 | grame-cncm/faustdoc | exfaust19.dsp |
import("stdfaust.lib");
// IIR, Filtre en peigne
process = no.noise * hslider("noise", 0.5, 0, 1, 0.01) :
+ ~ transformation;
transformation = @(hslider("delay", 0, 0, 20, 1)) : *(hslider("gain", 0, -0.98, 0.98, 0.01));
| https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/workshops/2020-03-24-faust-citi/exfaust19/exfaust19.dsp | faust | IIR, Filtre en peigne |
import("stdfaust.lib");
process = no.noise * hslider("noise", 0.5, 0, 1, 0.01) :
+ ~ transformation;
transformation = @(hslider("delay", 0, 0, 20, 1)) : *(hslider("gain", 0, -0.98, 0.98, 0.01));
|
78e1d3a0a064ff8666ffb9b7f8467b9e180b0f2f27ddefa820073fcba2e73dda | orchidas/Music-256A | reverb.dsp | import ("stdfaust.lib");
//need to fix this to add gate button
fsmax = 48000;
rdel = hslider("in_delay", 60,20,100,0.1);
f1 = 200;
f2 = 6000;
t60dc = 3;
t60m = 2;
gate = button("gate");
process = hgroup("reverb", re.zita_rev1_stereo(rdel,f1,f2,t60dc,t60m,fsmax));
| https://raw.githubusercontent.com/orchidas/Music-256A/46c465a3f004a00723088f918106a854af863d08/ofEffectsChain/src/faust/reverb.dsp | faust | need to fix this to add gate button | import ("stdfaust.lib");
fsmax = 48000;
rdel = hslider("in_delay", 60,20,100,0.1);
f1 = 200;
f2 = 6000;
t60dc = 3;
t60m = 2;
gate = button("gate");
process = hgroup("reverb", re.zita_rev1_stereo(rdel,f1,f2,t60dc,t60m,fsmax));
|
2154b0dc93e5dd7c09bb688720b47f21b6e997b71811e9cafbb7b6584af3d560 | grame-cncm/faustdoc | exfaust45.dsp |
import("stdfaust.lib");
// Karplus Strong (2/2)
process = no.noise * hslider("noise", 0.5, 0, 1, 0.01)
: *(envelop)
: + ~ transformation;
transformation = @(hslider("delay", 0, 0, 200, 1)) : mean : *(hslider("gain", 0, -0.999, 0.999, 0.001));
mean(x) = (x+x')/2;
envelop = button("gate") : ... | https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/workshops/2020-04-10-faust-101/exfaust45/exfaust45.dsp | faust | Karplus Strong (2/2) |
import("stdfaust.lib");
process = no.noise * hslider("noise", 0.5, 0, 1, 0.01)
: *(envelop)
: + ~ transformation;
transformation = @(hslider("delay", 0, 0, 200, 1)) : mean : *(hslider("gain", 0, -0.999, 0.999, 0.001));
mean(x) = (x+x')/2;
envelop = button("gate") : upfront : en.ar(0.002, 0... |
ad514bffc0608de26fbae0f3fc12a57b477d2196f812459c57f18f506f66bb9b | grame-cncm/faustdoc | exfaust21.dsp |
import("stdfaust.lib");
// Karplus Strong (2/2)
process = no.noise * hslider("noise", 0.5, 0, 1, 0.01)
: *(envelop)
: + ~ transformation;
transformation = @(hslider("delay", 0, 0, 200, 1)) : moyenne : *(hslider("gain", 0, -0.999, 0.999, 0.001));
moyenne(x) = (x+x')/2;
envelop = button("gat... | https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/workshops/2020-03-24-faust-citi/exfaust21/exfaust21.dsp | faust | Karplus Strong (2/2) |
import("stdfaust.lib");
process = no.noise * hslider("noise", 0.5, 0, 1, 0.01)
: *(envelop)
: + ~ transformation;
transformation = @(hslider("delay", 0, 0, 200, 1)) : moyenne : *(hslider("gain", 0, -0.999, 0.999, 0.001));
moyenne(x) = (x+x')/2;
envelop = button("gate") : upfront : en.ar(0.... |
4cf37032063dbeb9f2b37e7c093773e96294ac044251a05ac200cecea22875a3 | orchidas/Music-256A | guitar.dsp | import("stdfaust.lib");
//freq = hslider("freq", 440, 20, 20000, 1); // Hz
gain = hslider("gain", 1, 0, 10, 0.01);
// Excitator
//-----------
upfront(x) = (x-x') > 0.0;
decay(n,x) = x - (x>0.0)/n;
release(n) = + ~ decay(n);
trigger(n) = upfront : release(n) : >(0.0);
size = hslider("excitation [unit:f]", 128,... | https://raw.githubusercontent.com/orchidas/Music-256A/46c465a3f004a00723088f918106a854af863d08/MidiPolyPlugin/Source/faust/guitar.dsp | faust | freq = hslider("freq", 440, 20, 20000, 1); // Hz
Excitator
-----------
resonator
------------
string frequency is modulated by sine wave, added to LPF and distorted | import("stdfaust.lib");
gain = hslider("gain", 1, 0, 10, 0.01);
upfront(x) = (x-x') > 0.0;
decay(n,x) = x - (x>0.0)/n;
release(n) = + ~ decay(n);
trigger(n) = upfront : release(n) : >(0.0);
size = hslider("excitation [unit:f]", 128, 2, 512, 1);
dur = hslider("duration [unit:f] [midi: ctrl 7]", 128, 2 ,512... |
648d7077bb011421e988de7d41f1c78a68bd90037a659772b7dde18e795d0d2f | xiaozhuo12138/StdSamples | nextprimeverb.dsp | import("stdfaust.lib");
// ------ comb
dflc(t, g) = (+ : de.delay(ma.SR, int(t-1)))~*(max(0, min(0.999, g))) : mem;
// ------ allpass
alp(t, g) = _<:(_*(ma.neg(max(0.5, min(0.9, g)))))+(dflc(t, g)*(1-(g*g)));
t = hslider("Largest T",2,2,24000,1);
fbk = hslider("FeedBack", 0.708, 0, 0.99, 0.01) : si.smoo;
np = ffuncti... | https://raw.githubusercontent.com/xiaozhuo12138/StdSamples/1a52fc6bf6e7600a503c0e5731bb1b9d2b077fef/Faust/faust-libraries/examples/cfunctions/nextprimeverb.dsp | faust | ------ comb
------ allpass | import("stdfaust.lib");
dflc(t, g) = (+ : de.delay(ma.SR, int(t-1)))~*(max(0, min(0.999, g))) : mem;
alp(t, g) = _<:(_*(ma.neg(max(0.5, min(0.9, g)))))+(dflc(t, g)*(1-(g*g)));
t = hslider("Largest T",2,2,24000,1);
fbk = hslider("FeedBack", 0.708, 0, 0.99, 0.01) : si.smoo;
np = ffunction(int next_pr(int), <nextprime.h... |
242a379fc6be19697586d5984451ceae3708125f02dbe2d467be9f8de60ca8bc | improvoid/EchoMatrix | EchoMatrix.dsp | declare name "EchoMatrix";
declare author "ImprovOid";
declare copyright "ImprovOid";
declare version "1.00";
declare license "BSD";
import("stdfaust.lib");
// Can change the number of delay lines and the matrix size
numberOfDelays = 6;
// Can change the max delay time, calculates samples
maxDelaySeconds = 2;
maxDel... | https://raw.githubusercontent.com/improvoid/EchoMatrix/b8f33983962802f770ee93754fd618a170dc5d2d/EchoMatrix.dsp | faust | Can change the number of delay lines and the matrix size
Can change the max delay time, calculates samples
Define the matrix mixer, can be any N x M size
Note the hslider label spec. It defines the knobs for the whole matrix
t:EchoMatrix : Defines a "t" tab pane called EchoMatrix, essentially the "top" level
/h:... | declare name "EchoMatrix";
declare author "ImprovOid";
declare copyright "ImprovOid";
declare version "1.00";
declare license "BSD";
import("stdfaust.lib");
numberOfDelays = 6;
maxDelaySeconds = 2;
maxDelayMsec = maxDelaySeconds * 1000.0;
maxDelaySamples = maxDelaySeconds * float(ma.SR);
minDelaySamples = ma.SR / 10... |
98837f4354f2dec5cdfc65aa2329c180da60bf17662ec671147cff4e7d32d7d3 | dblanchemain/MultiSpace3D | Auro51.dsp | declare name "objMatrixAuro51.dsp"; // modifier le nom de votre greffon
declare version "1.0";
declare author "D.Blanchemain";
declare license "BSD";
declare copyright "(c)D.Blanchemain 2020";
import("stdfaust.lib");
Matrix(N,M) =_*cdistance:filter:transpose:delay:freeverb<: par(out, M, *(Fader(1,... | https://raw.githubusercontent.com/dblanchemain/MultiSpace3D/5125d94de7f28e47c15e4432bba31a1ad7a51fb8/Plugins/DSP/Auro51.dsp | faust | modifier le nom de votre greffon
le deuxième chiffre permet de définir la dimension de votre espace :9,10, ...
-----------------------------------------------------------
LPF
-----------------------------------------------------------
-----------------------------------------------------------
... | declare version "1.0";
declare author "D.Blanchemain";
declare license "BSD";
declare copyright "(c)D.Blanchemain 2020";
import("stdfaust.lib");
Matrix(N,M) =_*cdistance:filter:transpose:delay:freeverb<: par(out, M, *(Fader(1,out): si.smoo)) :> par(out, M, _)
with {
tabSpeakerX(0)=-1.000;
tabSpeakerY(0)=... |
7f7435b1cb2059c19976dcea9943f7b329ed591340ac8468329f987606eedd7a | rbdannenberg/arco | sine_aa_a.dsp | declare name "sine";
declare description "Sine Unit Generator for Arco";
declare interoplate "amp";
import("stdfaust.lib");
process(freq, amp) =
os.osc(freq)*amp;
| https://raw.githubusercontent.com/rbdannenberg/arco/22385b6ba59d3e4a5b5d35c264080537d806fd04/ugens/sine_aa_a.dsp | faust | declare name "sine";
declare description "Sine Unit Generator for Arco";
declare interoplate "amp";
import("stdfaust.lib");
process(freq, amp) =
os.osc(freq)*amp;
| |
6463c63ce29e133b597db7b803fc8cdd53401521157b55b0cd154d0ff7d781f7 | rbdannenberg/arco | sine_ab_a.dsp | declare name "sine";
declare description "Sine Unit Generator for Arco";
declare interoplate "amp";
import("stdfaust.lib");
amp = nentry("amp", 0, 0, 1, 0.1);
process(freq) =
os.osc(freq)*amp;
| https://raw.githubusercontent.com/rbdannenberg/arco/22385b6ba59d3e4a5b5d35c264080537d806fd04/ugens/sine_ab_a.dsp | faust | declare name "sine";
declare description "Sine Unit Generator for Arco";
declare interoplate "amp";
import("stdfaust.lib");
amp = nentry("amp", 0, 0, 1, 0.1);
process(freq) =
os.osc(freq)*amp;
| |
ccda7f8a46cd2f4f84003c8ba458dd3ff2f1aaa4e5a9442354bc7d31e5c55a60 | rbdannenberg/arco | sine_ba_a.dsp | declare name "sine";
declare description "Sine Unit Generator for Arco";
declare interoplate "amp";
import("stdfaust.lib");
freq = nentry("freq", 0, 0, 1, 0.1);
process(amp) =
os.osc(freq)*amp;
| https://raw.githubusercontent.com/rbdannenberg/arco/22385b6ba59d3e4a5b5d35c264080537d806fd04/ugens/sine_ba_a.dsp | faust | declare name "sine";
declare description "Sine Unit Generator for Arco";
declare interoplate "amp";
import("stdfaust.lib");
freq = nentry("freq", 0, 0, 1, 0.1);
process(amp) =
os.osc(freq)*amp;
| |
280836c2aac8780ccd7542735acbd4279a9bb3134c634405cb9174b44be82435 | rbdannenberg/arco | sine_bb_a.dsp | declare name "sine";
declare description "Sine Unit Generator for Arco";
declare interoplate "amp";
import("stdfaust.lib");
freq = nentry("freq", 0, 0, 1, 0.1);
amp = nentry("amp", 0, 0, 1, 0.1);
process =
os.osc(freq)*amp;
| https://raw.githubusercontent.com/rbdannenberg/arco/22385b6ba59d3e4a5b5d35c264080537d806fd04/ugens/sine_bb_a.dsp | faust | declare name "sine";
declare description "Sine Unit Generator for Arco";
declare interoplate "amp";
import("stdfaust.lib");
freq = nentry("freq", 0, 0, 1, 0.1);
amp = nentry("amp", 0, 0, 1, 0.1);
process =
os.osc(freq)*amp;
| |
6f180ec96a533384ef286f60c7eb041771f57b96049489a51bbf3d892c0c6792 | rbdannenberg/arco | sineb_bb_b.dsp | declare name "sineb";
declare description "Sine Unit Generator for Arco";
declare interoplate "amp";
import("stdfaust.lib");
freq = nentry("freq", 0, 0, 1, 0.1);
amp = nentry("amp", 0, 0, 1, 0.1);
process =
os.osc(freq)*amp;
| https://raw.githubusercontent.com/rbdannenberg/arco/22385b6ba59d3e4a5b5d35c264080537d806fd04/ugens/sineb_bb_b.dsp | faust | declare name "sineb";
declare description "Sine Unit Generator for Arco";
declare interoplate "amp";
import("stdfaust.lib");
freq = nentry("freq", 0, 0, 1, 0.1);
amp = nentry("amp", 0, 0, 1, 0.1);
process =
os.osc(freq)*amp;
| |
ebee64aa32688c2b019b4bbdd96109ad93ed5f1495fccb8cb9416cdf253beb6f | grame-cncm/faustdoc | exfaust4.dsp |
import("stdfaust.lib");
// control variables
master = hslider("master", 0.3, 0, 2, 0.01);
pan = hslider("pan", 0.5, 0, 1, 0.01);
freq = nentry("freq [CV:1]", 440, 20, 20000, 1);
gate = button("gate [CV:2]");
gain = nentry("gain [CV:3]", 0.3, 0, 10, 0.01);
// relative amplitudes of the di... | https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/workshops/2020-11-21-faust-vcvrack/exfaust4/exfaust4.dsp | faust | control variables
relative amplitudes of the different partials
panner function
additive synth: 3 sine oscillators with adsr envelop |
import("stdfaust.lib");
master = hslider("master", 0.3, 0, 2, 0.01);
pan = hslider("pan", 0.5, 0, 1, 0.01);
freq = nentry("freq [CV:1]", 440, 20, 20000, 1);
gate = button("gate [CV:2]");
gain = nentry("gain [CV:3]", 0.3, 0, 10, 0.01);
amp(1) = hslider("amp1", 1.0, 0, 3, 0.01);
amp(2) = h... |
2ac0a1028f609760161d12c773c582f456a6dcce92735f4a17bf76712fd3534a | orchidas/Music-256A | karplus.dsp | //-----------------------------------------------
// karplus-strong
//-----------------------------------------------
import("stdfaust.lib");
freq = hslider("freq", 440, 20, 20000, 1); // Hz
gain = hslider("gain", 1, 0, 10, 0.01);
// Excitator
//-----------
upfront(x) = (x-x') > 0.0;
decay(n,x) = x - (x>0.0)... | https://raw.githubusercontent.com/orchidas/Music-256A/46c465a3f004a00723088f918106a854af863d08/MidiPolyPlugin/Source/faust/karplus.dsp | faust | -----------------------------------------------
karplus-strong
-----------------------------------------------
Hz
Excitator
-----------
resonator
------------
P = ma.SR/freq;
string frequency is modulated by sine wave, added to LPF and distorted |
import("stdfaust.lib");
gain = hslider("gain", 1, 0, 10, 0.01);
upfront(x) = (x-x') > 0.0;
decay(n,x) = x - (x>0.0)/n;
release(n) = + ~ decay(n);
trigger(n) = upfront : release(n) : >(0.0);
size = hslider("excitation [unit:f]", 128, 2, 512, 1);
dur = hslider("duration [unit:f] [midi: ctrl 7]", 128, 2 ,51... |
be8ebaa143d70cb2ae663fb0d3f3a315ed5183ed32e16f314cf6ce9f7ca2947e | grame-cncm/faustlive | organ.dsp |
declare name "organ -- a simple additive synth";
declare author "Albert Graef";
declare version "1.0";
import("stdfaust.lib");
// control variables
vol = hslider("vol", 0.3, 0, 10, 0.01); // %
pan = hslider("pan", 0.5, 0, 1, 0.01); // %
attack = hslider("attack", 0.01, 0, 1, 0.001); // sec
decay = hslider("decay", ... | https://raw.githubusercontent.com/grame-cncm/faustlive/9a9d5d550d6fffdb647e08aea0b5daf3279c9102/Resources/Examples/organ.dsp | faust | control variables
%
%
sec
sec
%
sec
Hz
%
0/1
additive synth: 3 sine oscillators with adsr envelop |
declare name "organ -- a simple additive synth";
declare author "Albert Graef";
declare version "1.0";
import("stdfaust.lib");
process = (os.osc(freq)+0.5*os.osc(2*freq)+0.25*os.osc(3*freq))
* (gate : vgroup("1-adsr", en.adsr(attack, decay, sustain, release)))
* gain : vgroup("2-master", *(vol) : sp.panner(pa... |
4a2ba35471c91c76abf01b6f3321fda5e04d3f3b70c19bce4d31f0d1f0a4ab71 | OceanSwift/Faust-Course-Examples | Phasor Triangle.dsp | import("stdfaust.lib");
phase(f) = f/ma.SR : (+,1:fmod) ~ _;
triangle(f) = (((phase(f)-0.5) : abs)*4)-1;
test(f) = os.triangle(f);
process = triangle(hslider("freq", 440, 40, 8000, 1)); | https://raw.githubusercontent.com/OceanSwift/Faust-Course-Examples/c3c779ab8257fae9563de4bc09ee71c5346bb1cd/Phasor%20Triangle.dsp | faust | import("stdfaust.lib");
phase(f) = f/ma.SR : (+,1:fmod) ~ _;
triangle(f) = (((phase(f)-0.5) : abs)*4)-1;
test(f) = os.triangle(f);
process = triangle(hslider("freq", 440, 40, 8000, 1)); | |
954b6d82c6a1b087cbbd48d8d8171a899dab9138dd6354d7501c47f1d3b4d231 | barnabycollins/MEng-Project | test.dsp | import("stdfaust.lib");
// DEFINITIONS
midifreq = hslider("freq[unit:Hz]", 440, 20, 20000, 1);
bend = ba.semi2ratio(hslider("pitchBend[midi:pitchwheel]", 0, -2, 2, 0.01));
frequency = vgroup("Frequency", midifreq*bend);
p10 = hslider("[10]MAIN_ENV_A (CC10)[midi:ctrl 10][scale:linear]", 0.01, 0, 10, 0.01) : si.smoo;
p1... | https://raw.githubusercontent.com/barnabycollins/MEng-Project/ff026917c6511303af8ca7cce4edc2fd8ab7bb96/src/test.dsp | faust | DEFINITIONS
PROCESS | import("stdfaust.lib");
midifreq = hslider("freq[unit:Hz]", 440, 20, 20000, 1);
bend = ba.semi2ratio(hslider("pitchBend[midi:pitchwheel]", 0, -2, 2, 0.01));
frequency = vgroup("Frequency", midifreq*bend);
p10 = hslider("[10]MAIN_ENV_A (CC10)[midi:ctrl 10][scale:linear]", 0.01, 0, 10, 0.01) : si.smoo;
p11 = hslider("[1... |
6fc154a6d9448b6d414778ee374890127b7a6023566837eccdb938e012384d78 | grame-cncm/faustdoc | exfaust34.dsp |
import("stdfaust.lib");
triangleWave = waveform{0,0.5,1,0.5,0,-0.5,-1,-.5};
triangleOsc(f) = triangleWave,int(os.phasor(8,f)) : rdtable;
f = hslider("freq",440,50,2000,0.01);
process = triangleOsc(f);
| https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/manual/syntax/exfaust34/exfaust34.dsp | faust |
import("stdfaust.lib");
triangleWave = waveform{0,0.5,1,0.5,0,-0.5,-1,-.5};
triangleOsc(f) = triangleWave,int(os.phasor(8,f)) : rdtable;
f = hslider("freq",440,50,2000,0.01);
process = triangleOsc(f);
| |
ad207f7d5bb05e1bc09288c32dc314736ba9e0940feac7404babddc159258891 | grame-cncm/faustdoc | exfaust89.dsp |
import("stdfaust.lib");
s = nentry("Selector",0,0,1,1);
sig = os.osc(440),os.sawtooth(440),os.triangle(440) : select3(s);
process = sig;
| https://raw.githubusercontent.com/grame-cncm/faustdoc/515c59ce7c4e390d3cf0fc518cd0d9f3ef7be262/docs/manual/syntax/exfaust89/exfaust89.dsp | faust |
import("stdfaust.lib");
s = nentry("Selector",0,0,1,1);
sig = os.osc(440),os.sawtooth(440),os.triangle(440) : select3(s);
process = sig;
| |
0236769bcfb9daabbaa5178f1b323b8779df769096ed661b0021cec472d18a3f | grame-cncm/faustdoc | exfaust90.dsp |
import("stdfaust.lib");
s = nentry("Selector",0,0,2,1) : int;
mySelect3(s) = *(s==0),*(s==1),*(s==2) :> _;
sig = os.osc(440),os.sawtooth(440),os.triangle(440) : mySelect3(s);
process = sig;
| https://raw.githubusercontent.com/grame-cncm/faustdoc/515c59ce7c4e390d3cf0fc518cd0d9f3ef7be262/docs/manual/syntax/exfaust90/exfaust90.dsp | faust |
import("stdfaust.lib");
s = nentry("Selector",0,0,2,1) : int;
mySelect3(s) = *(s==0),*(s==1),*(s==2) :> _;
sig = os.osc(440),os.sawtooth(440),os.triangle(440) : mySelect3(s);
process = sig;
| |
8436c8f77f5e347cba65dcd84ae62c111f4de15a04e627697510036f62c068ce | Bindernews/NESting | NESting.dsp |
declare name "SquareTri2A03";
import("stdfaust.lib");
import("soundfiles.lib");
declare options "[midi:on]";
grGeneral(x) = vgroup("Main", hgroup("General", x));
grRow2(x) = vgroup("Main", hgroup("Row 2", x));
midigate = grGeneral(checkbox("h:gate"));
midifreq = grGeneral(nentry("freq[unit:Hz]", 440, 20, 20000, 1))... | https://raw.githubusercontent.com/Bindernews/NESting/dc1bf9c38dc814d554d85066cb75c5d68a5de74b/NESting/NESting.dsp | faust | Unused, but maybe useful later
1.789773 MHz
2^11 = 2048 CPU cycles per phase value
////
Square Wave Generator
////
////
Triangle Wave Generator
////
From https://www.mattmontag.com/nesvst/triangle_wavetable.txt
Noise is implemented in C++.
////
DPCM Generator
////
We assume that our sample is already at the co... |
declare name "SquareTri2A03";
import("stdfaust.lib");
import("soundfiles.lib");
declare options "[midi:on]";
grGeneral(x) = vgroup("Main", hgroup("General", x));
grRow2(x) = vgroup("Main", hgroup("Row 2", x));
midigate = grGeneral(checkbox("h:gate"));
midifreq = grGeneral(nentry("freq[unit:Hz]", 440, 20, 20000, 1))... |
553d6492b3bcb7c56fc7441150f248c23fe915492da72c1ca635eb5fa404eafe | Bindernews/NESting | BlockTriangle.dsp | import("stdfaust.lib");
//declare options "[nvoices:4]";
generate(gain, freq) = ((rdtable(triWave,int(os.phasor(512,freq))) * 0.125) - 1.) * gain
with {
// From https://www.mattmontag.com/nesvst/triangle_wavetable.txt
triWave = waveform{8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9... | https://raw.githubusercontent.com/Bindernews/NESting/dc1bf9c38dc814d554d85066cb75c5d68a5de74b/NESting/BlockTriangle.dsp | faust | declare options "[nvoices:4]";
From https://www.mattmontag.com/nesvst/triangle_wavetable.txt | import("stdfaust.lib");
generate(gain, freq) = ((rdtable(triWave,int(os.phasor(512,freq))) * 0.125) - 1.) * gain
with {
triWave = waveform{8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
11, 11, 11, ... |
bc0dedae749e7140e6513bf8474a58a37d4a14cce3f500b82ede5dfe234b40f0 | grame-cncm/faustdoc | exfaust7.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 X/... | https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/examples/smartKeyboard/exfaust7/exfaust7.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 pad b... |
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 = hslide... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.