hsc3-0.19.1: Haskell SuperCollider
Safe HaskellSafe-Inferred
LanguageHaskell2010

Sound.SC3.Server.Options

Description

scsynth server command-line options.

Synopsis

Documentation

type SC3_OPT i = (Char, String, i) Source #

(SHORT-OPTION,LONG-OPTION,DEFAULT-VALUE)

sc3_opt_value :: SC3_OPT i -> i Source #

Get value from option.

sc3_addr_def :: String Source #

Default address string.

sc3_port_def :: Num i => i Source #

Default port number, either a u or a t option is required.

data SC3_PROTOCOL Source #

Protocol is either UDP or TCP.

Constructors

SC3_UDP 
SC3_TCP 

sc3_opt_port_def :: Num i => SC3_PROTOCOL -> SC3_OPT i Source #

Default port option.

sc3_opt_def :: Num i => SC3_PROTOCOL -> [SC3_OPT i] Source #

SC3 default options.

sc3_opt_def_udp :: Num i => [SC3_OPT i] Source #

SC3 default options for UDP.

sc3_opt_bool :: SC3_OPT i -> Bool Source #

Is option boolean, ie. 0=FALSE and 1=TRUE.

filter sc3_opt_bool sc3_opt_def_udp

sc3_opt_get :: [SC3_OPT i] -> Either Char String -> Maybe i Source #

Lookup option given either short or long name.

sc3_opt_set :: [SC3_OPT i] -> (Either Char String, i) -> [SC3_OPT i] Source #

Set option given either short or long name.

sc3_opt_set sc3_opt_def_udp (Left 'w',256)

sc3_opt_edit :: [SC3_OPT i] -> [(Either Char String, i)] -> [SC3_OPT i] Source #

Apply set of edits to options.

sc3_opt_edit sc3_opt_def_udp [(Left 'w',256),(Left 'm',2 ^ 16)]

sc3_opt_arg :: Show i => [SC3_OPT i] -> [String] Source #

Generate scsynth argument list.

unwords (sc3_opt_arg sc3_opt_def_udp)

sc3_opt_cmd :: Show i => [SC3_OPT i] -> (FilePath, [String]) Source #

Generate arguments for callProcess or related functions.

sc3_opt_cmd sc3_opt_def_udp