cosr
Calculates a cosine value based on the current time (now)
Syntax
Usage
cosr calculates the cosine of now. This is useful as a kind of i-rate oscillator, providing cyclical values with each evaluation.
cosr is adapted from the cosr macro in the [impromptu](https://en.wikipedia.org/wiki/Impromptu_(programming_environment) live coding environment.
Outputs and arguments
ival -- The output value.
iperiod -- Time in beats for the cosine to complete a cycle.
iamp (optional, default=0.5) -- amplitude of the cosine. Range is between +iamp to -iamp.
ioffset (optional, default=0.5) -- offset added to the output values.
Example
See the example for loopevent.orc