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

Parallel and Sequence Iterations

For compact specification of large parallel and series arrays of block diagrams, the par and seq ``iterations'' are provided:

  pf = par(i,N,f(i));  // pf = f(0) , f(1) , ... , f(N-1);
  sf = seq(i,N,f(i));  // sf = f(0) : f(1) : ... : f(N-1);

A very useful example of par is in defining the bus macro7

  bus(n) = par(i,n,_);
  process = bus(4) <: bus(12); // quad to 12-channel (see diagram)


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 © 2024-05-01 by Julius O. Smith III
Center for Computer Research in Music and Acoustics (CCRMA),   Stanford University
CCRMA