Skip to content

Reference library > Processors: Distortion > Resample

Resample

Resample(input=0, sample_rate=44100, bit_rate=16)

Resampler and bit crusher. sample_rate is in Hz, bit_rate is an integer between 0 and 16.

Examples

#-------------------------------------------------------------------------------
# Using Resample to distort a sine wave.
#-------------------------------------------------------------------------------
sine = SineOscillator(440)
crushed = Resample(sine, 11025, 4)
output = StereoPanner(crushed) * 0.3
output.play()

Last update: 2024-02-15
Created: 2023-12-03