hsc3-0.15.1: Haskell SuperCollider

Safe HaskellNone
LanguageHaskell98

Sound.SC3.Server.Recorder

Description

Recording scsynth.

Synopsis

Documentation

data SC3_Recorder Source

Parameters for recording scsynth.

Constructors

SC3_Recorder 

Fields

rec_sftype :: SoundFileFormat

Sound file format.

rec_coding :: SampleFormat

Sample format.

rec_fname :: FilePath

File name.

rec_nc :: Int

Number of channels.

rec_bus :: Int

Bus number.

rec_buf_id :: Int

ID of buffer to allocate.

rec_buf_frames :: Int

Number of frames at buffer.

rec_node_id :: Int

ID to allocate for node.

rec_group_id :: Int

Group to allocate node within.

rec_dur :: Maybe Time

Recoring duration if fixed.

default_SC3_Recorder :: SC3_Recorder Source

Default recording structure.

rec_synthdef :: SC3_Recorder -> Synthdef Source

Generate Synthdef with required number of channels.

rec_init_m :: SC3_Recorder -> [Message] Source

Asyncronous initialisation Messages (d_recv, b_alloc and b_write).

withSC3 (sendBundle (bundle immediately (rec_init_m def)))

rec_begin_m :: SC3_Recorder -> Message Source

Begin recording Message (s_new).

withSC3 (sendMessage (rec_begin_m def))

rec_end_m :: SC3_Recorder -> [Message] Source

End recording Messages (n_free, b_close and b_free).

withSC3 (sendBundle (bundle immediately (rec_end_m def)))

sc3_recorder :: SC3_Recorder -> NRT Source

NRT score for recorder, if rec_dur is given schedule rec_end_m.