Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Request and display status information from the synthesis server.
/status messages receive /status.reply messages.
/g_queryTree messages recieve /g_queryTree.reply messages.
Synopsis
- extractStatusField :: Floating n => Int -> [Datum] -> n
- statusFields :: [String]
- statusFormat :: [Datum] -> [String]
- status_format_concise :: [Datum] -> String
- type Query_Ctl = (Either String Int, Either Double Int)
- data Query_Node
- query_ctl_pp :: Query_Ctl -> String
- query_node_pp :: Query_Node -> String
- queryTree_ctl :: (Datum, Datum) -> Query_Ctl
- queryTree_synth :: Bool -> Synth_Id -> String -> [Datum] -> (Query_Node, [Datum])
- queryTree_group :: Bool -> Group_Id -> Int -> [Datum] -> (Query_Node, [Datum])
- queryTree_child :: Bool -> [Datum] -> (Query_Node, [Datum])
- queryTree :: [Datum] -> Query_Node
- queryNode_to_group_seq :: Query_Node -> [Group_Id]
- queryTree_rt :: Query_Node -> Tree Query_Node
Status
extractStatusField :: Floating n => Int -> [Datum] -> n Source #
Get nth field of /status.reply message as Floating
.
statusFields :: [String] Source #
Names of status.reply fields sent in reply to status request.
statusFormat :: [Datum] -> [String] Source #
Status pretty printer.
status_format_concise :: [Datum] -> String Source #
Concise pretty printer, one line, omits PEAK-CPU and NOMINAL-SR.
Query Group
type Query_Ctl = (Either String Int, Either Double Int) Source #
Name or index and value or bus mapping.
data Query_Node Source #
Nodes are either groups of synths.
Instances
Show Query_Node Source # | |
Defined in Sound.Sc3.Server.Status showsPrec :: Int -> Query_Node -> ShowS # show :: Query_Node -> String # showList :: [Query_Node] -> ShowS # | |
Eq Query_Node Source # | |
Defined in Sound.Sc3.Server.Status (==) :: Query_Node -> Query_Node -> Bool # (/=) :: Query_Node -> Query_Node -> Bool # |
query_node_pp :: Query_Node -> String Source #
Pretty-print Query_Node
queryTree_ctl :: (Datum, Datum) -> Query_Ctl Source #
Control (parameter) data may be given as names or indices and as values or bus mappings.
queryTree_ctl (string "freq",float 440) == (Left "freq",Left 440.0) queryTree_ctl (int32 1,string "c0") == (Right 1,Right 0)
queryTree_synth :: Bool -> Synth_Id -> String -> [Datum] -> (Query_Node, [Datum]) Source #
queryTree_group :: Bool -> Group_Id -> Int -> [Datum] -> (Query_Node, [Datum]) Source #
Generate Query_Node
for indicated Group_Id
.
queryTree_child :: Bool -> [Datum] -> (Query_Node, [Datum]) Source #
Either queryTree_synth
or queryTree_group
.
queryTree :: [Datum] -> Query_Node Source #
Parse result of ' g_queryTree '.
queryNode_to_group_seq :: Query_Node -> [Group_Id] Source #
Extact sequence of Group_Id
s from Query_Node
.
queryTree_rt :: Query_Node -> Tree Query_Node Source #
Transform Query_Node
to Tree
.