hsc3-0.5: Haskell SuperCollider

Sound.SC3.Server.Command

Contents

Description

Constructors for the command set implemented by the SuperCollider synthesis server.

Synopsis

Instrument definition commands

d_recv :: [Word8] -> OSCSource

Install a bytecode instrument definition. (Asynchronous)

d_load :: String -> OSCSource

Load an instrument definition from a named file. (Asynchronous)

d_loadDir :: String -> OSCSource

Load a directory of instrument definitions files. (Asynchronous)

d_free :: [String] -> OSCSource

Remove definition once all nodes using it have ended.

Node commands

n_after :: [(Int, Int)] -> OSCSource

Place a node after another.

n_before :: [(Int, Int)] -> OSCSource

Place a node before another.

n_fill :: Int -> [(String, Int, Double)] -> OSCSource

Fill ranges of a node's control values.

n_free :: [Int] -> OSCSource

Delete a node.

n_map :: Int -> [(String, Int)] -> OSCSource

Map a node's controls to read from a bus.

n_mapn :: Int -> [(String, Int, Int)] -> OSCSource

Map a node's controls to read from buses.

n_query :: [Int] -> OSCSource

Get info about a node.

n_run :: [(Int, Bool)] -> OSCSource

Turn node on or off.

n_set :: Int -> [(String, Double)] -> OSCSource

Set a node's control values.

n_setn :: Int -> [(String, [Double])] -> OSCSource

Set ranges of a node's control values.

n_trace :: [Int] -> OSCSource

Trace a node.

Synthesis node commands

s_get :: Int -> [String] -> OSCSource

Get control values.

s_getn :: Int -> [(String, Int)] -> OSCSource

Get ranges of control values.

data AddAction Source

Enumeration of possible locations to add new nodes (s_new and g_new).

s_new :: String -> Int -> AddAction -> Int -> [(String, Double)] -> OSCSource

Create a new synth.

s_newargs :: String -> Int -> AddAction -> Int -> [(String, [Double])] -> OSCSource

Create a new synth.

s_noid :: [Int] -> OSCSource

Auto-reassign synth's ID to a reserved value.

Group node commands

g_deepFree :: [Int] -> OSCSource

Free all synths in this group and all its sub-groups.

g_freeAll :: [Int] -> OSCSource

Delete all nodes in a group.

g_head :: [(Int, Int)] -> OSCSource

Add node to head of group.

g_new :: [(Int, AddAction, Int)] -> OSCSource

Create a new group.

g_tail :: [(Int, Int)] -> OSCSource

Add node to tail of group.

Unit Generator commands

u_cmd :: Int -> Int -> String -> [Datum] -> OSCSource

Send a command to a unit generator.

Buffer commands

b_alloc :: Int -> Int -> Int -> OSCSource

Allocates zero filled buffer to number of channels and samples. (Asynchronous)

b_allocRead :: Int -> String -> Int -> Int -> OSCSource

Allocate buffer space and read a sound file.

b_close :: Int -> OSCSource

Close attached soundfile and write header information.

b_fill :: Int -> [(Int, Int, Double)] -> OSCSource

Fill ranges of sample values.

b_free :: Int -> OSCSource

Free buffer data.

b_gen :: Int -> String -> [Double] -> OSCSource

Call a command to fill a buffer.

b_get :: Int -> [Int] -> OSCSource

Get sample values.

b_getn :: Int -> [(Int, Int)] -> OSCSource

Get ranges of sample values.

b_query :: [Int] -> OSCSource

Request /b_info messages.

b_read :: Int -> String -> Int -> Int -> Int -> Int -> OSCSource

Read sound file data into an existing buffer.

b_set :: Int -> [(Int, Double)] -> OSCSource

Set sample values.

b_setn :: Int -> [(Int, [Double])] -> OSCSource

Set ranges of sample values.

b_write :: Int -> String -> Int -> Int -> Int -> Int -> Int -> OSCSource

Write sound file data.

b_zero :: Int -> OSCSource

Zero sample data.

Control bus commands

c_fill :: [(Int, Int, Double)] -> OSCSource

Fill ranges of bus values.

c_get :: [Int] -> OSCSource

Get bus values.

c_getn :: [(Int, Int)] -> OSCSource

Get ranges of bus values.

c_set :: [(Int, Double)] -> OSCSource

Set bus values.

c_setn :: [(Int, [Double])] -> OSCSource

Set ranges of bus values.

Server operation commands

clearSched :: OSCSource

Remove all bundles from the scheduling queue.

data PrintLevel Source

Enumeration of OSC printer types.

dumpOSC :: PrintLevel -> OSCSource

Select printing of incoming Open Sound Control messages.

notify :: Bool -> OSCSource

Select reception of notification messages. (Asynchronous)

quit :: OSCSource

Stop synthesis server.

status :: OSCSource

Request /status.reply message.

sync :: Int -> OSCSource

Request /synced Message when all current asynchronous commands complete.

Variants to simplify common cases

b_set1 :: Int -> Int -> Double -> OSCSource

Set single sample value.

b_setn1 :: Int -> Int -> [Double] -> OSCSource

Set a range of sample values.

c_set1 :: Int -> Double -> OSCSource

Set single bus values.

n_set1 :: Int -> String -> Double -> OSCSource

Set a signle node control value.