SuperCollider CLASSES (extension)

GlitchBPF
ExtensionExtension

backward compatibility
Inherits from: Filter : PureUGen : UGen : AbstractFunction : Object
Subclasses: GlitchBRF

Description

October 2012 BPF was changed to use double-precision floats (git commit: 72412f63affa94f69e2ea7539e21831a1d0d3e01). GlitchBPF can be used as drop-in replacements to get the old behavior back. Good for very noise and glitchy sounds where the filter [nearly] blows up.

Class Methods

*ar (in: 0, freq: 440, rq: 1, mul: 1, add: 0)

*kr (in: 0, freq: 440, rq: 1, mul: 1, add: 0)

Arguments:

in

The input signal.

freq

Centre frequency in Hertz.

rq

The reciprocal of Q. Q is conventionally defined as cutoffFreq / bandwidth, meaning rq = (bandwidth / cutoffFreq).

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

//code that utilizes the glitch.
//warning!  extremely loud.
//note: might not sound the same on all soundcards
(
{GlitchBPF.ar(
    ClipNoise.ar(1.dup),
    0.5,
    SinOsc.kr(1, 10)
)}.play;
)