hsc3-0.19.1: Haskell SuperCollider
Safe HaskellNone
LanguageHaskell2010

Sound.SC3.Server.Recorder

Description

Recording scsynth.

Synopsis

Documentation

data SC3_Recorder Source #

Parameters for recording scsynth.

Constructors

SC3_Recorder 

Fields

default_SC3_Recorder :: SC3_Recorder Source #

Default recording structure.

rec_synthdef_nm :: Int -> String Source #

The name indicates the number of channels.

rec_synthdef :: Int -> Synthdef Source #

Generate Synthdef with required number of channels.

Sound.SC3.UGen.Dot.draw (rec_synthdef 2)

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.

import Sound.SC3
withSC3 (Sound.OSC.sendMessage (dumpOSC TextPrinter))
audition (out 0 (sinOsc AR (mce2 440 441) 0 * 0.1))
let rc = default_SC3_Recorder {rec_dur = Just 5.0}
nrt_audition (sc3_recorder rc)