Skip to content
Tone.js

Chebyshev

class Effect ↳ extends Effect<ChebyshevOptions>

Chebyshev is a waveshaper which is good for making different types of distortion sounds. Note that odd orders sound very different from even ones, and order = 1 is no change. Read more at music.columbia.edu.

// create a new cheby
const cheby = new Tone.Chebyshev(50).toDestination();
// create a monosynth connected to our cheby
const synth = new Tone.MonoSynth().connect(cheby);
synth.triggerAttackRelease("C2", 0.4);
new Chebyshev(order?: number)

Parameters

  • order number optional

    The order of the chebyshev polynomial. Normal range between 1-100.

new Chebyshev(options?: Partial<ChebyshevOptions>)

Parameters

↳ inherited from Effect

input: Gain

The effect input node

read-only

name: string

The name of the class

Default: "Chebyshev"

↳ inherited from Effect

output: CrossFade

The effect output

↳ inherited from Effect

wet: Signal<"normalRange">

The wet control is how much of the effected will pass through to the output. 1 = 100% effected signal, 0 = 100% dry signal.

order: number

The order of the Chebyshev polynomial which creates the equation which is applied to the incoming signal through a Tone.WaveShaper. Must be an integer. The equations are in the form:

order 2: 2x^2 + 1
order 3: 4x^3 + 3x

Range: 1 to 100

oversample: OverSampleType

The oversampling of the effect. Can either be “none”, “2x” or “4x”.

dispose(): this

Dispose and disconnect

Returns this

static

getDefaults(): ChebyshevOptions

Returns all of the default options belonging to the class.

Returns ChebyshevOptions