tan()

tan(x)

Category

Math

Description

Tangent function. It can grow very quickly near its discontinuities, so use moderate input levels when using it as a waveshaper.

Function shape

tan function shape

Example: tan(x*pi()*440/44100)

Arguments

Typical Values

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

Example

0.2*tan(0.6*sin(X))

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.