Decimator: table of contents
Filter:
Classes (extension) | UGens > Filters

Decimator : UGen : AbstractFunction : Object
ExtensionExtension

Samplerate and bitrate reduction

Description

Decimates (reduces the effective sample rate), and reduces the bit depth of the input signal, allows non integer values for smooth transitions between clean and lofi signals.

NOTE: Port of a similarly-named ladspa plugin http://plugin.org.uk/ladspa-swh/docs/ladspa-swh.html#tth_sEc2.26. Plugin ID 1202.

Class Methods

Decimator.ar(in, rate: 44100, bits: 24, mul: 1, add: 0)

Arguments:

in

The input signal.

rate

The sample rate that the signal will be resampled at.

bits

The bit depth that the signal will be reduced to.

mul

Output will be multiplied by this value.

add

This value will be added to the output.

Inherited class methods

Instance Methods

Inherited instance methods

Examples

{Decimator.ar(SinOsc.ar([400, 404], 0, 0.2), MouseX.kr(0, 44100), MouseY.kr(0, 31))}.play

{Decimator.ar(SoundIn.ar, MouseX.kr(0, 44100), MouseY.kr(0, 31))}.play