Changed

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.Changed.Changed" [URL="../api/supriya/ugens/Changed.html#supriya.ugens.Changed.Changed", color=black, fontcolor=white, label=Changed, 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.Changed.Changed"; } "builtins.object" -> "supriya.system.SupriyaObject.SupriyaObject"; "supriya.system.SupriyaObject.SupriyaObject" -> "supriya.ugens.PseudoUGen.PseudoUGen"; }

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

Triggers when a value changes.

>>> source = supriya.ugens.In.ar(bus=0)
>>> changed = supriya.ugens.Changed.ar(
...     source=source,
...     threshold=0,
...     )
>>> graph(changed)  
>>> print(changed)
synthdef:
    name: 39e1f9d61589c4acaaf297cc961d65e4
    ugens:
    -   In.ar:
            bus: 0.0
    -   HPZ1.ar:
            source: In.ar[0]
    -   UnaryOpUGen(ABSOLUTE_VALUE).ar:
            source: HPZ1.ar[0]
    -   BinaryOpUGen(GREATER_THAN).ar:
            left: UnaryOpUGen(ABSOLUTE_VALUE).ar[0]
            right: 0.0

Attributes Summary

ar Constructs an audio-rate Changed.
kr Constructs a control-rate Changed.

Special methods

(SupriyaObject).__repr__()

Return repr(self).


Class & static methods

classmethod ar(source=None, threshold=0)[source]

Constructs an audio-rate Changed.

>>> source = supriya.ugens.In.ar(bus=0)
>>> changed = supriya.ugens.Changed.ar(
...     source=source,
...     threshold=0,
...     )
>>> graph(changed)  
>>> print(changed)
synthdef:
    name: 39e1f9d61589c4acaaf297cc961d65e4
    ugens:
    -   In.ar:
            bus: 0.0
    -   HPZ1.ar:
            source: In.ar[0]
    -   UnaryOpUGen(ABSOLUTE_VALUE).ar:
            source: HPZ1.ar[0]
    -   BinaryOpUGen(GREATER_THAN).ar:
            left: UnaryOpUGen(ABSOLUTE_VALUE).ar[0]
            right: 0.0

Returns ugen graph.

classmethod kr(source=None, threshold=0)[source]

Constructs a control-rate Changed.

>>> source = supriya.ugens.In.ar(bus=0)
>>> changed = supriya.ugens.Changed.kr(
...     source=source,
...     threshold=0,
...     )
>>> graph(changed)  
>>> print(changed)
synthdef:
    name: e2436271176995c6a0a5cac6d1553f8b
    ugens:
    -   In.ar:
            bus: 0.0
    -   HPZ1.kr:
            source: In.ar[0]
    -   UnaryOpUGen(ABSOLUTE_VALUE).kr:
            source: HPZ1.kr[0]
    -   BinaryOpUGen(GREATER_THAN).kr:
            left: UnaryOpUGen(ABSOLUTE_VALUE).kr[0]
            right: 0.0

Returns ugen graph.