hsc3-0.20: 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.Util.Graph 
import Sound.Sc3.Util.Graph.Reconstruct 
let k = control KR "bus" 0
let o = sinOsc AR 440 0 + whiteNoise 'α' 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.