scsynth¶
- class AsyncNonrealtimeProcessProtocol¶
Bases:
SubprocessProtocol,ProcessProtocol- connection_made(transport) None¶
Called when a connection is made.
The argument is the transport representing the pipe connection. To receive data, wait for data_received() calls. When the connection is closed, connection_lost() is called.
- pipe_connection_lost(fd, exc) None¶
Called when a file descriptor associated with the child process is closed.
fd is the int file descriptor that was closed.
-
class AsyncProcessProtocol(*, name: str | None =
None, on_boot_callback: Callable | None =None, on_panic_callback: Callable | None =None, on_quit_callback: Callable | None =None)¶ Bases:
SubprocessProtocol,ProcessProtocol- connection_made(transport) None¶
Called when a connection is made.
The argument is the transport representing the pipe connection. To receive data, wait for data_received() calls. When the connection is closed, connection_lost() is called.
- pipe_connection_lost(fd, exc) None¶
Called when a file descriptor associated with the child process is closed.
fd is the int file descriptor that was closed.
-
class Capture(*, future: Future[bool] | Future[bool] | None =
None, process_protocol: ProcessProtocol, start_pattern: str | None =None, stop_pattern: str | None =None)¶ Bases:
object
-
class Options(audio_bus_channel_count: int =
1024, block_size: int =64, buffer_count: int =1024, control_bus_channel_count: int =16384, executable: str | None =None, hardware_buffer_size: int | None =None, initial_node_id: int =1000, input_bus_channel_count: int =8, input_device: str | None =None, input_stream_mask: str ='', ip_address: str ='127.0.0.1', load_synthdefs: bool =True, maximum_logins: int =1, maximum_node_count: int =1024, maximum_synthdef_count: int =1024, memory_locking: bool =False, memory_size: int =8192, output_bus_channel_count: int =8, output_device: str | None =None, output_stream_mask: str ='', password: str | None =None, port: int =57110, protocol: str ='udp', random_number_generator_count: int =64, realtime: bool =True, restricted_path: str | None =None, safety_clip: 'inf' | int | None =None, sample_rate: int | None =None, threads: int =6, ugen_plugins_path: str | None =None, verbosity: int =0, wire_buffer_count: int =64, zero_configuration: bool =False)¶ Bases:
objectSuperCollider server options configuration.
- __iter__()¶
- __post_init__()¶
- property first_private_bus_id¶
- property private_audio_bus_channel_count¶
-
class ProcessProtocol(*, name: str | None =
None, on_boot_callback: Callable | None =None, on_panic_callback: Callable | None =None, on_quit_callback: Callable | None =None)¶ Bases:
object
-
class ThreadedProcessProtocol(*, name: str | None =
None, on_boot_callback: Callable | None =None, on_panic_callback: Callable | None =None, on_quit_callback: Callable | None =None)¶ Bases:
ProcessProtocol
-
find(scsynth_path=
None) Path¶ Find the
scsynthexecutable.The following paths, if defined, will be searched (prioritised as ordered):
The absolute path
scsynth_pathThe environment variable
SUPRIYA_SERVER_EXECUTABLE(pointing to the scsynth binary)The user’s
PATHCommon installation directories of the SuperCollider application.
Returns a path to the
scsynthexecutable. RaisesRuntimeErrorif no path is found.
- kill()¶