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

Unary Minus

There is a special unary minus in FAUST:

$\displaystyle \begin{tabular}{rcl}
\texttt{-x} & $\to$\ & \texttt{0,x : -}
\end{tabular}$

Thus, assuming x denotes a signal, -x is the same as 0-x (the negated signal) while -(x) is a block diagram having one input from which x is subtracted (not a signal).

As another example, -(1+cos(w)) is a single-input, single-output block diagram in which the output of (1+cos(w)) (a signal) is subtracted from the input signal, while -1-cos(w) denotes a signal (no input).


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