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

Signal Comparison Operators

Signals can be compared sample by sample to produce an integer-valued signal that is 1 when the comparison is true and 0 otherwise. The comparison operator symbols coincide with those in the C language:

$\displaystyle \texttt{< <= > >= == !=}
$

For example, the program
  process(L,R) = L > R;
Produces a signal that is 1 when signal L is greater than signal R and 0 otherwise.


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