Safe Haskell | Safe-Inferred |
---|---|
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