CompanderD

digraph InheritanceGraph { graph [bgcolor=transparent, color=lightsteelblue2, fontname=Arial, fontsize=10, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, splines=spline, style="dashed, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=10, height=0, penwidth=2, shape=box, style="filled, rounded", width=0]; edge [color=lightslategrey, penwidth=1]; subgraph cluster_builtins { graph [label=builtins]; node [color=1]; "builtins.object" [URL="https://docs.python.org/3.6/library/functions.html#object", label=object, target=_top]; } subgraph "cluster_supriya.system" { graph [label="supriya.system"]; node [color=2]; "supriya.system.SupriyaObject.SupriyaObject" [URL="../api/supriya/ugens/../system/SupriyaObject.html#supriya.system.SupriyaObject.SupriyaObject", label="Supriya\nObject", target=_top]; } subgraph "cluster_supriya.ugens" { graph [label="supriya.ugens"]; node [color=3]; "supriya.ugens.CompanderD.CompanderD" [URL="../api/supriya/ugens/CompanderD.html#supriya.ugens.CompanderD.CompanderD", color=black, fontcolor=white, label="Compander\nD", shape=oval, style="bold, filled", target=_top]; "supriya.ugens.PseudoUGen.PseudoUGen" [URL="../api/supriya/ugens/PseudoUGen.html#supriya.ugens.PseudoUGen.PseudoUGen", label="Pseudo\nUGen", shape=oval, style=bold, target=_top]; "supriya.ugens.PseudoUGen.PseudoUGen" -> "supriya.ugens.CompanderD.CompanderD"; } "builtins.object" -> "supriya.system.SupriyaObject.SupriyaObject"; "supriya.system.SupriyaObject.SupriyaObject" -> "supriya.ugens.PseudoUGen.PseudoUGen"; }

abstract class supriya.ugens.CompanderD.CompanderD[source]

A convenience constructor for Compander.


Attributes Summary

ar Constructs an audio-rate dynamics processor.

Special methods

(SupriyaObject).__repr__()

Return repr(self).


Class & static methods

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

Constructs an audio-rate dynamics processor.

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

Returns ugen graph.