_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
1be650a915f49da4f5796efb4be030f4aa8e14a12d76e3e7cad728fab8ba4f24
luuuucaaa/faustGranulator
multichannel_noisegenerator_v1.dsp
// multi-channel noise generator N = 8; polyrandom(N) = scramble(N) ~ _ with {scramble(1) = * (1103515245) : + (12345); scramble(n) = scramble(1) <: scramble(n - 1), _; }; polynoise(N) = polyrandom(N) : par(i, N, / (2147483647.0));
https://raw.githubusercontent.com/luuuucaaa/faustGranulator/161bed38e164ba69726a91575597468ba2a5f1a0/multichannel_noisegenerator_v1.dsp
faust
multi-channel noise generator
N = 8; polyrandom(N) = scramble(N) ~ _ with {scramble(1) = * (1103515245) : + (12345); scramble(n) = scramble(1) <: scramble(n - 1), _; }; polynoise(N) = polyrandom(N) : par(i, N, / (2147483647.0));
fd56e19a07c7c8b3f527c410a217ecf2d93cf1802a2d47a816f4dcaba49d9d4e
luuuucaaa/faustGranulator
granulator_v2_7.dsp
declare name "Multichannel Data Granulator"; declare version "2.7"; declare author "Lukas Hartmann & Luca Hilbrich"; declare options "[osc:on]"; declare options "[midi:on]"; import("stdfaust.lib"); // USER INTERFACE // volumeSlider = vslider("h:/h:[0]Granulator/ [0]Volume [midi:ctrl 0]", 0.5, 0, 1, 0.01); // volum...
https://raw.githubusercontent.com/luuuucaaa/faustGranulator/161bed38e164ba69726a91575597468ba2a5f1a0/granulator_v2_7.dsp
faust
USER INTERFACE // volume slider pitch control (downsampling) number of grains grain size in samples delay length in samples position spread of grains CODE // samplerate in samples per second maximum numbers of grains volume slider size of input buffer in samples counter to cycle through the input buffer fr...
declare name "Multichannel Data Granulator"; declare version "2.7"; declare author "Lukas Hartmann & Luca Hilbrich"; declare options "[osc:on]"; declare options "[midi:on]"; import("stdfaust.lib"); windowSlider = vslider("h:/h:[0]Granulator/ [2]Window[style:radio{'Sine Window':window1;'Hamming Window':window2;'Fla...
3804b031268aa8b8ddcd040a419aa4d720540bec8fd5e12e1e964a6765890273
luuuucaaa/faustGranulator
granulator_v2_2.dsp
// USER INTERFACE // volumeSlider = hslider("Volume", 0.5, 0, 1, 0.01); // volume slider grainbufferSizeSlider = hslider("Grain Size", 1000, 1000, 10000, 1); // grain size in samples delayLengthSlider = hslider("Delay Length", 1000, 1000, 10000, 1); // delay length in samples pitchSlider = hslider("Pitch", 1, 0.1, 2, 0...
https://raw.githubusercontent.com/luuuucaaa/faustGranulator/161bed38e164ba69726a91575597468ba2a5f1a0/granulator_v2_2.dsp
faust
USER INTERFACE // volume slider grain size in samples delay length in samples pitch control/ downsampling CODE // samplerate in samples per second numbers of grains size of input buffer in samples counter to cycle through the input buffer from 0 to bufferSize set delay length with delay length slider size o...
Volume = volumeSlider; process = _ <: par(i, N, buffer(int(bufferCounter), int(grainCounter(i)), _) * window(i) * Volume * (i < N) / N) :> _ <: _, _;
0a8d2daf264fadbb19a137aaf31f1e92cd60e3b91a82d5cc51e66e479abc93cd
luuuucaaa/faustGranulator
granulator_v2_6.dsp
import("stdfaust.lib"); // USER INTERFACE // volumeSlider = vslider("h:/h:[0]Granulator/ [0]Volume", 0.5, 0, 1, 0.01); // volume slider grainbufferSizeSlider = vslider("h:/h:[1]Grain/ [2] Size", 0.1, 0.01, 0.5, 0.01); // grain size in samples delayLengthSlider = vslider("h:/h:[1]Grain/ [3] Delay", 2, 0.5, 2, 0.1); //...
https://raw.githubusercontent.com/luuuucaaa/faustGranulator/161bed38e164ba69726a91575597468ba2a5f1a0/granulator_v2_6.dsp
faust
USER INTERFACE // volume slider grain size in samples delay length in samples pitch control (downsampling) number of grains position spread of grains CODE // samplerate in samples per second maximum numbers of grains volume slider size of input buffer in samples counter to cycle through the input buffer fr...
import("stdfaust.lib"); reverb_spread_slider = vslider("h:/v:[2]Effects/ [0]Reverb Spread[unit:%][style:knob]", 0, 0, 100, 1); dry_wet = vslider("h:/v:[2]Effects/ [1]Dry Wet[style:knob]", 0.4, 0, 1, 0.001); filter_cuttoff = vslider("h:/v:[2]Effects/ [2]HPF[unit:Hz][style:knob]", 100, 100, 10000, 1); windowSlider = ...
57946f7c0358731af99a5870fb18d9a6935ead63f1b94be3ee9d8da7cd029884
luuuucaaa/faustGranulator
granulator_v2_1.dsp
// USER INTERFACE // grainOffsetSlider = hslider("Grain Offset", 100, 100, 10000, 1); // grain offset in samples grainSizeSlider = hslider("Grain Size", 1000, 1000, 100000, 1); // grain size in samples // CODE // SR = 44100; // samplerate in samples per second N = 1; // numbers of grains bufferSize = 3*SR; // size of...
https://raw.githubusercontent.com/luuuucaaa/faustGranulator/161bed38e164ba69726a91575597468ba2a5f1a0/granulator_v2_1.dsp
faust
USER INTERFACE // grain offset in samples grain size in samples CODE // samplerate in samples per second numbers of grains size of input buffer in samples counter to cycle through the input buffer from 0 to bufferSize size of grains in samples counter to cycle through the grains from 0 to grainSize offset fr...
grainPosition(i) = (grainCounter + grainOffset(i)); window(i) = sin(2 * 3.14159 * grainPosition(i) / (grainSize - 1));
ded6569c362f33b51d30e636664f4f3e8652f328d6f7b68f6c82ab2640810f93
luuuucaaa/faustGranulator
granulator_v2_3.dsp
// USER INTERFACE // volumeSlider = hslider("Volume", 0.5, 0, 1, 0.01); // volume slider grainbufferSizeSlider = hslider("Grain Size", 1000, 1000, 10000, 1); // grain size in samples delayLengthSlider = hslider("Delay Length", 1000, 1000, 10000, 1); // delay length in samples pitchSlider = hslider("Pitch", 1, 0.1, 2, ...
https://raw.githubusercontent.com/luuuucaaa/faustGranulator/161bed38e164ba69726a91575597468ba2a5f1a0/granulator_v2_3.dsp
faust
USER INTERFACE // volume slider grain size in samples delay length in samples pitch control/ downsampling CODE // samplerate in samples per second numbers of grains size of input buffer in samples counter to cycle through the input buffer from 0 to bufferSize set delay length with delay length slider size o...
Volume = volumeSlider; grainRandomStartPos(i) = int(SH(int(grainCounter(i)/(grainbufferSize-1)),int(delayLength*noise(i)))); polyRandom(n) = scramble(n) ~ _ with { scramble (n) = scramble(1) <: scramble(n - 1), _; }; polyNoise(n) = polyRandom(n) : par(i, n, /(RANDMAX)); noiseChan(n,0) = polyN...
407552ed33e5396952ede91fc3a27790eb2f4927a4f379ea9275e92f8ee8669f
HexHive/datAFLow
bug-221107.dsp
import("music.lib"); //-------------------------------- // bug du 22-nov-2007 (Christophe) //-------------------------------- T1(index) = rdtable(10000, sin(time/100), int(index*100)); //Low cpu cost sine calculation T2(index) = rdtable(1000, pow(2,(time/100)), int(index*100)); s1 = hslider("slider1",0, 0, 100, 1...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/bug-221107.dsp
faust
-------------------------------- bug du 22-nov-2007 (Christophe) -------------------------------- Low cpu cost sine calculation
import("music.lib"); T2(index) = rdtable(1000, pow(2,(time/100)), int(index*100)); s1 = hslider("slider1",0, 0, 100, 1); s2 = hslider("slider2",0, 0, 100, 1); process = T1(s1), T2(s2);
e52c7640ce957156534e18e95ec00a41df0053db041e5632c5e5ea50d2f1dfb7
HexHive/datAFLow
clipped_samplerate.dsp
import("math.lib"); process = _,(SR:float):@;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/clipped_samplerate.dsp
faust
import("math.lib"); process = _,(SR:float):@;
441494c277ed8b55bf7a4f3aa3666627fc2089cac09064bbf6f49a8b4a25f0d2
HexHive/datAFLow
vumeter.dsp
declare name "vumeter"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2006"; //------------------------------------------------- // Simple vumeter //------------------------------------------------- import("math.lib"); import("music.lib"); vmeter(x) = attach...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/vumeter.dsp
faust
------------------------------------------------- Simple vumeter -------------------------------------------------
declare name "vumeter"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2006"; import("math.lib"); import("music.lib"); vmeter(x) = attach(x, envelop(x) : vbargraph("[2][unit:dB]", -70, +5)); hmeter(x) = attach(x, envelop(x) : hbargraph("[2][unit:dB]", -70, +5...
b4937080d138842538a6188a794760c89251aa1721e12c2a25af2aa86120e485
HexHive/datAFLow
sharedelays.dsp
import("music.lib"); process = _ <: delay1s(200), delay1s(300) : +;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/sharedelays.dsp
faust
import("music.lib"); process = _ <: delay1s(200), delay1s(300) : +;
da34e539d00b44a46f0572e6cbe4dcecfea18385231fa2de165059521133b99a
HexHive/datAFLow
osci.dsp
declare name "osci"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2009"; //----------------------------------------------- // Sinusoidal Oscillator // (with linear interpolation) //----------------------------------------------- import("music.lib"); smo...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/osci.dsp
faust
----------------------------------------------- Sinusoidal Oscillator (with linear interpolation) -----------------------------------------------
declare name "osci"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2009"; import("music.lib"); smooth(c) = *(1-c) : +~*(c); vol = hslider("volume [unit:dB]", 0, -96, 0, 0.1) : db2linear : smooth(0.999) ; freq = hslider("freq [unit:Hz]", 564, 20, 24000, 1); ...
c6181eb84f38b003ae3abc8e061df671edf64ff1ea0344d144249833552aa9dd
HexHive/datAFLow
test14.dsp
process = (+ <: _, cos)~ sin : _,!;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/test14.dsp
faust
process = (+ <: _, cos)~ sin : _,!;
24e81bddbaf2d9f8945f89a0990a319480ae8bd5f51ddfe12e0a248498b55ac5
HexHive/datAFLow
tp2.dsp
// error detection process = nentry("part",0, -10, 10, 1), +(1)~_ : soundfile("tango.wav",4);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/tp2.dsp
faust
error detection
process = nentry("part",0, -10, 10, 1), +(1)~_ : soundfile("tango.wav",4);
4c1f30ea2c13e5e00258382c265ddfca919cfc97c372349b6b2b405ee9a7896f
HexHive/datAFLow
fst.granulator.dsp
//---------------------------- Granulator ------------------------------ import("music.lib"); //------------------------------------------------------------------ smooth(c) = *(1-c) : +~*(c); square(x) = x*x; noise2 = (+(12342) ~ *(1123915245))/RANDMAX; noise3 = (+(12345) ~ *(1094789245))/RANDMAX; noise4 = (+...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/fst.granulator.dsp
faust
---------------------------- Granulator ------------------------------ ------------------------------------------------------------------ ------------------------ User interface ----------------------- ------------------ Random variations calculation -------------- SnH Gives a random value when selector=1 and keeps it ...
import("music.lib"); smooth(c) = *(1-c) : +~*(c); square(x) = x*x; noise2 = (+(12342) ~ *(1123915245))/RANDMAX; noise3 = (+(12345) ~ *(1094789245))/RANDMAX; noise4 = (+(12312) ~ *(1103195245))/RANDMAX; size = nentry("1 grainsize",200,0.001,10000,1)*(44.1): smooth(0.99); sizevariation = fmin(nentry("2 siz...
89ae147972d2d53f0fce7139e5b880fd3a4a5edfb6c0f62e6e47ff028529300c
HexHive/datAFLow
phaser_flanger.dsp
ol = library("oscillator.lib"); fl = library("filter.lib"); el = library("effect.lib"); //process = ol.sawtooth_demo <: // el.flanger_demo : el.phaser2_demo :> fl.spectral_level_demo <: _,_; fx_stack = vgroup("[1]", ol.sawtooth_demo) <: vgroup("[2]", el.flanger_demo) : vgroup("[3]", el.phaser2_demo); level_vi...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/phaser_flanger.dsp
faust
process = ol.sawtooth_demo <: el.flanger_demo : el.phaser2_demo :> fl.spectral_level_demo <: _,_;
ol = library("oscillator.lib"); fl = library("filter.lib"); el = library("effect.lib"); fx_stack = vgroup("[1]", ol.sawtooth_demo) <: vgroup("[2]", el.flanger_demo) : vgroup("[3]", el.phaser2_demo); level_viewer(x,y) = attach(x,vgroup("[4]", fl.spectral_level_demo(x+y))),y; process = fx_stack : level_viewer;
26b65b3c1565d5388d4dca6a015de700d4aba6b9b8022d932cf25358ae589883
HexHive/datAFLow
good.dsp
process = 0.01 : (+,1.0:fmod)~_;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/good.dsp
faust
process = 0.01 : (+,1.0:fmod)~_;
681e6f5c51effd57e8ced7a5f78e79e37108e504135617da763d1068d26a60c3
HexHive/datAFLow
lowboost.dsp
declare name "lowboost"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2006"; //------------------------------------------------------------------ // DAFX, Digital Audio Effects (Wiley ed.) // chapter 2 : filters // section 2.3 : Equalizers // page 53 : seco...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/lowboost.dsp
faust
------------------------------------------------------------------ DAFX, Digital Audio Effects (Wiley ed.) chapter 2 : filters section 2.3 : Equalizers page 53 : second order shelving filter design ------------------------------------------------------------------ ------------------- low-frequency shelving boost ...
declare name "lowboost"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2006"; import("music.lib"); V0(g) = pow(10,g/20.0); K(fc) = tan(PI*fc/SR); square(x) = x*x; denom(fc) = 1 + sqrt(2)*K(fc) + square(K(fc)); lfboost(fc, g) = TF2( (1 + sqrt(2*V0(g...
102b47bcc55201de33376bc7a0227c55f75702d2d4cfbab5c962fe773b97ea5f
HexHive/datAFLow
waveform5.dsp
w1(x) = waveform {10,20,30,40,50},int(x):rdtable; process = *(sin(w1(4*hslider("value",0,0,1,0.01)))), w1(4*hslider("value",0,0,1,0.01));
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/waveform5.dsp
faust
w1(x) = waveform {10,20,30,40,50},int(x):rdtable; process = *(sin(w1(4*hslider("value",0,0,1,0.01)))), w1(4*hslider("value",0,0,1,0.01));
d0f11a47fc67a2a8f63a7bbf489382fc407d4c61f4a72ad5f7b637ff626141f7
HexHive/datAFLow
test7.dsp
fii(x) = (x+x')/2; foo = +~sin; faa = +~sin; process = +~fii : mem : mem;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/test7.dsp
faust
fii(x) = (x+x')/2; foo = +~sin; faa = +~sin; process = +~fii : mem : mem;
4129841a59afaf693078837a0c33fe4f5575f34cae487c870806f2764c481a2d
HexHive/datAFLow
error07.dsp
// WARNING : shadowed pattern-matching rule: (x) => x,3:*; previous rule was: (x) => x,2:*; foo(x) = x*2; foo(x) = x*3; process = foo(10);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/error07.dsp
faust
WARNING : shadowed pattern-matching rule: (x) => x,3:*; previous rule was: (x) => x,2:*;
foo(x) = x*2; foo(x) = x*3; process = foo(10);
df7a6c10ced54fccf1e9ff6bcb35ed16d5e8043b25257c5fb9ffd5a986fea523
HexHive/datAFLow
dimensioncheck_1.dsp
process = vectorize(4):serialize;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/dimensioncheck_1.dsp
faust
process = vectorize(4):serialize;
55157ceeee9095a2d24429bd87b8c0186e592bb1034b28a3822e8def83f5d939
HexHive/datAFLow
error27-tblsize-nonconst.dsp
import("music.lib"); foo(i) = rdtable(SR, time%6, i); process = foo(time%128);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/error27-tblsize-nonconst.dsp
faust
import("music.lib"); foo(i) = rdtable(SR, time%6, i); process = foo(time%128);
3c3dce2d8fc240c64477eb6bd68010836a246e2acfd10a38554ad2aad9c8d7f2
HexHive/datAFLow
badcpp.dsp
process = ffunction(float foof|foo|fool (float), <math.h>,"");
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/badcpp.dsp
faust
process = ffunction(float foof|foo|fool (float), <math.h>,"");
a07e5c4c6b4c5cdf5a217b175e28b87106aae2fc1c0a8e866a8ba91bfb285cfb
HexHive/datAFLow
mr_delay.dsp
process = vectorize(4):serialize:@(3);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/mr_delay.dsp
faust
process = vectorize(4):serialize:@(3);
6ac70644aaf28575ad3b3b033c2ae0965130fb6a9641fd3d347b2d1485496426
HexHive/datAFLow
noise.dsp
declare name "Noise"; declare version "1.1"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2009"; //----------------------------------------------------------------- // Noise generator and demo file for the Faust math documentation //-------------------------------------------------...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/noise.dsp
faust
----------------------------------------------------------------- Noise generator and demo file for the Faust math documentation -----------------------------------------------------------------
declare name "Noise"; declare version "1.1"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2009"; <mdoc> \section{Presentation of the "noise.dsp" Faust program} This program describes a white noise generator with an interactive volume, using a random function. \subsection{The rando...
ca9c07de38272ab298babf05c6d1aeb7ba51c349bd8262a27da1b8f4ca335313
HexHive/datAFLow
parabolic-env6.dsp
//----------------------------------------------- // // Parabolic Grain Envelop : from Ross Bencina // //----------------------------------------------- import("music.lib"); //---------------------------------------------------------------------- // RINTEGRATE : Resetable integrator // It integrates the values of x :...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/parabolic-env6.dsp
faust
----------------------------------------------- Parabolic Grain Envelop : from Ross Bencina ----------------------------------------------- ---------------------------------------------------------------------- RINTEGRATE : Resetable integrator It integrates the values of x : 0, x(0), x(0)+x(1), x(0)+x(1)+x(2),......
import("music.lib"); rintegrate(onoff) = (+:*(onoff))~_ : mem; integrate = rintegrate(1); grainenv(sdur, gamp, trig, sig) = (_|trig|trig' : amplitude : max(0)) ~ >(0) : *(sig) with { rdur = 1.0/sdur; rdur2 = rdur*rdur; curve = -8.0 * gamp * rdur2; slope(on) = 4 * gamp * (rdur - rdur2) + r...
fc54b08e69077804554f9991dba78988f7ab70578c8e4bf1f9f556ffe78e2b2c
HexHive/datAFLow
sound.dsp
process = 0,_~+(1):soundfile("son[url:{'sound1';'sound2'}]",4):!,!,_,_,_,_;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/sound.dsp
faust
process = 0,_~+(1):soundfile("son[url:{'sound1';'sound2'}]",4):!,!,_,_,_,_;
ac35c8322f08f19d622c59e2b5d9ec2cc9fcbc400803b4a16add0fc400155779
HexHive/datAFLow
castsimplify.dsp
// check that redondant cast are removed from the code process = (int : int), float, float(hslider("foo", 0, 0, 10, 1));
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/castsimplify.dsp
faust
check that redondant cast are removed from the code
process = (int : int), float, float(hslider("foo", 0, 0, 10, 1));
548646eefe32b9e0d0e687444736a7ae1adab3d5578b7cd4c1333ed4e272b1df
HexHive/datAFLow
rateconflict_2.dsp
up2 = vectorize(1) <: # : serialize; dw2 = vectorize(2) : [0]; up4 = up2:up2; dw4 = vectorize(4) : [0]; process = up2 ~ ( (up4~dw2) : dw2);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/rateconflict_2.dsp
faust
up2 = vectorize(1) <: # : serialize; dw2 = vectorize(2) : [0]; up4 = up2:up2; dw4 = vectorize(4) : [0]; process = up2 ~ ( (up4~dw2) : dw2);
c839f17490d3cb55cdbb587b2aa55b402360ef7661b06d7564dbd84f001ef433
HexHive/datAFLow
PM-bug20.dsp
// replace replace (x,y,(u:v)) = replace(x,y,u) : replace(x,y,v); replace (x,y,(u,v)) = replace(x,y,u) , replace(x,y,v); replace (x,y,(u<:v)) = replace(x,y,u) <: replace(x,y,v); replace (x,y,(u:>v)) = replace(x,y,u) :> replace(x,y,v); replace (x,y,(u~v)) = replace(x,y,u) ~ replace(x,y,v); replace (x,y,x) = y; repla...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/PM-bug20.dsp
faust
replace
replace (x,y,(u:v)) = replace(x,y,u) : replace(x,y,v); replace (x,y,(u,v)) = replace(x,y,u) , replace(x,y,v); replace (x,y,(u<:v)) = replace(x,y,u) <: replace(x,y,v); replace (x,y,(u:>v)) = replace(x,y,u) :> replace(x,y,v); replace (x,y,(u~v)) = replace(x,y,u) ~ replace(x,y,v); replace (x,y,x) = y; replace (x,y,u) = ...
c5e706574bc2fb545e06e336f0c7ea45b1dcbee21fe8e75d1b5dff0a3642b13b
HexHive/datAFLow
testif1.dsp
// Test real if if(c,t,e) = select2(c,e,t); process(x) = if(x<0, 0, x) : abs;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/testif1.dsp
faust
Test real if
if(c,t,e) = select2(c,e,t); process(x) = if(x<0, 0, x) : abs;
599bdb2cd571e8ad525b0bc29034f8e1fab744b1567aae7871b8b88ce53a3d79
HexHive/datAFLow
numsimplerr6.dsp
process = 0,0 : sin;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/numsimplerr6.dsp
faust
process = 0,0 : sin;
1b3c6165c67638f4d632a1074fbb563bf12e482d03362c35c603ec150970c751
HexHive/datAFLow
karplus32.dsp
declare name "karplus32"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2006"; //----------------------------------------------- // karplus-strong // with 32 resonators in parallel //----------------------------------------------- import("music.lib"); /...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/karplus32.dsp
faust
----------------------------------------------- karplus-strong with 32 resonators in parallel ----------------------------------------------- Excitator -------- Resonator ----------------- Polyphony -----------------
declare name "karplus32"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2006"; import("music.lib"); upfront(x) = (x-x') > 0.0; decay(n,x) = x - (x>0)/n; release(n) = + ~ decay(n); trigger(n) = upfront : release(n) : >(0.0) : +(leak); leak = 1.0/65536.0;...
6bb3020e57612bbf5fedfbff986c7f0ad56514ecb07b4777234b3ccc974f9396
HexHive/datAFLow
test2.dsp
import("music.lib"); process = TF2(1.25,1.73,1,1.73,1);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/test2.dsp
faust
import("music.lib"); process = TF2(1.25,1.73,1,1.73,1);
01da2bbb8ebf99d9da409543a084bd528c98fbab6ca696c58be11afde8c4baea
HexHive/datAFLow
midi_tester.dsp
declare name "Faust Midi Tester"; declare version "1.0"; declare author "Vincent Rateau, GRAME"; declare license "GPL v3"; declare reference "www.sonejo.net"; // FAUST MIDI TESTER process = _*0, (vgroup("FAUST MIDI TESTER", hgroup("[1]", controltester, noteontester, noteofftester, midiclockteste...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/midi_tester.dsp
faust
FAUST MIDI TESTER ///////////////////////// Ctrl tester (ctrl ): tester(midi in, midi out) Note tester (keyon) : tester(midi in, midi out) Note tester (keyoff) : tester(midi in, midi out) Midisync tester Key Aftertouch tester (keypress) : tester(midi in, midi out) ProgramChange tester (pgm) : tester(midi in, midi out)...
declare name "Faust Midi Tester"; declare version "1.0"; declare author "Vincent Rateau, GRAME"; declare license "GPL v3"; declare reference "www.sonejo.net"; process = _*0, (vgroup("FAUST MIDI TESTER", hgroup("[1]", controltester, noteontester, noteofftester, midiclocktester), hgroup("[2]", kat...
044cc99b88111b14be0d324082810fad955731593cc298f42660b78894c6a0d0
HexHive/datAFLow
mr_cast.dsp
process = int:vectorize(4):serialize:float;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/mr_cast.dsp
faust
process = int:vectorize(4):serialize:float;
a92246f942a86d00850f2c1207e1e722feeb25eab2e676ab1be6c63a69550e27
HexHive/datAFLow
uselessrec.dsp
process = *(3)~!;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/uselessrec.dsp
faust
process = *(3)~!;
8fdd1c261c270d2c80a721929783b949d23f5438dccd77745183922dba28c521
HexHive/datAFLow
PM-bug17.dsp
// example of not very explicit error message foo(x,y,y) = y*2; foo(x,y,z) = y*3; //process = 2:foo(1,2); //process = foo(1,1,1), ((1,1) : (foo(1,1), foo(1,2))); process = foo(1,1), foo(1,2);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/PM-bug17.dsp
faust
example of not very explicit error message process = 2:foo(1,2); process = foo(1,1,1), ((1,1) : (foo(1,1), foo(1,2)));
foo(x,y,y) = y*2; foo(x,y,z) = y*3; process = foo(1,1), foo(1,2);
84295ea03ced1773f9bb9206779f98bcf8872f5717b00eed4801baa52ba19df0
HexHive/datAFLow
shortdelays.dsp
// check short delay are correctly compiled process = _ <: sum(i,4, @(i+4)/(i+1));
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/shortdelays.dsp
faust
check short delay are correctly compiled
process = _ <: sum(i,4, @(i+4)/(i+1));
5f5f729494864445e9379dc0b325e9b1d60bbd076c2006df81ce473946a99753
HexHive/datAFLow
delay01.dsp
// now @ accepts float delays converted to int automatically process = @(7.3);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/delay01.dsp
faust
now @ accepts float delays converted to int automatically
process = @(7.3);
44dfac20dd191c37847c312fa3e09c45940545547c9af92440dffebdbc8e8237
HexHive/datAFLow
testpow2.dsp
// Test real if process(x) = 2*x^2 : /(x);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/testpow2.dsp
faust
Test real if
process(x) = 2*x^2 : /(x);
be7243a6cbb6101cf7e35c31f5ac174f86063f04f82cf66a10caa71365eb3fcd
HexHive/datAFLow
karplus.dsp
declare name "karplus"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2006"; //----------------------------------------------- // karplus-strong //----------------------------------------------- import("music.lib"); // Excitator //-------- upfront(x) =...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/karplus.dsp
faust
----------------------------------------------- karplus-strong ----------------------------------------------- Excitator -------- resonator -----------------
declare name "karplus"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2006"; import("music.lib"); 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 [...
b1e47556dda2e9d22cd11cdfdea4cd74117b4f3264a8a85ec1c00c72948542ac
HexHive/datAFLow
math.dsp
// Test of all math functions import("math.lib"); singleprecision my_INFINITY = 3.402823466e+38; doubleprecision my_INFINITY = 1.7976931348623158e+308; quadprecision my_INFINITY = 1.7976931348623158e+308; my_isnan = ffunction(int isnanf|isnan|isnanl (float),<math.h>,""); my_isinf = ffunction(int isinff|isinf|isinfl ...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/math.dsp
faust
Test of all math functions
import("math.lib"); singleprecision my_INFINITY = 3.402823466e+38; doubleprecision my_INFINITY = 1.7976931348623158e+308; quadprecision my_INFINITY = 1.7976931348623158e+308; my_isnan = ffunction(int isnanf|isnan|isnanl (float),<math.h>,""); my_isinf = ffunction(int isinff|isinf|isinfl (float),<math.h>,""); process...
75b70a6aad67a8b1030333cfae80bbe49a783c33f1972b26dc1b4cab666e1842
HexHive/datAFLow
bug-0994jpar.dsp
//------------------------------------------------- // bug découvert le 24 juillet 2008 en voulant // compiler sonik-cube // faust: generator/compile_scal.cpp:1095: // virtual std::string ScalarCompiler::generateFixDelay(CTree*, CTree*, CTree*): // Assertion `getVectorNameProperty(exp, vecname)' failed. //-------------...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/bug-0994jpar.dsp
faust
------------------------------------------------- bug découvert le 24 juillet 2008 en voulant compiler sonik-cube faust: generator/compile_scal.cpp:1095: virtual std::string ScalarCompiler::generateFixDelay(CTree*, CTree*, CTree*): Assertion `getVectorNameProperty(exp, vecname)' failed. ---------------------------...
process = vbargraph("dB", -96, 1) : @(10);
6e388968634a4ac8218b9fe99fc19adefa61edbabd5c3b18af8b12057800d916
HexHive/datAFLow
schema4.dsp
// exemple de schema illisible import("music.lib"); freq = hslider("freq", 440, 20, 20000, 0.1); partial(i) = osc(i*freq); partial0 = osc(0*freq); partial1 = osc(1*freq); partial2 = osc(2*freq); process = partial(0), partial1, partial(2);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/schema4.dsp
faust
exemple de schema illisible
import("music.lib"); freq = hslider("freq", 440, 20, 20000, 0.1); partial(i) = osc(i*freq); partial0 = osc(0*freq); partial1 = osc(1*freq); partial2 = osc(2*freq); process = partial(0), partial1, partial(2);
040c478340c7f3f6be2cd3d633e14ac30a5f109540bd3a9158c00573840ee066
HexHive/datAFLow
PM-bug12.dsp
// example of partially applied rules // transformed into a symbolic box foo(x,x,z) = z*2; foo(x,y,z) = z*3; process = foo(1,1), foo(2,1);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/PM-bug12.dsp
faust
example of partially applied rules transformed into a symbolic box
foo(x,x,z) = z*2; foo(x,y,z) = z*3; process = foo(1,1), foo(2,1);
791ec0d28a8d9f59066524f1f49b03bcd68ec99eeb6d3ec29447f02bfd2257e9
HexHive/datAFLow
error22.dsp
// can't compute interval of recursive signal filter = *(0.01) : +~*(0.99); d = hslider("delay", 0, 0, 1000, 1) : filter : int; process = @(d);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/error22.dsp
faust
can't compute interval of recursive signal
filter = *(0.01) : +~*(0.99); d = hslider("delay", 0, 0, 1000, 1) : filter : int; process = @(d);
c679181020dcf4b2daca43834973a4878c65dff4cb59f51ef95ae27c7d343f30
HexHive/datAFLow
intcast02.dsp
// variable (but bounded) delays using the @ operator process = @(hslider("delay (samples)", 0, 0, 10, 1));
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/intcast02.dsp
faust
variable (but bounded) delays using the @ operator
process = @(hslider("delay (samples)", 0, 0, 10, 1));
90859bb48b57b57420867196124453689c988387c71da2d01dcd1a77770f4743
HexHive/datAFLow
t2.dsp
// test that -pn option doesn't pass inside components main = component("foo.lib");
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/t2.dsp
faust
test that -pn option doesn't pass inside components
main = component("foo.lib");
f0bc3d2a1e04edb0f1897dbe80384e8e3a8d42ded618092d122d8b1ace90d9ba
HexHive/datAFLow
parametric_eq.dsp
ol = library("oscillator.lib"); fl = library("filter.lib"); //process = ol.sawtooth_demo : fl.parametric_eq_demo : // fl.mth_octave_spectral_level_demo(2) <: _,_; process = vgroup("[1]", ol.sawtooth_demo) : vgroup("[2]", fl.parametric_eq_demo) : vgroup("[3]", fl.mth_octave_spectral_level_demo(2)) <...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/parametric_eq.dsp
faust
process = ol.sawtooth_demo : fl.parametric_eq_demo : fl.mth_octave_spectral_level_demo(2) <: _,_;
ol = library("oscillator.lib"); fl = library("filter.lib"); process = vgroup("[1]", ol.sawtooth_demo) : vgroup("[2]", fl.parametric_eq_demo) : vgroup("[3]", fl.mth_octave_spectral_level_demo(2)) <: _,_;
3f063d219b9f6a5cdbab12d15df937ae4e9b1e8fc1cdb75fae87472512c913d9
HexHive/datAFLow
multirate_3.dsp
process = <:#;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/multirate_3.dsp
faust
process = <:#;
e78f366a391f2a99b99412089de8a0657bc22cf97868ecb87b9d3933a0e2b425
HexHive/datAFLow
test26.dsp
//mise en cache des expressions recursives x = 1:+~_; y = 2:*~_; foo(x,y,u,v) = x+y+u, y-x+v; process = foo~(_,_);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/test26.dsp
faust
mise en cache des expressions recursives
x = 1:+~_; y = 2:*~_; foo(x,y,u,v) = x+y+u, y-x+v; process = foo~(_,_);
1f5d4fbdfe6fe018c464d85806c6a0f40bfd00bd1d1024c481a40523658a020b
HexHive/datAFLow
test21.dsp
d = hslider("delay", 0, 0, 1000, 1) : int; process = @(d);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/test21.dsp
faust
d = hslider("delay", 0, 0, 1000, 1) : int; process = @(d);
9162df61bf68d3a40dcb7e7cb0f26261e78c2b6804573e38ce97784c854a43e6
HexHive/datAFLow
felix1.dsp
import("math.lib"); import("music.lib"); process = delay(512, hypot(2,4)); zprocess = 512 + hypot(2,4); xprocess = 512 + hypot(2,button("foo"));
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/felix1.dsp
faust
import("math.lib"); import("music.lib"); process = delay(512, hypot(2,4)); zprocess = 512 + hypot(2,4); xprocess = 512 + hypot(2,button("foo"));
e5729e930eb45d75bc46e9fd80a635e272cbb89c82b5f4217a1043f276e5c15b
HexHive/datAFLow
path3.dsp
foo(n,x,y) = vgroup( "foo %n", *(x*y)); process = tgroup("toto", par(i, 4, foo(i, hslider("slid1", 0,0,1,0.1), hslider("/t:toto/slid2", 0,0,1,0.1))));
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/path3.dsp
faust
foo(n,x,y) = vgroup( "foo %n", *(x*y)); process = tgroup("toto", par(i, 4, foo(i, hslider("slid1", 0,0,1,0.1), hslider("/t:toto/slid2", 0,0,1,0.1))));
382bd9c1c8134eac9a089a2e2b90ca264b47de84e895bcf3c5ae4da7430768c3
HexHive/datAFLow
20091211-hbg-bug.dsp
// Faust Template process = hbargraph("toto", -1, 1);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/20091211-hbg-bug.dsp
faust
Faust Template
process = hbargraph("toto", -1, 1);
dd724f8204faeeaf474a1a43b55fb80c707c41b79a692fe4701012c9a2f315ef
HexHive/datAFLow
error04.dsp
//ERROR : inconsistent number of parameters in pattern-matching rule: (x,y) => -; previous rule was: (5) => +; // Faust should complain about inconsistent number of patterns // between the foo rules foo (5) = +; foo (x,y) = -; process = foo(3,2);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/error04.dsp
faust
ERROR : inconsistent number of parameters in pattern-matching rule: (x,y) => -; previous rule was: (5) => +; Faust should complain about inconsistent number of patterns between the foo rules
foo (5) = +; foo (x,y) = -; process = foo(3,2);
8876d76aac54399c8a526febc8d942b174443a35de271adaa52e9da234b3528f
HexHive/datAFLow
intcast01.dsp
process = int(int(hslider("toto", 0, -10, 10, 0.1))) : int;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/intcast01.dsp
faust
process = int(int(hslider("toto", 0, -10, 10, 0.1))) : int;
0b50daf04b35e03bf62dba94d64d7c7f81b1fca92bd3d2e9ee5e3af6520aec78
HexHive/datAFLow
bug090728.dsp
// This code (provided by Felix pfeifer.felix@googlemail.com) takes exponential time to compile // The problem has been corrected in faust 0996b7 import("math.lib"); import("music.lib"); ndots = 40; // integer ! minimal possible value is 4 /// exponential compile time, change this value diffy = hslider("DiffY", 1, 0...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/bug090728.dsp
faust
This code (provided by Felix pfeifer.felix@googlemail.com) takes exponential time to compile The problem has been corrected in faust 0996b7 integer ! minimal possible value is 4 / exponential compile time, change this value /### these are the lines, that cause the exponentially increasing compile time ###
import("math.lib"); import("music.lib"); diffy = hslider("DiffY", 1, 0, 1, 0.001); dots = hslider("Dots", 4, 4, ndots, 1); freqrange = hslider("Freqrange", 0, 0, 1000, 0.001); freqcenter = hslider("Freqcenter", 100, 20, 5000, 0.001); SH(trig,x) = (*(1 - trig) + x * trig) ~ _; switchN(n, s) = par(i, n , _*(i==s)):>_...
189f34ac8da4febc96826b3fa446503db6b474e555ed44a2a054c9b3ff7a89cc
HexHive/datAFLow
cubic_distortion.dsp
declare name "cubic_distortion"; ol = library("oscillator.lib"); fl = library("filter.lib"); el = library("effect.lib"); process = // ol.oscr_demo : el.cubicnl_demo : fl.spectral_level_demo <: _,_; vgroup("[1]",ol.oscr_demo) : vgroup("[2]",el.cubicnl_demo) : vgroup("[3]",fl.spectral_level_demo) <: _,_;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/cubic_distortion.dsp
faust
ol.oscr_demo : el.cubicnl_demo : fl.spectral_level_demo <: _,_;
declare name "cubic_distortion"; ol = library("oscillator.lib"); fl = library("filter.lib"); el = library("effect.lib"); process = vgroup("[1]",ol.oscr_demo) : vgroup("[2]",el.cubicnl_demo) : vgroup("[3]",fl.spectral_level_demo) <: _,_;
3dc6f31ace6542d9cafd6bb79a203844d6a87bf31fa0bff0e27c8a700aee5b68
HexHive/datAFLow
ratepass_7.dsp
up2 = vectorize(1) <: # : serialize; dw3 = vectorize(3) : [0]; process = up2 : dw3;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/ratepass_7.dsp
faust
up2 = vectorize(1) <: # : serialize; dw3 = vectorize(3) : [0]; process = up2 : dw3;
cc4cfc02c3c34adae83a4a4289b4dfed7b43e3bcfcd46d43d909ee5ef288ff96
HexHive/datAFLow
precision.dsp
// teste la précision des valeurs process = waveform {-1.83767764006829192879877155064605e+00,-1.83767764006829192879877155064606e+00,2,3,4,5,6,7,8,9, 1.2, 1.02, 1.002, 1.0002, 1.00002, 1.000002, 1.0000002, 1.00000002, 1.000000002, 1.0000000002, 1.00000000002, 1.000000000002, 1.0000000000002, 1.0000000000...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/precision.dsp
faust
teste la précision des valeurs
process = waveform {-1.83767764006829192879877155064605e+00,-1.83767764006829192879877155064606e+00,2,3,4,5,6,7,8,9, 1.2, 1.02, 1.002, 1.0002, 1.00002, 1.000002, 1.0000002, 1.00000002, 1.000000002, 1.0000000002, 1.00000000002, 1.000000000002, 1.0000000000002, 1.00000000000002, 1.000000000000002, 1.00000...
39c158f86395d7fb928c35fbbfd8c0376e8142ef5f6139bbc86249f860b9c4b9
HexHive/datAFLow
highShelf.dsp
import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x) = highShelf(x,F,G,Q);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/highShelf.dsp
faust
import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x) = highShelf(x,F,G,Q);
824d0fbc27c01444cde663e09d903d017580a012901ef8dc285e045016042c57
HexHive/datAFLow
test8.dsp
// partage des expressions interieur exterieur foo = +~sin; process = foo : mem : sin;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/test8.dsp
faust
partage des expressions interieur exterieur
foo = +~sin; process = foo : mem : sin;
3648e98cb4c9c5c7ce537b42c3b4945d9dca79fe0c0c81eb0313d06c65b95f02
HexHive/datAFLow
schema3.dsp
// exemple de schema illisible import("music.lib"); fold = case { (1,f,x) => x(0); (n,f,x) => f(fold(n-1,f,x),x(n-1)); }; fpar(n) = fold(n,\(x,y).(x,y)); freq = hslider("freq", 440, 20, 20000, 0.1); partial(i) = osc(i*freq); process = fpar(5, partial);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/schema3.dsp
faust
exemple de schema illisible
import("music.lib"); fold = case { (1,f,x) => x(0); (n,f,x) => f(fold(n-1,f,x),x(n-1)); }; fpar(n) = fold(n,\(x,y).(x,y)); freq = hslider("freq", 440, 20, 20000, 0.1); partial(i) = osc(i*freq); process = fpar(5, partial);
c91b26ce496c4e5cca04835f0648a90bc11bd0bafdbedfd1574a9905c9fc031b
HexHive/datAFLow
BPF.dsp
import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x) = BPF(x,F,G,Q);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/BPF.dsp
faust
import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x) = BPF(x,F,G,Q);
4b0a80be1f4508187f1961e883b118f1f049941c617d89c102c70ab906b2be2d
HexHive/datAFLow
PM-bug3-4.dsp
toto (n) = fact(n) with { fact (0) = 1; fact (n) = n*fact(n-1); }; foo (x:y) = (y:x); process = foo(sin:sqrt);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/PM-bug3-4.dsp
faust
toto (n) = fact(n) with { fact (0) = 1; fact (n) = n*fact(n-1); }; foo (x:y) = (y:x); process = foo(sin:sqrt);
38c92937afa735a99aa7748cf4c33d9593df734566836249bc77968babe141f7
HexHive/datAFLow
tapiir.dsp
declare name "tapiir"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2006"; //====================================================== // // TAPIIR // (from Maarten de Boer's Tapiir) // //============================...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/tapiir.dsp
faust
====================================================== TAPIIR (from Maarten de Boer's Tapiir) ====================================================== user interface --------------- mixer and matrix ----------------------------------------------------------- tapiir --------
declare name "tapiir"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2006"; import("music.lib"); dsize = 524288; tap(n) = vslider("tap %n", 0,0,1,0.1); in(n) = vslider("input %n", 1,0,1,0.1); gain = vslider("gain", 1,0,1,0.1); del ...
88162b82470ffc93100c810bb3229b8c8fb61de877d76bc739d35cc1ba9c4c27
HexHive/datAFLow
error05.dsp
//ERROR : inconsistent number of parameters in pattern-matching rule: (x,z) => z; previous rule was: (x,x,z) => x; // test for unconsistent pattern matching rules fuu (x,x,z) = x; fuu (x,z) = z; process = fuu(1,1), fuu(1,2);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/error05.dsp
faust
ERROR : inconsistent number of parameters in pattern-matching rule: (x,z) => z; previous rule was: (x,x,z) => x; test for unconsistent pattern matching rules
fuu (x,x,z) = x; fuu (x,z) = z; process = fuu(1,1), fuu(1,2);
7015fc7d84bd634a577db5418eb7de8e1b2d7d98819fea1390b0c191d29c71b0
HexHive/datAFLow
SHbug.dsp
// Bug discovered June 30, 2009 // partial application of primitives should work // myselect2(t,a,b)=select2(t,a,b); sampleAndHold(t) = select2(t,_) ~ _; process = sampleAndHold(int(button("sample")));
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/SHbug.dsp
faust
Bug discovered June 30, 2009 partial application of primitives should work
myselect2(t,a,b)=select2(t,a,b); sampleAndHold(t) = select2(t,_) ~ _; process = sampleAndHold(int(button("sample")));
b40500694c213006cf540bd86058e5fa82baa37496b9660e53e12c6d534f816d
HexHive/datAFLow
test9.dsp
// partage des expressions lentes vol = hslider("vol", 0, 0, 1, 0.1); process = +~*(sin(vol));
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/test9.dsp
faust
partage des expressions lentes
vol = hslider("vol", 0, 0, 1, 0.1); process = +~*(sin(vol));
546559deca2a31621175b937cd240560e01d95c2469958c05c3ee4ee9865dcb2
HexHive/datAFLow
peakingEQ.dsp
import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x) = peakingEQ(x,F,G,Q);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/peakingEQ.dsp
faust
import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x) = peakingEQ(x,F,G,Q);
cc457749cf9db52a7df6527b56235197443a383ea5e1e6362da012fd24838f52
HexHive/datAFLow
numsimplerr5.dsp
process = 0,0,0 : +;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/numsimplerr5.dsp
faust
process = 0,0,0 : +;
dc13818a321be2d5cfeb34fc29aff5e7bb0a7e2f45dfce8bd968ff92d39aa3fb
HexHive/datAFLow
comb_delay1.dsp
import("music.lib"); // 10 samples delay modulation modulator = @(osc(1000) : +(1) : *(5) : min(10) : max(0)); fix = @(100); source = osc(440); process = source : modulator : fix;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/comb_delay1.dsp
faust
10 samples delay modulation
import("music.lib"); modulator = @(osc(1000) : +(1) : *(5) : min(10) : max(0)); fix = @(100); source = osc(440); process = source : modulator : fix;
fd274de5722f92b325eaedfbd7428ecb3e8e7d4b860127e524c9dc07ee2372a0
HexHive/datAFLow
test13.dsp
process = (+ <: _, cos)~ sin;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/test13.dsp
faust
process = (+ <: _, cos)~ sin;
3a268fa15450a8c54377cbb465081094f4eb3c8c3bf647993bb7aeada4e7dcc3
HexHive/datAFLow
spectral_tilt.dsp
// example exercising filter.lib's spectral_tilt_demo N = 10; // Number of pole-zero pairs to use process = sig(ol.sawtooth_demo) : stg(el.bypass1(bp,fl.spectral_tilt_demo(N))) <: sag(fl.spectral_level_demo) with { fl = library("filter.lib"); ol = library("oscillator.lib"); el = library("effect.lib")...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/spectral_tilt.dsp
faust
example exercising filter.lib's spectral_tilt_demo Number of pole-zero pairs to use
process = sig(ol.sawtooth_demo) : stg(el.bypass1(bp,fl.spectral_tilt_demo(N))) <: sag(fl.spectral_level_demo) with { fl = library("filter.lib"); ol = library("oscillator.lib"); el = library("effect.lib"); bp = stg(checkbox("[0] Bypass Spectral Tilt")); stg(x) = vgroup( "[1] Spectral Tilt...
50a2ffb87579442fb18dc3b6212491fb232e99b0eb7fad0044724aaa9d89a93b
HexHive/datAFLow
carre_volterra.dsp
/************************************************************ * Travaux dirigés sur les séries de Volterra * Programmation d'un filtre Moog simplifié en FAUST * * M2R ATIAM, UE TSM * Thomas Hélie et Yann Orlarey ******************************************************...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/carre_volterra.dsp
faust
*********************************************************** * Travaux dirigés sur les séries de Volterra * Programmation d'un filtre Moog simplifié en FAUST * * M2R ATIAM, UE TSM * Thomas Hélie et Yann Orlarey ********************************************************...
import("oscillator.lib"); import("effect.lib"); process = C, 0 : M : M : M : M : S; C = square(freq) + square(freq+delta) : *(level) with { freq = hslider("freq carre", 440, 20, 8000, 1); delta = hslider("delta", 2, 0, 6, 0.1); level = hslider("level",0.5, 0, 1, 0.01); }; M(x,y) = F1(x), F1(x^3 - F1(x)...
ca35ca2c42fac2ccd0c91b6e8d0ddc90d2c0499d514cdf2e1e9a9c4a969c7742
HexHive/datAFLow
mr_undersample.dsp
up2 = vectorize(1) <: # : serialize; dw2 = vectorize(2) : [0]; filter = _<:_,@(1):+:*(0.5); process = *(2):dw2:exp:filter:up2;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/mr_undersample.dsp
faust
up2 = vectorize(1) <: # : serialize; dw2 = vectorize(2) : [0]; filter = _<:_,@(1):+:*(0.5); process = *(2):dw2:exp:filter:up2;
a1dff1067d0cc9245c7c926a77e541eb2767da3db794ae8e59a6908d94908023
HexHive/datAFLow
test11.dsp
import("music.lib"); //foo (d) = (+:delay1s(d)) ~ _; foo (d) = (+:@(d)) ~ _; process = _ <: foo(30), foo(20);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/test11.dsp
faust
foo (d) = (+:delay1s(d)) ~ _;
import("music.lib"); foo (d) = (+:@(d)) ~ _; process = _ <: foo(30), foo(20);
2a5deec7f912ed791382365fe46e6fc7cd388aab27d2da89ff8195fd96f0c18d
HexHive/datAFLow
dimensioncheck_3.dsp
process = vectorize(2)<:#:serialize;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/dimensioncheck_3.dsp
faust
process = vectorize(2)<:#:serialize;
01ce994d6fd1a51be905c2457ab371a0d0addce978874c95c9e112916994eddc
HexHive/datAFLow
PM-bug1.dsp
// ------------------------------------------------------------------ // In this example the two choice0 should give the same operation (/) // But this is not the case as "3,6:foo:/" is not correctly // simplified to 2. //------------------------------------------------------------------- foo(x,y) = (y,x); ...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/PM-bug1.dsp
faust
------------------------------------------------------------------ In this example the two choice0 should give the same operation (/) But this is not the case as "3,6:foo:/" is not correctly simplified to 2. -------------------------------------------------------------------
foo(x,y) = (y,x); choice0 = case { (1) => *; (2) => /; (x) => +; }; process = choice0((6,3:/)), choice0((3,6:foo:/));
95d06e4ec48a353160db50e892f074309c2fd7623e6fc2ec14a9b20f1c9ecd65
HexHive/datAFLow
parabolic-env.dsp
durationSamples = 100; grainAmplitude = 2.8; rdur = 1.0/durationSamples; rdur2 = rdur*rdur; curve = -8.0 * grainAmplitude * rdur2; slope = 4* grainAmplitude * (rdur - rdur2) + (curve : +~_:mem); amplitude = slope : + ~_:mem; process = slope, amplitude;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/parabolic-env.dsp
faust
durationSamples = 100; grainAmplitude = 2.8; rdur = 1.0/durationSamples; rdur2 = rdur*rdur; curve = -8.0 * grainAmplitude * rdur2; slope = 4* grainAmplitude * (rdur - rdur2) + (curve : +~_:mem); amplitude = slope : + ~_:mem; process = slope, amplitude;
d5a596c7241c3f597b637c07100ac356c51406231f13ac88badaeac64591d7ed
HexHive/datAFLow
test14bis.dsp
// bug dans version 0.9.9.3-bis // (ne se produit pas avec les version 0.9.9.2 et 0.9.9.3) // le compilateur se plaint de ne pas avoir de type associé // à la deuxième sortie qui est pourtant inutilisée process = (+ <: _, _)~ _ : _,!;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/test14bis.dsp
faust
bug dans version 0.9.9.3-bis (ne se produit pas avec les version 0.9.9.2 et 0.9.9.3) le compilateur se plaint de ne pas avoir de type associé à la deuxième sortie qui est pourtant inutilisée
process = (+ <: _, _)~ _ : _,!;
340030ebd0af7d92e0ba17e59322813abf4fbbb171e5fa587dd8110c78de9420
HexHive/datAFLow
granulator1.dsp
//----------------------------------------------- // // Parabolic Grain Envelop : from Ross Bencina // //----------------------------------------------- import("music.lib"); //---------------------------------------------------------------------- // RINTEGRATE : Resetable integrator // It integrates the values of x :...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/granulator1.dsp
faust
----------------------------------------------- Parabolic Grain Envelop : from Ross Bencina ----------------------------------------------- ---------------------------------------------------------------------- RINTEGRATE : Resetable integrator It integrates the values of x : 0, x(0), x(0)+x(1), x(0)+x(1)+x(2),......
import("music.lib"); rintegrate(onoff) = (+:*(onoff))~_ : mem; integrate = rintegrate(1); grainenv(sdur, gamp, trig, sig) = (_|trig|trig' : amplitude : max(0)) ~ >(0) : *(sig) with { rdur = 1.0/sdur; rdur2 = rdur*rdur; curve = -8.0 * gamp * rdur2; slope(on) = 4 * gamp * (rdur - rdur2) + r...
1e45103935f66b34d0c381abc1bd8c02d4bd560e056315914d0eb58c2c05e0a9
HexHive/datAFLow
reverb_tester.dsp
import("effect.lib"); process(x,y) = stereo_reverb_tester(gui_group,x,y) with { gui_group(x) = hgroup("Stereo Reverb Tester",x); stereo_reverb_tester(revin_group,x,y) = inx,iny with { ck_group(x) = revin_group(vgroup("[1] Input Config",x)); mutegain = 0; pinkin = ck_group(checkbox("[2] Pink Noise [to...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/reverb_tester.dsp
faust
import("effect.lib"); process(x,y) = stereo_reverb_tester(gui_group,x,y) with { gui_group(x) = hgroup("Stereo Reverb Tester",x); stereo_reverb_tester(revin_group,x,y) = inx,iny with { ck_group(x) = revin_group(vgroup("[1] Input Config",x)); mutegain = 0; pinkin = ck_group(checkbox("[2] Pink Noise [to...
3395a6afb6a53cf3080b58d4b9b893eb8b8551e53a61bf4ae9cdcabe116780a0
HexHive/datAFLow
surface.dsp
// Modeling a 2D surface with a von neumann surface(X,Y) = route(X*Y, X*Y, par(x, X, par(y, Y, neighborhood(X,Y).vonNeumann(x,y) ) ) ); // von Neumann neighborhood (or 4-neighborhood) neighborhood(X,Y) = environment { vonNeumann(x,y) = (coord(x,y), coord(x+1,y)), (coo...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/surface.dsp
faust
Modeling a 2D surface with a von neumann von Neumann neighborhood (or 4-neighborhood) 0 1 2 3 4 5 6 7 8 0 1 2 3
surface(X,Y) = route(X*Y, X*Y, par(x, X, par(y, Y, neighborhood(X,Y).vonNeumann(x,y) ) ) ); neighborhood(X,Y) = environment { vonNeumann(x,y) = (coord(x,y), coord(x+1,y)), (coord(x,y), coord(x-1,y)), (coord(x,y), coord(x,y+1)), (coord(x,y), coord(x,y-1)...
e5637d9fa84ae350a821552f2f43f87eea74548ce2e055b9c94ec2a5bf231faf
HexHive/datAFLow
20100313-ffdelay-bug.dsp
//------------------------------------------------------------------------------- // bug corrected in version 0.9.14 //------------------------------------------------------------------------------- // No vector name for : f() // faust: generator/compile_scal.cpp:1067: // virtual std::string ScalarCompiler::generateFi...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/20100313-ffdelay-bug.dsp
faust
------------------------------------------------------------------------------- bug corrected in version 0.9.14 ------------------------------------------------------------------------------- No vector name for : f() faust: generator/compile_scal.cpp:1067: virtual std::string ScalarCompiler::generateFixDelay(CTree...
f = ffunction(float f(), <math.h>, ""); process = f : mem;
279fbd45734d67432f976c9c75d9a260de2edf3528991cf995692c0e208c59d6
HexHive/datAFLow
dimensioncheck_5.dsp
process = vectorize(2)<:+:abs:serialize;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/dimensioncheck_5.dsp
faust
process = vectorize(2)<:+:abs:serialize;
6a80955c73b5595aeaaebd6a41c6c2f5c96621e2c7e881ad18fdd1c5c8e353b1
HexHive/datAFLow
harpe.dsp
//----------------------------------------------- // Basic harpe simulation with OSC control // (based on Karplus-Strong) // //----------------------------------------------- declare name "Harpe"; declare author "Grame"; process = harpe(11); // an 11 strings harpe //-------------------------------------------...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/harpe.dsp
faust
----------------------------------------------- Basic harpe simulation with OSC control (based on Karplus-Strong) ----------------------------------------------- an 11 strings harpe ----------------------------------------------- whoite noise generator ----------------------------------------------- ---------...
declare name "Harpe"; declare author "Grame"; noise = random / RANDMAX with { random = +(12345) ~ *(1103515245); RANDMAX = 2147483647.0; }; string(freq, att, level, trig) = noise*level : *(trig : trigger(freq2samples(freq))) : resonator(freq2samples(freq), att) with { resonator(d, a) = (+...
072f83b0cccfa64313d7a425939a5a5b0820846957dbadb58c6c92bc88b8ca07
HexHive/datAFLow
switcher.dsp
declare name "switcher"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2007"; //----------------------------------------------- // Switch between two stereo sources. // Useful to compare these two sources // The parameter c\in{0,1} indicates the // channels ...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/switcher.dsp
faust
----------------------------------------------- Switch between two stereo sources. Useful to compare these two sources The parameter c\in{0,1} indicates the channels to select -----------------------------------------------
declare name "switcher"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2007"; switch(c,x0,x1,y0,y1) = sel(c,x0,y0), sel(c,x1,y1) with { sel(c,x,y) = (1-c)*x + c*y; }; process = switch(hslider("source 0 <-> source 1",0,0,1,1)); ...
112041d27e81e92f06399457f55d14ce468398c540ac327964c8ec2cc19d0cab
HexHive/datAFLow
ratepass_6.dsp
up2 = vectorize(1) <: # : serialize; dw2 = vectorize(2) : [0]; process = ((up2) ~ dw2, dw2):+;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/ratepass_6.dsp
faust
up2 = vectorize(1) <: # : serialize; dw2 = vectorize(2) : [0]; process = ((up2) ~ dw2, dw2):+;
443b9b40c37aa9f95d918022ac2f29a67e14ec59615013e91cade1e50b0983a3
HexHive/datAFLow
stereoecho.dsp
declare name "stereoecho"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2007"; //----------------------------------------------- // A 1 second Stereo Echo //----------------------------------------------- import("music.lib"); process = vgroup("stereo ec...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/stereoecho.dsp
faust
----------------------------------------------- A 1 second Stereo Echo -----------------------------------------------
declare name "stereoecho"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2007"; import("music.lib"); process = vgroup("stereo echo", (echo1s, echo1s)) with { echo1s = vgroup("echo 1000", +~(delay(65536, int(hslider("millisecond", 16.3, 0, 1000, 0.10)*mill...
4e21b0f3dde0b236954d8922f1dd26c1f59f17f7fc811fb9b24659e3de439ff1
HexHive/datAFLow
tf_exp.dsp
process = 1,(1 : mem) : - : _,(0 : \(x1).(10,(x1,20.0f : /) : pow)) : * : _<:(_<:(_,((0,(1,(1,(3553.1412912100559f,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : / : tan) : /) : *) : +),(1,(1,(3553.1412912100559f,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : / : tan) ...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/tf_exp.dsp
faust
process = 1,(1 : mem) : - : _,(0 : \(x1).(10,(x1,20.0f : /) : pow)) : * : _<:(_<:(_,((0,(1,(1,(3553.1412912100559f,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : / : tan) : /) : *) : +),(1,(1,(3553.1412912100559f,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : / : tan) ...
cd1795b43b7d48bbb091b8e89d1611d19da4eedbb8f1d1a1fc880c35a13e8a53
HexHive/datAFLow
multirate_1.dsp
process = vectorize(4);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/multirate_1.dsp
faust
process = vectorize(4);
3f115d30c0c591a14453e5754f6c955c264f4e97579a771683ff093e834ec3a5
HexHive/datAFLow
20aout08.dsp
// exemple de code pas tres optimisé et pas bien // normalisé (avec 0994jpar) neg(x) = -x; half(x) = x/2; // process = half : neg; process = neg : half;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/20aout08.dsp
faust
exemple de code pas tres optimisé et pas bien normalisé (avec 0994jpar) process = half : neg;
neg(x) = -x; half(x) = x/2; process = neg : half;
e391beffdee2b1b77254d12e1fb93c13e707f496f3bb56930a5af6ff644bbfb5
HexHive/datAFLow
k-min.dsp
vol = hslider("volume", 0.2, 0, 1, 0.1); process = 1 * vol;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/k-min.dsp
faust
vol = hslider("volume", 0.2, 0, 1, 0.1); process = 1 * vol;
005d316843e9330fdc22a3e20a297784654440db2422025aafddaccdfd188cc5
HexHive/datAFLow
capture.dsp
declare name "capture"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2006"; //------------------------------------------------- // Capture : record up to 8s of sound and // playback the recorded sound in loop //---------------------------------------------...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/capture.dsp
faust
------------------------------------------------- Capture : record up to 8s of sound and playback the recorded sound in loop ------------------------------------------------- Capture sound while pressed convert button signal from float to integer Reset capture when button is pressed Compute capture duration wh...
declare name "capture"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2006"; import("music.lib"); capture = *(B) : (+ : delay(8*65536, D-1)) ~ *(1.0-B) ; smooth(c) = *(1-c) : +~*(c); level = hslider("level (db)", 0, -96, 4, 0.1) : db2linear : smooth(0.999...
1b34e20551390d8fcdfcdaadb85bb7251857b701e552f0dab0dee8a9d9c0c80a
HexHive/datAFLow
test27.dsp
// bug conan : this program should compile but it doesn't on faust-0.9.9.1 process = ffunction(int random (), <stdlib.h>, "");
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/test27.dsp
faust
bug conan : this program should compile but it doesn't on faust-0.9.9.1
process = ffunction(int random (), <stdlib.h>, "");
6edd630006ef634862d8ada8c1c272e30fa4bce85dcd4c262a505b5dd75b5cc8
HexHive/datAFLow
dimensioncheck_6.dsp
process = vectorize(2)<:/:serialize;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/dimensioncheck_6.dsp
faust
process = vectorize(2)<:/:serialize;
425bb6604ddb67bbd676e0777a2c14659d2f7a16b1f7b83538df6aff9df1b6e0
HexHive/datAFLow
bandfilter.dsp
declare name "bandfilter"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2006"; import("math.lib"); import("music.lib"); //---------------------second order filter-------------------------- // filter(Q,F,G) // Q : quality factor [1..100] // F : frequen...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/bandfilter.dsp
faust
---------------------second order filter-------------------------- filter(Q,F,G) Q : quality factor [1..100] F : frequency (Hz) G : gain [0..1] ------------------------------------------------------------------ --------------- Band Filter with user interface ------------------ bandfilter(F) F : defa...
declare name "bandfilter"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2006"; import("math.lib"); import("music.lib"); filter(Q,F,G) = TF2((1 + K/Q + K*K) / D, 2 * (K*K - 1) / D, (1 - K/Q + K*K) / D, 2 * (K*K - 1) / D, (1 - V*K/Q...