Safe Haskell | None |
---|
Functions from Sound.SC3.Server.Command.Generic specialised to Int
.
- n_after :: [(Int, Int)] -> Message
- n_before :: [(Int, Int)] -> Message
- n_free :: [Int] -> Message
- n_map :: Int -> [(String, Int)] -> Message
- n_mapn :: Int -> [(String, Int, Int)] -> Message
- n_mapa :: Int -> [(String, Int)] -> Message
- n_mapan :: Int -> [(String, Int, Int)] -> Message
- n_query :: [Int] -> Message
- n_run :: [(Int, Bool)] -> Message
- n_trace :: [Int] -> Message
- n_order :: AddAction -> Int -> [Int] -> Message
- s_get :: Int -> [String] -> Message
- s_getn :: Int -> [(String, Int)] -> Message
- s_noid :: [Int] -> Message
- g_deepFree :: [Int] -> Message
- g_freeAll :: [Int] -> Message
- g_head :: [(Int, Int)] -> Message
- g_new :: [(Int, AddAction, Int)] -> Message
- g_tail :: [(Int, Int)] -> Message
- g_dumpTree :: [(Int, Bool)] -> Message
- g_queryTree :: [(Int, Bool)] -> Message
- p_new :: [(Int, AddAction, Int)] -> Message
- u_cmd :: Int -> Int -> String -> [Datum] -> Message
- b_alloc :: Int -> Int -> Int -> Message
- b_allocRead :: Int -> String -> Int -> Int -> Message
- b_allocReadChannel :: Int -> String -> Int -> Int -> [Int] -> Message
- b_close :: Int -> Message
- b_free :: Int -> Message
- b_gen :: Int -> String -> [Datum] -> Message
- b_gen_copy :: Int -> Int -> Int -> Int -> Maybe Int -> Message
- b_get :: Int -> [Int] -> Message
- b_getn :: Int -> [(Int, Int)] -> Message
- b_query :: [Int] -> Message
- b_read :: Int -> String -> Int -> Int -> Int -> Bool -> Message
- b_readChannel :: Int -> String -> Int -> Int -> Int -> Bool -> [Int] -> Message
- b_write :: Int -> String -> SoundFileFormat -> SampleFormat -> Int -> Int -> Bool -> Message
- b_zero :: Int -> Message
- c_get :: [Int] -> Message
- c_getn :: [(Int, Int)] -> Message
- sync :: Int -> Message
- b_getn1 :: Int -> (Int, Int) -> Message
- b_query1 :: Int -> Message
- s_new0 :: String -> Int -> AddAction -> Int -> Message
- b_segment :: Int -> Int -> [Int]
- b_indices :: Int -> Int -> Int -> [(Int, Int)]
- pc_preparePartConv :: Int -> Int -> Int -> Message
Node commands
n_mapan :: Int -> [(String, Int, Int)] -> MessageSource
Map a node's controls to read from audio buses.
Synthesis node commands
Group node commands
g_deepFree :: [Int] -> MessageSource
Free all synths in this group and all its sub-groups.
g_dumpTree :: [(Int, Bool)] -> MessageSource
Post a representation of a group's node subtree, optionally including the current control values for synths.
g_queryTree :: [(Int, Bool)] -> MessageSource
Request a representation of a group's node subtree, optionally including the current control values for synths.
Replies to the sender with a /g_queryTree.reply
message listing all of the nodes contained within the group in the following format:
int32 - if synth control values are included 1, else 0 int32 - node ID of the requested group int32 - number of child nodes contained within the requested group For each node in the subtree: [ int32 - node ID int32 - number of child nodes contained within this node. If -1 this is a synth, if >= 0 it's a group. If this node is a synth: symbol - the SynthDef name for this node. If flag (see above) is true: int32 - numControls for this synth (M) [ symbol or int: control name or index float or symbol: value or control bus mapping symbol (e.g. 'c1') ] * M ] * the number of nodes in the subtree
N.B. The order of nodes corresponds to their execution order on the server. Thus child nodes (those contained within a group) are listed immediately following their parent.
Unit Generator commands
Buffer commands
b_alloc :: Int -> Int -> Int -> MessageSource
Allocates zero filled buffer to number of channels and samples. (Asynchronous)
b_allocRead :: Int -> String -> Int -> Int -> MessageSource
Allocate buffer space and read a sound file. (Asynchronous)
b_allocReadChannel :: Int -> String -> Int -> Int -> [Int] -> MessageSource
Allocate buffer space and read a sound file, picking specific channels. (Asynchronous)
b_close :: Int -> MessageSource
Close attached soundfile and write header information. (Asynchronous)
b_read :: Int -> String -> Int -> Int -> Int -> Bool -> MessageSource
Read sound file data into an existing buffer. (Asynchronous)
b_readChannel :: Int -> String -> Int -> Int -> Int -> Bool -> [Int] -> MessageSource
Read sound file data into an existing buffer, picking specific channels. (Asynchronous)
b_write :: Int -> String -> SoundFileFormat -> SampleFormat -> Int -> Int -> Bool -> MessageSource
Write sound file data. (Asynchronous)
Control bus commands
Server operation commands
Request /synced message when all current asynchronous commands complete.
Variants to simplify common cases
Buffer segmentation and indices
b_segment :: Int -> Int -> [Int]Source
Segment a request for m places into sets of at most n.
b_segment 1024 2056 == [8,1024,1024] b_segment 1 5 == replicate 5 1
b_indices :: Int -> Int -> Int -> [(Int, Int)]Source
Variant of b_segment
that takes a starting index and returns (index,size) duples.
b_indices 1 5 0 == zip [0..4] (replicate 5 1) b_indices 1024 2056 16 == [(16,8),(24,1024),(1048,1024)]