| Safe Haskell | None |
|---|
Sound.SC3.Server.NRT
Description
Non-realtime score generation.
- oscWithSize :: Bundle -> ByteString
- data NRT = NRT {
- nrt_bundles :: [Bundle]
- encodeNRT :: NRT -> ByteString
- writeNRT :: FilePath -> NRT -> IO ()
- putNRT :: Handle -> NRT -> IO ()
- decode_nrt_bundles :: ByteString -> [Bundle]
- decodeNRT :: ByteString -> NRT
- readNRT :: FilePath -> IO NRT
- data NRT_File_Format
- data NRT_Sample_Format
- data NRT_Render = NRT_Render {}
- nrt_sf_pp :: NRT_Sample_Format -> String
- renderNRT_opt :: NRT_Render -> [String]
- renderNRT_cmd :: [String] -> NRT_Render -> String
- renderNRT :: [String] -> NRT_Render -> IO ExitCode
Documentation
oscWithSize :: Bundle -> ByteStringSource
Encode and prefix with encoded length.
Constructors
| NRT | |
Fields
| |
encodeNRT :: NRT -> ByteStringSource
Encode an NRT score.
decode_nrt_bundles :: ByteString -> [Bundle]Source
Decode an NRT ByteString to a list of Bundles.
decodeNRT :: ByteString -> NRTSource
Decode an NRT ByteString.
data NRT_Render Source
Data required to render an NRT score using scsynth. The
input file is optional.
Constructors
| NRT_Render | |
nrt_sf_pp :: NRT_Sample_Format -> StringSource
Format NRT_Sample_Format for scsynth.
renderNRT_opt :: NRT_Render -> [String]Source
Format NRT_Render as list of arguments to scsynth.
let {r = NRT_Render "x.osc" Nothing "x.aif" 2 44100 AIFF I16
;a = ["-o","2","-N","x.osc","_","x.aif","44100","AIFF","int16"]}
in renderNRT_opt r == a
renderNRT_cmd :: [String] -> NRT_Render -> StringSource
renderNRT :: [String] -> NRT_Render -> IO ExitCodeSource
Run scsynth to render NRT_Render with given scsynth options.