Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
A disassembler for UGen graphs.
Synopsis
- from_port_label :: Char -> From_Port -> String
- is_operator_name :: String -> Bool
- parenthesise_operator :: String -> String
- reconstruct_graph :: U_Graph -> ([String], String)
- reconstruct_graph_module :: String -> U_Graph -> [String]
- reconstruct_graph_str :: String -> U_Graph -> String
- reconstruct_c_str :: U_Node -> String
- reconstruct_c_ugen :: U_Node -> UGen
- reconstruct_k_rnd :: U_Node -> (Rate, String, Sample)
- reconstruct_k_str :: U_Node -> String
- reconstruct_k_ugen :: U_Node -> UGen
- ugen_qname :: String -> Special -> (String, String)
- reconstruct_mce_str :: U_Node -> String
- reconstruct_u_str :: U_Node -> [String]
- reconstruct_mrg_str :: [U_Node] -> String
Documentation
is_operator_name :: String -> Bool Source #
Any name that does not begin with a letter is considered an operator.
parenthesise_operator :: String -> String Source #
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 + 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_c_str :: U_Node -> String Source #
reconstruct_c_ugen :: U_Node -> UGen Source #
reconstruct_k_str :: U_Node -> String Source #
reconstruct_k_ugen :: U_Node -> UGen Source #
reconstruct_mce_str :: U_Node -> String Source #
reconstruct_u_str :: U_Node -> [String] Source #
reconstruct_mrg_str :: [U_Node] -> String Source #