pow()

pow(value, power)

Category

Math

Description

Raises the first value to the power of the second value. In synthesis it is useful for curved envelopes, wave shaping, and harmonic emphasis.

Arguments

Typical Values

Use moderate values first, then increase modulation depth while listening for clipping, aliasing, or excessive filter resonance.

Example

pow(sin(X), 2*ceil(17*exp(-pos()/3000))-1)

Notes

For pitched oscillator functions, X already contains the current MIDI note pitch and transpose information. Prefer saw(X), sin(X), or pwm(X, 0.4) unless you intentionally want an octave or ratio shift such as 0.5*X or 2*X.