oscils
A simple, fast sine oscillator.
It uses only one multiply, and two add operations to generate one sample of output, and does not require a function table.
Syntax
Initialization
iamp -- output amplitude.
icps -- frequency in Hz (may be zero or negative, however the absolute value must be less than sr/2).
iphs -- start phase between 0 and 1.
iflg -- sum of the following values:
- 2: use double precision even if Csound was compiled to use floats. This improves quality (especially in the case of long performance time), but may be up to twice as slow.
- 1: skip initialization.
Performance
ares -- audio output
Examples
Here is an example of the oscils opcode. It uses the file oscils.csd.
See also
Credits
Author: Istvan Varga
January 2002
New in version 4.18