X-Git-Url: https://scm.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/c7f552fd8888da2f0d8cfb228fe0f28d3df3a12c..b4b6f2ea75b9f0f3ca918f5b84016610bf7a4d4f:/interpretor/preprocessor/faust-0.9.47mr3/tools/faust2oct/wgo.dsp diff --git a/interpretor/preprocessor/faust-0.9.47mr3/tools/faust2oct/wgo.dsp b/interpretor/preprocessor/faust-0.9.47mr3/tools/faust2oct/wgo.dsp new file mode 100644 index 0000000..0c97690 --- /dev/null +++ b/interpretor/preprocessor/faust-0.9.47mr3/tools/faust2oct/wgo.dsp @@ -0,0 +1,17 @@ +// twgo.dsp - test the transformer-normalized, one-multiply, +// digital waveguide resonator with an impulse. +// Code from Julius Orion Smith +// http://ccrma.stanford.edu/~jos/pasp/Faust_Implementation.html + +import("music.lib"); // PI, SR + +fr = hslider("freq",440,0,10000,1); + +G = 1; +C = cos(2*PI*fr/SR); + +wgo(x) = (*(G)+x, _ <: _, ((+:*(C)) <: _,_), _ : +,-) ~ cross + with { cross = _,_ <: !,_,_,!; }; + +process = 1-1' : wgo; +