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

Fixing the Number of Input and Output Signals

In the examples above, the input signals were usually defined implicitly by the defining FAUST expression:

  foo = faust_expression; // inputs and outputs determined by expression
Sometimes, however, it is helpful to fix the number of input signals. For example, to define a stereo processor, one can begin and end its definition with two wires:
  foo = _,_ : faust_expression : _,_;
Such practice also helps to more easily catch errors when the number of input or output signals comes out wrong in the defining expression.


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

Download aspf.pdf
[Comment on this page via email]

``Audio Signal Processing in Faust'', by Julius O. Smith III.
Copyright © 2022-05-05 by Julius O. Smith III
Center for Computer Research in Music and Acoustics (CCRMA),   Stanford University
CCRMA