grapher

class SynthDefGrapher

Bases: object

Graphs SynthDefs.

>>> ugen_graph = supriya.ugens.LFNoise2.ar()
>>> result = ugen_graph.transpose([0, 3, 7])
>>> supriya.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];
}
static graph(synthdef)