libAlgAudio
v1.99-440-g08538e5-dirty
The development library for AlgAudio framework.
|
#include <SCLang.hpp>
Static Public Member Functions | |
static void | BootServer () |
static void | DebugQueryInstalled () |
static LateReturn | InstallTemplate (const std::shared_ptr< ModuleTemplate > templ) |
static bool | IsRunning () |
static void | PollOSC () |
static void | PollSubprocess () |
static void | QueryAllNodes () |
static int | RegisterSendReply (int synth_id, std::weak_ptr< SendReplyController >) |
static void | Restart () |
static void | SendInstruction (std::string instr) |
static void | Start () |
static void | Stop () |
static void | StopServer () |
static void | UnregisterSendReply (int synth_id, int reply_id) |
static bool | WasInstalled (const std::string &id) |
static void | SetOSCDebug (bool enabled) |
static void | SendOSC (const std::string &path) |
static void | SendOSC (const std::string &path, std::string tag,...) |
static void | SendOSCCustom (const std::string &path, const lo::Message &m) |
static LateReturn< lo::Message > | SendOSCWithLOReply (const std::string &path) |
static LateReturn< lo::Message > | SendOSCWithLOReply (const std::string &path, std::string tag,...) |
static LateReturn< lo::Message > | SendOSCCustomWithLOReply (const std::string &path, const lo::Message &m) |
template<typename... Q, typename... Rest> | |
static LateReturn< Q...> | SendOSCWithReply (const std::string &path, Rest...args) |
template<typename... Q> | |
static LateReturn< Q...> | SendOSCCustomWithReply (const std::string &path, const lo::Message &m) |
template<typename... Rest> | |
static LateReturn | SendOSCWithEmptyReply (const std::string &path, Rest...args) |
Static Public Attributes | |
static Signal< std::string > | on_line_received |
static Signal< MidiMessage > | on_midi_message_received |
static Signal< bool > | on_server_started |
static Signal< bool, std::string > | on_start_completed |
static Signal< int, std::string > | on_start_progress |
static bool | ready |
The static interface to a single global sclang process. Manages all interaction with the SuperCollider instance, including intepteter starting and halting, server configuration and booting, OSC messaging.
|
static |
Boots the supercollider server. Uses global configuration.
|
static |
Writes the list of all templates that were installed to stdout.
|
static |
Performs SC synth template (SynthDef) installation on the server.
|
inlinestatic |
Returns true iff SuperCollider was started and is ready to work.
|
static |
|
static |
This function will process any subprocess output. It shall be called only by the main thread. The main thread is notified about awaiting data by an SDL_UserEvent send to the main queue. It then calls this method, which in turn triggers all signals and callbacks that waited for sclang subprocess output.
|
static |
Asks SuperCollider to s.QueryAllNodes. sclang subprocess will then print out a graph of active synths and groups hierarchy - useful for debugging. Observe on_line_received for result.
|
static |
Returns the new reply id the catcher will use. Afterwards one should set the SC Synth's arg to that returned value, so that it will start sending replies with the right id.
|
static |
Reboots SuperCollider.
|
static |
Passes a text instruction to sclang subprocess via its stdin.
instr | The instruction to send. |
|
static |
Various functions and type templates for OSC communication.
|
static |
Various functions and type templates for OSC communication.
|
static |
Various functions and type templates for OSC communication.
|
static |
Various functions and type templates for OSC communication.
|
inlinestatic |
Various functions and type templates for OSC communication.
|
inlinestatic |
Various functions and type templates for OSC communication.
|
static |
Various functions and type templates for OSC communication.
|
static |
Various functions and type templates for OSC communication.
|
inlinestatic |
Various functions and type templates for OSC communication.
|
static |
Various functions and type templates for OSC communication.
|
static |
Launches SuperCollider. Starts the interpreter, prepares connection, boots the server etc. Uses the configuration from global config.
|
static |
Stops SuperCollider, closing the interpreter and stopping the subprocess.
|
static |
Quits the supercollider server.
|
static |
Unregisters a sendreply catcher that was previously created with RegisterSendReply().
|
static |
Returns true iff the template was already installed in the server.
id | The template id. |
|
static |
Happens once for each line of sclang subprocess stdout.
|
static |
Happens whenever sclang receives some MIDI event.
|
static |
Happens when the SC server started. Carries bool marking whether the start was successful.
|
static |
Happens when Start completes. Carries bool marking whether the start was sucessful, if not, the string contains an error message.
|
static |
Happens multiple times during start process. Each time it carries a number which increases during the start procedure (this is intended for progressbars), and a string with current status message,
|
static |
True if the supercollider subprocess is ready to work.