hsc3-0.12: Haskell SuperCollider

Safe HaskellNone

Sound.SC3.Server.NRT

Description

Non-realtime score generation.

Synopsis

Documentation

oscWithSize :: Bundle -> ByteStringSource

Encode and prefix with encoded length.

data NRT Source

An NRT score is a sequence of Bundles.

Constructors

NRT 

Fields

nrt_bundles :: [Bundle]
 

Instances

encodeNRT :: NRT -> ByteStringSource

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.

data NRT_File_Format Source

File formats scsynth renders to.

Constructors

AIFF 
FLAC 
NeXT 
WAVE 

data NRT_Sample_Format Source

Sample formats scsynth renders to.

Constructors

I16 
I24 
I32 
F32 
F64 

data NRT_Render Source

Data required to render an NRT score using scsynth. The input file is optional.

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 command as String, with shell protected arguments.

 renderNRT_cmd [] (NRT_Render "s.osc" Nothing "s.flac" 2 44100 FLAC I24)

renderNRT :: [String] -> NRT_Render -> IO ExitCodeSource

Run scsynth to render NRT_Render with given scsynth options.