SynthDefGrapher

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.synthdefs" { graph [label="supriya.synthdefs"]; node [color=2]; "supriya.synthdefs.SynthDefGrapher.SynthDefGrapher" [URL="../api/supriya/synthdefs/SynthDefGrapher.html#supriya.synthdefs.SynthDefGrapher.SynthDefGrapher", color=black, fontcolor=white, label="Synth\nDef\nGrapher", target=_top]; } "builtins.object" -> "supriya.synthdefs.SynthDefGrapher.SynthDefGrapher"; }

class supriya.synthdefs.SynthDefGrapher.SynthDefGrapher[source]

Graphs SynthDefs.

>>> ugen_graph = supriya.ugens.LFNoise2.ar()
>>> result = ugen_graph.transpose([0, 3, 7])
>>> graph(result)  
>>> print(format(result.__graph__(), 'graphviz'))
digraph synthdef_c481c3d42e3cfcee0267250247dab51f {
    graph [bgcolor=transparent,
        color=lightslategrey,
        dpi=72,
        fontname=Arial,
        outputorder=edgesfirst,
        overlap=prism,
        penwidth=2,
        rankdir=LR,
        ranksep=1,
        splines=spline,
        style="dotted, rounded"];
    node [fontname=Arial,
        fontsize=12,
        penwidth=2,
        shape=Mrecord,
        style="filled, rounded"];
    edge [penwidth=2];
    ugen_0 [fillcolor=lightsteelblue2,
        label="<f_0> LFNoise2\n(audio) | { { <f_1_0_0> frequency:\n500.0 } | { <f_1_1_0> 0 } }"];
    ugen_1 [fillcolor=lightsteelblue2,
        label="<f_0> UnaryOpUGen\n[HZ_TO_MIDI]\n(audio) | { { <f_1_0_0> source } | { <f_1_1_0> 0 } }"];
    ugen_2 [fillcolor=lightsteelblue2,
        label="<f_0> UnaryOpUGen\n[MIDI_TO_HZ]\n(audio) | { { <f_1_0_0> source } | { <f_1_1_0> 0 } }"];
    ugen_3 [fillcolor=lightsteelblue2,
        label="<f_0> BinaryOpUGen\n[ADDITION]\n(audio) | { { <f_1_0_0> left | <f_1_0_1> right:\n3.0 } | { <f_1_1_0> 0 } }"];
    ugen_4 [fillcolor=lightsteelblue2,
        label="<f_0> UnaryOpUGen\n[MIDI_TO_HZ]\n(audio) | { { <f_1_0_0> source } | { <f_1_1_0> 0 } }"];
    ugen_5 [fillcolor=lightsteelblue2,
        label="<f_0> BinaryOpUGen\n[ADDITION]\n(audio) | { { <f_1_0_0> left | <f_1_0_1> right:\n7.0 } | { <f_1_1_0> 0 } }"];
    ugen_6 [fillcolor=lightsteelblue2,
        label="<f_0> UnaryOpUGen\n[MIDI_TO_HZ]\n(audio) | { { <f_1_0_0> source } | { <f_1_1_0> 0 } }"];
    ugen_0:f_1_1_0:e -> ugen_1:f_1_0_0:w [color=steelblue];
    ugen_1:f_1_1_0:e -> ugen_2:f_1_0_0:w [color=steelblue];
    ugen_1:f_1_1_0:e -> ugen_3:f_1_0_0:w [color=steelblue];
    ugen_1:f_1_1_0:e -> ugen_5:f_1_0_0:w [color=steelblue];
    ugen_3:f_1_1_0:e -> ugen_4:f_1_0_0:w [color=steelblue];
    ugen_5:f_1_1_0:e -> ugen_6:f_1_0_0:w [color=steelblue];
}

Attributes Summary

graph

Class & static methods

static graph(synthdef)[source]