Supex.Sclang (supex v0.2.0)

View Source

Starts the port for SuperCollider's sclang and sends SuperCollider's commands to this sclang port.

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts sclang via a port, and boots the SuperCollider server.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

close_port()

(since 0.1.0)
@spec close_port() :: :ok

execute(sc_command)

(since 0.1.0)
@spec execute(binary()) :: %Supex.Sclang{
  last_command_executed: term(),
  port: term(),
  sc_server_booted: term()
}

start_link(init_arg)

(since 0.1.0)
@spec start_link(any()) :: :ignore | {:error, any()} | {:ok, pid()}

Starts sclang via a port, and boots the SuperCollider server.

stop_playing()

(since 0.1.0)
@spec stop_playing() :: %Supex.Sclang{
  last_command_executed: term(),
  port: term(),
  sc_server_booted: term()
}