hsc3-0.14: Haskell SuperCollider

Safe HaskellNone

Sound.SC3.Server.Synthdef

Description

The unit-generator graph structure implemented by the SuperCollider synthesis server.

Synopsis

Documentation

synth :: UGen -> GraphSource

Transform a unit generator into a graph.

 import Sound.SC3.UGen
 synth (out 0 (pan2 (sinOsc AR 440 0) 0.5 0.1))

data Synthdef Source

Binary representation of a unit generator synth definition.

Constructors

Synthdef 

synthdef :: String -> UGen -> SynthdefSource

Lift a UGen graph into a Synthdef.

defaultSynthdef :: SynthdefSource

The SC3 default instrument Synthdef.

synthdefParam :: Synthdef -> [String]Source

Parameter names at Synthdef.

 synthdefParam def == ["amp","pan","gate","freq"]

graphdef :: Graph -> GraphdefSource

Transform a unit generator graph into bytecode.

ugenIndices :: String -> Graph -> [Integer]Source

Find the indices of the named UGen at Graph. The index is required when using u_cmd.

synthdefData :: Synthdef -> GraphdefSource

Encode Synthdef as a binary data stream.

synthdefWrite :: Synthdef -> FilePath -> IO ()Source

Write Synthdef to indicated directory. The filename is the synthdefName with the appropriate extension (scsyndef).

synthstat :: UGen -> StringSource

Simple statistical analysis of a unit generator graph.