hsc3-0.16: Haskell SuperCollider

Safe HaskellNone
LanguageHaskell98

Sound.SC3.Server.NRT

Contents

Description

Non-realtime score generation.

Synopsis

Documentation

oscWithSize :: Bundle -> ByteString Source #

Encode and prefix with encoded length.

data NRT Source #

An NRT score is a sequence of Bundles.

Constructors

NRT 

Fields

Instances

Show NRT Source # 

Methods

showsPrec :: Int -> NRT -> ShowS #

show :: NRT -> String #

showList :: [NRT] -> ShowS #

type NRT_STAT = ((String, Time), (String, Int), (String, Int), (String, [(String, Int)])) Source #

nrt_stat :: NRT -> NRT_STAT Source #

Trivial NRT statistics.

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.

writeNRT :: FilePath -> NRT -> IO () Source #

Write an NRT score.

putNRT :: Handle -> NRT -> IO () Source #

Write an NRT score to a file handle.

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.