Safe Haskell | None |
---|---|
Language | Haskell98 |
Non-realtime score generation.
- oscWithSize :: Bundle -> ByteString
- data NRT = NRT {
- nrt_bundles :: [Bundle]
- 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)
- 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.
encodeNRT :: NRT -> ByteString Source
Encode an NRT
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) 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.
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.