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

Naming Output Signals

Suppose you have a block diagram bd that outputs two signals, and you would like to give them names. You cannot simply say ``x,y = bd'' as you would in matlab. Instead, use the signal blocking operator `!':

  x = bd : _,!;
  y = bd : !,_;
This does not result in two instances of bd. The optimization recognizes the common subexpression bd and computes it only once.


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