[][src]Module oscen::oscillators

Some common (and some less common) oscillators.

Structs

Clock

A SynthModule that emits 1.0 every interval seconds otherwise it emits 0.0.

FourierOsc

Fourier series approximation for an oscillator. Optionally applies Lanczos Sigma factor to eliminate ringing due to Gibbs phenomenon.

Osc01

An oscillator used to modulate parameters that take values between 0 and 1, based on a sinusoid.

PinkNoise

Pink noise oscillator.

SawOsc

Saw wave oscillator.

SineOsc

A basic sine oscillator.

SquareOsc

Square (Pulse) wave oscillator with a duty_cycle that takes values in (0, 1), that determines the pulse width.

TriangleOsc

Triangle wave oscillator.

WhiteNoise

White noise oscillator.

Enums

NoiseDistribution

Choose between Normal(0,1) and Uniforem distributions for WhiteNoise.

Functions

square_wave

Square wave oscillator implemented as a fourier approximation.

triangle_wave

Triangle wave oscillator implemented as a fourier approximation.