Safe Haskell | None |
---|---|
Language | Haskell98 |
Non-realtime score generation.
- oscWithSize :: Bundle -> ByteString
- data NRT = NRT {
- nrt_bundles :: [Bundle]
- type NRT_STAT = ((String, Time), (String, Int), (String, Int), (String, [(String, Int)]))
- nrt_stat :: NRT -> NRT_STAT
- nrt_span :: (Time -> Bool) -> NRT -> ([Bundle], [Bundle])
- encodeNRT :: NRT -> ByteString
- writeNRT :: FilePath -> NRT -> IO ()
- putNRT :: Handle -> NRT -> IO ()
- decode_nrt_bundles :: ByteString -> [Bundle]
- decodeNRT :: ByteString -> NRT
- readNRT :: FilePath -> IO NRT
- type NRT_Render_Plain = (FilePath, FilePath, Int, Int, SampleFormat, [String])
- nrt_render_plain :: NRT_Render_Plain -> NRT -> IO ()
Documentation
oscWithSize :: Bundle -> ByteString Source #
Encode and prefix with encoded length.
NRT | |
|
nrt_span :: (Time -> Bool) -> NRT -> ([Bundle], [Bundle]) Source #
span
of f
of bundleTime
. Can be used to separate the
initialisation and remainder parts of a score.
decode_nrt_bundles :: ByteString -> [Bundle] Source #
Decode an NRT
ByteString
to a list of Bundle
s.
decodeNRT :: ByteString -> NRT Source #
Decode an NRT
ByteString
.
Render
type NRT_Render_Plain = (FilePath, FilePath, Int, Int, SampleFormat, [String]) Source #
Minimal NRT rendering options. The sound file type is inferred from the file name extension. Structure is: OSC file name, output audio file name, output number of channels, sample rate, sample format, further parameters (ie. ["-m","32768"]) to be inserted before the NRT -N option.
nrt_render_plain :: NRT_Render_Plain -> NRT -> IO () Source #
Minimal NRT rendering, for more control see Stefan Kersten's hsc3-process package at: https://github.com/kaoskorobase/hsc3-process.