Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
scsynth server command-line options.
Synopsis
- type SC3_OPT i = (Char, String, i)
- sc3_opt_value :: SC3_OPT i -> i
- sc3_addr_def :: String
- sc3_port_def :: Num i => i
- data SC3_PROTOCOL
- sc3_opt_port_def :: Num i => SC3_PROTOCOL -> SC3_OPT i
- sc3_opt_def :: Num i => SC3_PROTOCOL -> [SC3_OPT i]
- sc3_opt_def_udp :: Num i => [SC3_OPT i]
- sc3_opt_bool :: SC3_OPT i -> Bool
- sc3_opt_get :: [SC3_OPT i] -> Either Char String -> Maybe i
- sc3_opt_set :: [SC3_OPT i] -> (Either Char String, i) -> [SC3_OPT i]
- sc3_opt_edit :: [SC3_OPT i] -> [(Either Char String, i)] -> [SC3_OPT i]
- sc3_opt_arg :: Show i => [SC3_OPT i] -> [String]
- sc3_opt_cmd :: Show i => [SC3_OPT i] -> (FilePath, [String])
Documentation
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.
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