Next  |  Prev  |  Up  |  Top  |  Index  |  JOS Index  |  JOS Pubs  |  JOS Home  |  Search

Faust Implementation

Use of the Faust language is introduced in [459]. A test program for the second-order waveguide oscillator/resonator follows:

// twgo.dsp - test the transformer-normalized, one-multiply,
//            digital waveguide resonator with an impulse.

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;


Next  |  Prev  |  Up  |  Top  |  Index  |  JOS Index  |  JOS Pubs  |  JOS Home  |  Search

[How to cite this work]  [Order a printed hardcopy]

``Physical Audio Signal Processing'', by Julius O. Smith III, (August 2007 Edition).
Copyright © 2008-05-16 by Julius O. Smith III
Center for Computer Research in Music and Acoustics (CCRMA),   Stanford University
CCRMA  [About the Automatic Links]