Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)
« « « Anklang Documentation |
Projects support loading, saving, playback and act as containers for all other sound objects. More...
#include "api.hh"
Public Member Functions | |
virtual void | set_bpm (double bpm)=0 |
virtual double | get_bpm () const =0 |
virtual void | set_numerator (double num)=0 |
virtual double | get_numerator () const =0 |
virtual void | set_denominator (double den)=0 |
virtual double | get_denominator () const =0 |
virtual void | discard ()=0 |
Discard project and associated resources. | |
virtual void | start_playback ()=0 |
Start playback of a project, requires active sound engine. | |
virtual void | stop_playback ()=0 |
Stop project playback. | |
virtual bool | is_playing ()=0 |
Check whether a project is currently playing (song sequencing). | |
virtual TrackP | create_track ()=0 |
Create and append a new Track. | |
virtual bool | remove_track (Track &)=0 |
Remove a track owned by this Project. | |
virtual TrackS | all_tracks ()=0 |
List all tracks of the project. | |
virtual TrackP | master_track ()=0 |
Retrieve the master track. | |
virtual Error | save_project (const String &utf8filename, bool collect)=0 |
Store Project and collect external files. | |
virtual String | saved_filename ()=0 |
Retrieve UTF-8 filename for save or from load. | |
virtual Error | load_project (const String &utf8filename)=0 |
Load project from file filename . | |
virtual TelemetryFieldS | telemetry () const =0 |
Retrieve project telemetry locations. | |
virtual void | group_undo (const String &undoname)=0 |
Merge upcoming undo steps. | |
virtual void | ungroup_undo ()=0 |
Stop merging undo steps. | |
virtual void | undo ()=0 |
Undo the last project modification. | |
virtual bool | can_undo ()=0 |
Check if any undo steps have been recorded. | |
virtual void | redo ()=0 |
Redo the last undo modification. | |
virtual bool | can_redo ()=0 |
Check if any redo steps have been recorded. | |
virtual String | match_serialized (const String ®ex, int group=0)=0 |
Match regex against the serialized project state. | |
![]() | |
Track * | _track () const |
Find Track in parent ancestry. | |
virtual AudioProcessorP | _audio_processor () const =0 |
Retrieve the corresponding AudioProcessor. | |
virtual void | _set_event_source (AudioProcessorP esource)=0 |
virtual void | _activate ()=0 |
Add AudioProcessor to the Engine and start processing. | |
virtual void | _deactivate ()=0 |
Stop processing the corresponding AudioProcessor. | |
virtual void | _disconnect_remove ()=0 |
Disconnect the device and remove all object references. | |
virtual bool | is_active ()=0 |
Check whether this is the active synthesis engine project. | |
virtual DeviceInfo | device_info ()=0 |
Describe this Device type. | |
virtual DeviceS | get_devices () const =0 |
List devices in order of processing, notified via "devs". | |
virtual void | set_devices (const DeviceS &devices)=0 |
Set the list of devices. | |
void | remove_self () |
Remove device from its container. | |
virtual void | gui_toggle ()=0 |
Toggle GUI display. | |
virtual bool | gui_supported ()=0 |
Has GUI display facilities. | |
virtual bool | gui_visible ()=0 |
Is GUI currently visible. | |
![]() | |
virtual GadgetImpl * | _parent () const =0 |
Retrieve parent container. | |
virtual void | _set_parent (GadgetImpl *parent)=0 |
Assign parent container. | |
ProjectImpl * | _project () const |
Find Project in parent ancestry. | |
virtual String | get_name () const =0 |
virtual void | set_name (const std::string &n)=0 |
virtual String | type_nick () const =0 |
virtual StringS | list_properties () |
List all property identifiers. | |
virtual PropertyP | access_property (String ident) |
Retrieve handle for a Property. | |
virtual PropertyS | access_properties ()=0 |
Retrieve handles for all properties. | |
Value | get_value (String ident) |
Get native property value. | |
bool | set_value (String ident, const Value &v) |
virtual bool | set_data (const String &key, const Value &v)=0 |
Assign session data, prefix ephemerals with '_'. | |
virtual Value | get_data (const String &key) const =0 |
Retrieve session data. | |
![]() | |
virtual void | emit_event (const String &type, const String &detail, const ValueR fields={})=0 |
virtual void | emit_notify (const String &detail)=0 |
void | js_trigger (const String &eventselector, JsTrigger callback) |
![]() | |
T | enable_shared_from_this (T... args) |
T | operator= (T... args) |
T | shared_from_this (T... args) |
T | weak_from_this (T... args) |
T | ~enable_shared_from_this (T... args) |
Static Public Member Functions | |
static ProjectP | last_project () |
Public Attributes | |
Member<&Project::get_bpm,&Project::set_bpm > | bpm |
Member<&Project::get_numerator,&Project::set_numerator > | numerator |
Member<&Project::get_denominator,&Project::set_denominator > | denominator |
![]() | |
Member<&Device::get_devices,&Device::set_devices > | devices |
![]() | |
Member<&Gadget::get_name,&Gadget::set_name > | name |
![]() | |
const EventHandler & | eventhandler |
Projects support loading, saving, playback and act as containers for all other sound objects.
|
explicitprotected |
Definition at line 31 of file project.cc.
|
pure virtual |
List all tracks of the project.
Implemented in Ase::ProjectImpl.
|
pure virtual |
Check if any redo steps have been recorded.
Implemented in Ase::ProjectImpl.
|
pure virtual |
Check if any undo steps have been recorded.
Implemented in Ase::ProjectImpl.
|
pure virtual |
Create and append a new Track.
Implemented in Ase::ProjectImpl.
|
pure virtual |
Discard project and associated resources.
Implemented in Ase::ProjectImpl.
|
pure virtual |
Merge upcoming undo steps.
Implemented in Ase::ProjectImpl.
|
pure virtual |
Check whether a project is currently playing (song sequencing).
Implemented in Ase::ProjectImpl.
|
static |
Definition at line 38 of file project.cc.
Load project from file filename
.
Implemented in Ase::ProjectImpl.
|
pure virtual |
Retrieve the master track.
Implemented in Ase::ProjectImpl.
Match regex
against the serialized project state.
Implemented in Ase::ProjectImpl.
|
pure virtual |
Redo the last undo modification.
Implemented in Ase::ProjectImpl.
Remove a track owned by this Project.
Implemented in Ase::ProjectImpl.
Store Project and collect external files.
Implemented in Ase::ProjectImpl.
|
pure virtual |
Retrieve UTF-8 filename for save or from load.
Implemented in Ase::ProjectImpl.
|
pure virtual |
Start playback of a project, requires active sound engine.
Implemented in Ase::ProjectImpl.
|
pure virtual |
Stop project playback.
Implemented in Ase::ProjectImpl.
|
pure virtual |
Retrieve project telemetry locations.
Implemented in Ase::ProjectImpl.
|
pure virtual |
Undo the last project modification.
Implemented in Ase::ProjectImpl.
|
pure virtual |
Stop merging undo steps.
Implemented in Ase::ProjectImpl.
Member<&Project::get_bpm,&Project::set_bpm> Ase::Project::bpm |
Member<&Project::get_denominator,&Project::set_denominator> Ase::Project::denominator |
Member<&Project::get_numerator,&Project::set_numerator> Ase::Project::numerator |