Sound.SC3.Server.Process
Description
This module includes utilities for spawning an external scsynth process, either for realtime or non-realtime execution.
- data Verbosity
- = Silent
- | Quiet
- | Normal
- | Verbose
- | VeryVerbose
- | ExtremelyVerbose
- data ServerOptions = ServerOptions {
- serverProgram :: FilePath
- numberOfControlBusChannels :: Int
- numberOfAudioBusChannels :: Int
- numberOfInputBusChannels :: Int
- numberOfOutputBusChannels :: Int
- blockSize :: Int
- numberOfSampleBuffers :: Int
- maxNumberOfNodes :: Int
- maxNumberOfSynthDefs :: Int
- realTimeMemorySize :: Int
- numberOfWireBuffers :: Int
- numberOfRandomSeeds :: Int
- loadSynthDefs :: Bool
- verbosity :: Verbosity
- defaultServerOptions :: ServerOptions
- data NRTOptions = NRTOptions {}
- defaultNRTOptions :: NRTOptions
- data RTOptions t = RTOptions {}
- defaultRTOptionsUDP :: RTOptions UDP
- defaultRTOptionsTCP :: RTOptions TCP
- data EventHandler t = EventHandler {}
- defaultEventHandler :: EventHandler t
- withSynth :: (Transport t, OpenTransport t) => ServerOptions -> RTOptions t -> EventHandler t -> IO ExitCode
- withNRT :: ServerOptions -> NRTOptions -> EventHandler Handle -> IO ExitCode
Documentation
Used with the verbosity
field in ServerOptions
.
Constructors
Silent | |
Quiet | |
Normal | |
Verbose | |
VeryVerbose | |
ExtremelyVerbose |
data ServerOptions Source
Specify general server options used b oth in realtime and non-realtime mode.
Constructors
ServerOptions | |
Fields
|
Instances
Eq ServerOptions | |
Show ServerOptions | |
CommandLine ServerOptions |
defaultServerOptions :: ServerOptionsSource
Default server options.
data NRTOptions Source
Non-realtime server options.
Constructors
NRTOptions | |
Fields
|
Instances
Eq NRTOptions | |
Show NRTOptions | |
CommandLine NRTOptions |
defaultNRTOptions :: NRTOptionsSource
Default non-realtime server options.
Realtime server options, parameterized by the OpenSoundControl
Transport
to be used.
Constructors
RTOptions | |
Fields
|
defaultRTOptionsUDP :: RTOptions UDPSource
Default realtime server options (UDP transport).
defaultRTOptionsTCP :: RTOptions TCPSource
Default realtime server options (TCP transport).
data EventHandler t Source
Event handler for handling I/O with external scsynth
processes,
parameterized by the I/O handle used for sending OSC commands to the
server.
Constructors
EventHandler | |
defaultEventHandler :: EventHandler tSource
Default event handler, writing to stdout and stderr, respectively.
withSynth :: (Transport t, OpenTransport t) => ServerOptions -> RTOptions t -> EventHandler t -> IO ExitCodeSource
withNRT :: ServerOptions -> NRTOptions -> EventHandler Handle -> IO ExitCodeSource
Execute a non-realtime instance of scsynth
and return ExitCode
when
the process exists.