dynamics

class Amplitude(calculation_rate=None, source=None, attack_time=0.01, release_time=0.01, **kwargs)

Bases: UGen

An amplitude follower.

>>> source = supriya.ugens.In.ar(bus=0)
>>> amplitude = supriya.ugens.Amplitude.kr(
...     attack_time=0.01,
...     release_time=0.01,
...     source=source,
... )
>>> amplitude
Amplitude.kr()
classmethod ar(source: SupportsFloat | UGenMethodMixin | None = None, attack_time: SupportsFloat | UGenMethodMixin = 0.01, release_time: SupportsFloat | UGenMethodMixin = 0.01) Amplitude
classmethod kr(source: SupportsFloat | UGenMethodMixin | None = None, attack_time: SupportsFloat | UGenMethodMixin = 0.01, release_time: SupportsFloat | UGenMethodMixin = 0.01) Amplitude
property attack_time : SupportsFloat | UGenMethodMixin
property release_time : SupportsFloat | UGenMethodMixin
property source : SupportsFloat | UGenMethodMixin
class Compander(calculation_rate=None, source=None, control=0.0, threshold=0.5, slope_below=1.0, slope_above=1.0, clamp_time=0.01, relax_time=0.1, **kwargs)

Bases: UGen

A general purpose hard-knee dynamics processor.

classmethod ar(source: SupportsFloat | UGenMethodMixin | None = None, control: SupportsFloat | UGenMethodMixin = 0.0, threshold: SupportsFloat | UGenMethodMixin = 0.5, slope_below: SupportsFloat | UGenMethodMixin = 1.0, slope_above: SupportsFloat | UGenMethodMixin = 1.0, clamp_time: SupportsFloat | UGenMethodMixin = 0.01, relax_time: SupportsFloat | UGenMethodMixin = 0.1) Compander
property clamp_time : SupportsFloat | UGenMethodMixin
property control : SupportsFloat | UGenMethodMixin
property relax_time : SupportsFloat | UGenMethodMixin
property slope_above : SupportsFloat | UGenMethodMixin
property slope_below : SupportsFloat | UGenMethodMixin
property source : SupportsFloat | UGenMethodMixin
property threshold : SupportsFloat | UGenMethodMixin
class CompanderD

Bases: PseudoUGen

A convenience constructor for Compander.

classmethod ar(source=None, threshold=0.5, clamp_time=0.01, relax_time=0.1, slope_above=1.0, slope_below=1.0)

Constructs an audio-rate dynamics processor.

>>> source = supriya.ugens.In.ar(bus=0)
>>> compander_d = supriya.ugens.CompanderD.ar(
...     source=source,
... )
>>> supriya.graph(compander_d)  
>>> print(compander_d)
synthdef:
    name: d4e7b88df56af5070a88f09b0f8c633e
    ugens:
    -   In.ar:
            bus: 0.0
    -   DelayN.ar:
            source: In.ar[0]
            maximum_delay_time: 0.01
            delay_time: 0.01
    -   Compander.ar:
            source: In.ar[0]
            control: DelayN.ar[0]
            threshold: 0.5
            slope_below: 1.0
            slope_above: 1.0
            clamp_time: 0.01
            relax_time: 0.1

Returns ugen graph.

class Limiter(calculation_rate=None, source=None, level=1.0, duration=0.01, **kwargs)

Bases: UGen

A peak limiter.

>>> source = supriya.ugens.In.ar(bus=0)
>>> limiter = supriya.ugens.Limiter.ar(
...     duration=0.01,
...     level=1,
...     source=source,
... )
>>> limiter
Limiter.ar()
classmethod ar(source: SupportsFloat | UGenMethodMixin | None = None, level: SupportsFloat | UGenMethodMixin = 1.0, duration: SupportsFloat | UGenMethodMixin = 0.01) Limiter
property duration : SupportsFloat | UGenMethodMixin
property level : SupportsFloat | UGenMethodMixin
property source : SupportsFloat | UGenMethodMixin
class Normalizer(calculation_rate=None, source=None, level=1.0, duration=0.01, **kwargs)

Bases: UGen

A dynamics flattener.

>>> source = supriya.ugens.In.ar(bus=0)
>>> normalizer = supriya.ugens.Normalizer.ar(
...     duration=0.01,
...     level=1,
...     source=source,
... )
>>> normalizer
Normalizer.ar()
classmethod ar(source: SupportsFloat | UGenMethodMixin | None = None, level: SupportsFloat | UGenMethodMixin = 1.0, duration: SupportsFloat | UGenMethodMixin = 0.01) Normalizer
property duration : SupportsFloat | UGenMethodMixin
property level : SupportsFloat | UGenMethodMixin
property source : SupportsFloat | UGenMethodMixin