signumMathematical Operations:Trigonometric Functionssignumsignum
Performs a signum function.
Description
Returns the signum of x returning -1, 0 or 1.
Syntaxsignum(x) (no rate restriction)Examples
Here is an example of the signum opcode. It uses the file signum.csd.
Example of the signum opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
Here is another example of the signum opcode. It uses the file signum2.csd.
A musical example featuring the signum opcode: Signum_Welsh.csd by Kevin Welsh.
See alsoTrigonometric FunctionsCreditsAuthor: &namejohn;University of Bath, Codemist Ltd.Bath, UKJuly 2013New in Csound version 6.01