| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Vivid.SC.Server.Commands
Contents
Synopsis
- quit :: OSC
- dumpOSC :: DumpOSCMode -> OSC
- data DumpOSCMode
- sync :: SyncId -> OSC
- clearSched :: OSC
- d_recv :: [LiteralSynthDef] -> Maybe OSC -> OSC
- d_load :: FilePath -> Maybe OSC -> OSC
- d_loadDir :: FilePath -> Maybe OSC -> OSC
- n_free :: NodeId -> OSC
- n_run :: NodeId -> Bool -> OSC
- n_set :: NodeId -> [(String, Either Int32 Float)] -> OSC
- addActionInt :: Integral i => AddAction -> i
- data AddAction
- s_new :: ByteString -> NodeId -> AddAction -> NodeId -> [(ByteString, Either Int32 Float)] -> OSC
- g_new :: NodeId -> AddAction -> NodeId -> OSC
- p_new :: NodeId -> AddAction -> NodeId -> OSC
- g_freeAll :: [NodeId] -> OSC
- b_alloc :: BufferId -> Int32 -> Int32 -> Maybe OSC -> OSC
- b_allocRead :: BufferId -> FilePath -> Int32 -> Maybe Int32 -> Maybe OSC -> OSC
- b_zero :: BufferId -> Maybe OSC -> OSC
- b_free :: BufferId -> Maybe OSC -> OSC
- b_close :: BufferId -> Maybe OSC -> OSC
- b_write :: BufferId -> FilePath -> String -> String -> Maybe Int32 -> Int32 -> Bool -> Maybe OSC -> OSC
Documentation
dumpOSC :: DumpOSCMode -> OSC #
data DumpOSCMode #
Constructors
| DumpOSC_Off | |
| DumpOSC_Parsed | |
| DumpOSC_Hex | |
| DumpOSC_ParsedAndHex |
Instances
| Eq DumpOSCMode # | |
Defined in Vivid.SC.Server.Commands | |
| Ord DumpOSCMode # | |
Defined in Vivid.SC.Server.Commands Methods compare :: DumpOSCMode -> DumpOSCMode -> Ordering # (<) :: DumpOSCMode -> DumpOSCMode -> Bool # (<=) :: DumpOSCMode -> DumpOSCMode -> Bool # (>) :: DumpOSCMode -> DumpOSCMode -> Bool # (>=) :: DumpOSCMode -> DumpOSCMode -> Bool # max :: DumpOSCMode -> DumpOSCMode -> DumpOSCMode # min :: DumpOSCMode -> DumpOSCMode -> DumpOSCMode # | |
| Read DumpOSCMode # | |
Defined in Vivid.SC.Server.Commands Methods readsPrec :: Int -> ReadS DumpOSCMode # readList :: ReadS [DumpOSCMode] # readPrec :: ReadPrec DumpOSCMode # readListPrec :: ReadPrec [DumpOSCMode] # | |
| Show DumpOSCMode # | |
Defined in Vivid.SC.Server.Commands Methods showsPrec :: Int -> DumpOSCMode -> ShowS # show :: DumpOSCMode -> String # showList :: [DumpOSCMode] -> ShowS # | |
clearSched :: OSC #
d_recv :: [LiteralSynthDef] -> Maybe OSC -> OSC #
Send Synth Definitions to the server.
The second argument is an optional message to execute on completion.
addActionInt :: Integral i => AddAction -> i #
Constructors
| AddToHead | |
| AddToTail | |
| AddBefore | |
| AddAfter | |
| ReplaceNode |
Instances
| Eq AddAction # | |
| Ord AddAction # | |
| Show AddAction # | |
Buffer commands
b_alloc :: BufferId -> Int32 -> Int32 -> Maybe OSC -> OSC #
Second and third arguments are number of frames and number of channels, respectively
b_allocRead :: BufferId -> FilePath -> Int32 -> Maybe Int32 -> Maybe OSC -> OSC #
The first Int32 is the starting frame to read (often this is zero);
the second is an optional number of frames to read (Nothing means
the rest of the file is read)
b_write :: BufferId -> FilePath -> String -> String -> Maybe Int32 -> Int32 -> Bool -> Maybe OSC -> OSC #
First String is header format (e.g. "wav"), second String is sample format
(e.g. "float"). The (Maybe Int32) is number of frames to write (Nothing
writes to the end of the buffer), the Int32 that follows it is the start
frame (which is often zero). The Bool is whether to leave the file open.
More details (e.g. the available header and sample formats) are available in the SuperCollider docs.