recorder

class Recorder(server)

Bases: supriya.system.SupriyaObject

A server recorder.

>>> import os, tempfile, time
>>> server = supriya.Server().boot()
>>> with tempfile.TemporaryDirectory() as tempdir:
...     server.recorder.start(
...         file_path=os.path.join(tempdir, "example.aiff"),
...         channel_count=2,
...         header_format="AIFF",
...     )
...     time.sleep(1)
...     server.recorder.stop()
... 
property channel_count
property current_channel_count
property current_file_path
property current_header_format
property current_sample_format
property header_format
property is_recording
pause()
prepare(file_path=None, channel_count=None, header_format=None, sample_format=None)
property record_buffer
property record_node
property record_synthdef
property sample_format
property server
start(file_path=None, channel_count=None, header_format=None, sample_format=None)
stop()
unpause()