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 + 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_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 #