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