hsc3-0.21: Haskell SuperCollider
Safe HaskellSafe-Inferred
LanguageHaskell2010

Sound.Sc3.Ugen.Graph.Reconstruct

Description

A disassembler for Ugen graphs.

Synopsis

Documentation

is_operator_name :: String -> Bool Source #

Any name that does not begin with a letter is considered an operator.

reconstruct_graph_str :: String -> U_Graph -> String Source #

Generate a reconstruction of a Graph.

import Sound.Sc3
import Sound.Sc3.Ugen.Graph
import Sound.Sc3.Ugen.Graph.Reconstruct
let k = control kr "bus" 0
let o = sinOsc ar 440 0 + whiteNoiseId 'α' ar
let u = out k (pan2 (o * 0.1) 0 1)
let m = mrg [u,out 1 (impulse ar 1 0 * 0.1)]
putStrLn (reconstruct_graph_str "anon" (ugen_to_graph m))

reconstruct_k_rnd :: U_Node -> (Rate, String, Sample) Source #

Discards index.