hsc3-0.15: Haskell SuperCollider

Safe HaskellSafe-Inferred
LanguageHaskell98

Sound.SC3.Server.Command.Enum

Description

Enumeration of SC3 server commands.

Synopsis

Documentation

type SC3_Command = String Source

SC3 server commands are strings.

sc3_cmd_enumeration :: [(SC3_Command, Int)] Source

Enumerate server command numbers.

sc3_cmd_number :: SC3_Command -> Maybe Int Source

Lookup command number in sc3_cmd_enumeration.

map sc3_cmd_number ["/b_alloc","/s_new"] == [Just 28,Just 9]

async_cmds :: [SC3_Command] Source

List of asynchronous server commands.

isAsync :: Message -> Bool Source

True if Message is an asynchronous Message.

map isAsync [b_close 0,n_set1 0 "0" 0] == [True,False]

partition_async :: [Message] -> ([Message], [Message]) Source

Asynchronous commands are at the left. This function should preserve the ordering of both branches.

partition_async [b_close 0,n_set1 0 "0" 0]