X-Git-Url: https://scm.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/1059e1cc0c2ecfa237406949aa26155b6a5b9154..66f23d4fabf89ad09adbd4dfc15ac6b5b2b7da83:/interpreter/preprocessor/faust-0.9.47mr3/tools/faust2oct/wgo.dsp diff --git a/interpreter/preprocessor/faust-0.9.47mr3/tools/faust2oct/wgo.dsp b/interpreter/preprocessor/faust-0.9.47mr3/tools/faust2oct/wgo.dsp new file mode 100644 index 0000000..0c97690 --- /dev/null +++ b/interpreter/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; +