Safe Haskell | None |
---|---|
Language | Haskell2010 |
The unit-generator graph structure implemented by the SuperCollider synthesis server.
Synopsis
- data Synthdef = Synthdef {}
- synthdef :: String -> UGen -> Synthdef
- defaultSynthdef :: Synthdef
- defaultSampler :: Bool -> Synthdef
- synthdefGraph :: Synthdef -> U_Graph
- synthdefParam :: Synthdef -> Param
- synthdef_to_graphdef :: Synthdef -> Graphdef
- ugen_to_graphdef :: UGen -> Graphdef
- synthdefData :: Synthdef -> ByteString
- synthdefWrite :: FilePath -> Synthdef -> IO ()
- synthdefWrite_dir :: FilePath -> Synthdef -> IO ()
- synthstat_ln :: UGen -> [String]
- synthstat :: UGen -> String
- synthstat_wr :: UGen -> IO ()
- synthstat_concise :: UGen -> String
- ugen_dump_ugens :: UGen -> IO ()
Documentation
A named unit generator graph.
defaultSynthdef :: Synthdef Source #
The SC3 default instrument Synthdef
, see default_ugen_graph
.
import Sound.OSC import Sound.SC3 withSC3 (sendMessage (d_recv defaultSynthdef)) audition defaultSynthdef
defaultSampler :: Bool -> Synthdef Source #
The SC3 default sample (buffer) playback instrument Synthdef
,
see default_sampler_ugen_graph
.
withSC3 (sendMessage (d_recv (defaultSampler False))) audition (defaultSampler False)
synthdefGraph :: Synthdef -> U_Graph Source #
ugen_to_graph
of synthdefUGen
.
synthdefParam :: Synthdef -> Param Source #
Parameter names at Synthdef
.
synthdefParam defaultSynthdef == [("amp",0.1),("pan",0),("gate",1),("freq",440),("out",0)]
synthdefData :: Synthdef -> ByteString Source #
Encode Synthdef
as a binary data stream.
synthdefWrite_dir :: FilePath -> Synthdef -> IO () Source #
Write Synthdef
to indicated directory. The filename is the
synthdefName
with the appropriate extension (scsyndef
).
synthstat_ln :: UGen -> [String] Source #
graph_stat_ln
of synth
.
synthstat_wr :: UGen -> IO () Source #
synthstat_concise :: UGen -> String Source #
Variant without UGen sequence.
putStrLn $ synthstat_concise (default_sampler_ugen_graph True)
ugen_dump_ugens :: UGen -> IO () Source #
graphdef_dump_ugens
of ugen_to_graphdef