hsc3-0.15.1: 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

nrt_bundles :: [Bundle]
 

Instances

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) 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.