|
Anklang-0.3.0.dev551+gad1415e2 anklang-0.3.0.dev551+gad1415e2
ASE — Anklang Sound Engine (C++)
« « « Anklang Documentation |
Ase::Track implementation. More...
#include "track.hh"
Classes | |
| class | ClipScout |
| MIDI clip playback succession generator. More... | |
Public Types | |
| enum | Cmd { STOP , START } |
| enum | { NONE } |
Public Types inherited from Ase::GadgetImpl | |
| using | MemberAccessF = std::function< bool(GadgetImpl *, const Value *, Value *)> |
| using | MemberInfosP = const StringS &(*)() |
| using | MemberClassT = bool(*)(const SharedBase &) |
Public Member Functions | |
| TrackImpl (ProjectImpl &, bool masterflag) | |
| void | _activate () override |
| Add AudioProcessor to the Engine and start processing. | |
| void | _deactivate () override |
| Stop processing the corresponding AudioProcessor. | |
| AudioProcessorP | _audio_processor () const override |
| Retrieve the corresponding AudioProcessor. | |
| void | _set_event_source (AudioProcessorP esource) override |
| void | _set_parent (GadgetImpl *parent) override |
| Assign parent container. | |
| DeviceInfo | device_info () override |
| Describe this Device type. | |
| ProjectImpl * | project () const |
| bool | is_master () const override |
| Flag set on the main output track. | |
| int32 | midi_channel () const override |
| Midi channel assigned to this track, 0 uses internal per-track channel. | |
| void | midi_channel (int32 midichannel) override |
| ClipS | launcher_clips () override |
| Retrieve the list of clips that can be directly played. | |
| DeviceP | access_device () override |
| Retrieve Device handle for this track. | |
| MonitorP | create_monitor (int32 ochannel) override |
| void | update_clips () |
| ssize_t | clip_index (const ClipImpl &clip) const |
| int | clip_succession (const ClipImpl &clip) const |
| TelemetryFieldS | telemetry () const override |
| Create signal monitor for an output channel. | |
| void | queue_cmd (CallbackS &, Cmd cmd, double arg=0) |
| void | queue_cmd (DCallbackS &, Cmd cmd) |
Public Member Functions inherited from Ase::DeviceImpl | |
| DeviceS | get_devices () const override |
| List devices in order of processing, notified via "devs". | |
| void | set_devices (const DeviceS &newdevices) override |
| Set the list of devices. | |
| bool | is_active () override |
| Check whether this is the active synthesis engine project. | |
| bool | gui_supported () override |
| Has GUI display facilities. | |
| bool | gui_visible () override |
| Is GUI currently visible. | |
| void | gui_toggle () override |
| Toggle GUI display. | |
| void | _disconnect_remove () override |
| Disconnect the device and remove all object references. | |
Public Member Functions inherited from Ase::GadgetImpl | |
| String | get_name () const override |
| void | set_name (const std::string &n) override |
| GadgetImpl * | _parent () const override |
| Retrieve parent container. | |
| String | type_nick () const override |
| PropertyS | access_properties () override |
| Retrieve handles for all properties. | |
| bool | set_data (const String &key, const Value &v) override |
| Assign session data, prefix ephemerals with '_'. | |
| Value | get_data (const String &key) const override |
| Retrieve session data. | |
| template<class O , class M > | |
| void | _register_parameter (O *, M *, const Param::ExtraVals &) const |
Public Member Functions inherited from Ase::EmittableImpl | |
| ASE_USE_RESULT Connection | on_event (const String &eventselector, const EventHandler &eventhandler) override |
| void | emit_event (const String &type, const String &detail, const ValueR fields={}) override |
| void | emit_notify (const String &detail) override |
Emit notify:detail, multiple notifications maybe coalesced if a CoalesceNotifies instance exists. | |
Public Member Functions inherited from Ase::Emittable | |
| void | js_trigger (const String &eventselector, JsTrigger callback) |
Public Member Functions inherited from std::enable_shared_from_this< SharedBase > | |
| 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) |
Public Member Functions inherited from Ase::CustomDataContainer | |
| template<class T > | |
| void | set_custom_data (CustomDataKey< T > *key, T data) |
| Assign data to the custom keyed data member, deletes any previously set data. | |
| template<class T > | |
| T | get_custom_data (CustomDataKey< T > *key) const |
| Retrieve contents of the custom keyed data member, returns DataKey::fallback if nothing was set. | |
| template<class T > | |
| bool | has_custom_data (CustomDataKey< T > *key) const |
| Retrieve wether contents of the custom keyed data member exists. | |
| template<class T > | |
| bool | del_custom_data (CustomDataKey< T > *key) |
| Delete the current contents of the custom keyed data member, invokes DataKey::destroy. | |
Public Member Functions inherited from Ase::Gadget | |
| ProjectImpl * | _project () const |
| Find Project in parent ancestry. | |
| virtual StringS | list_properties () |
| List all property identifiers. | |
| virtual PropertyP | access_property (String ident) |
| Retrieve handle for a Property. | |
| Value | get_value (String ident) |
| Get native property value. | |
| bool | set_value (String ident, const Value &v) |
| Set native property value. | |
Public Member Functions inherited from Ase::Device | |
| Track * | _track () const |
| Find Track in parent ancestry. | |
| void | remove_self () |
| Remove device from its container. | |
Protected Member Functions | |
| String | fallback_name () const override |
| void | serialize (WritNode &xs) override |
| Serialize members and childern. | |
Protected Member Functions inherited from Ase::DeviceImpl | |
| virtual DeviceS | list_devices () |
Protected Member Functions inherited from Ase::GadgetImpl | |
| uint64_t | gadget_flags () const |
| uint64_t | gadget_flags (uint64_t setbits, uint64_t mask=~uint64_t(0)) |
| virtual void | create_properties () |
Protected Member Functions inherited from Ase::CustomDataContainer | |
| void | custom_data_destroy () |
Friends | |
| class | ProjectImpl |
Additional Inherited Members | |
Static Public Member Functions inherited from Ase::DeviceImpl | |
| static DeviceInfo | extract_info (const String &aseid, const AudioProcessor::StaticInfo &static_info) |
Public Attributes inherited from Ase::Emittable | |
| const EventHandler & | eventhandler |
Public Attributes inherited from Ase::Gadget | |
| Member<&Gadget::get_name,&Gadget::set_name > | name |
Public Attributes inherited from Ase::Device | |
| Member<&Device::get_devices,&Device::set_devices > | devices |
Protected Types inherited from Ase::GadgetImpl | |
| enum | : uint64_t { GADGET_DESTROYED , DEVICE_ACTIVE , MASTER_TRACK } |
Static Protected Member Functions inherited from Ase::GadgetImpl | |
| static String | canonify_key (const String &input) |
Protected Attributes inherited from Ase::GadgetImpl | |
| PropertyImplS | props_ |
Ase::Track implementation.
|
explicit |
|
overridevirtual |
Add AudioProcessor to the Engine and start processing.
Reimplemented from Ase::DeviceImpl.
Definition at line 115 of file track.cc.
References Ase::DeviceImpl::_activate(), Ase::GadgetImpl::_parent(), assert_return, and Ase::DeviceImpl::is_active().
|
overridevirtual |
Retrieve the corresponding AudioProcessor.
Implements Ase::Device.
|
overridevirtual |
Stop processing the corresponding AudioProcessor.
Reimplemented from Ase::DeviceImpl.
Definition at line 124 of file track.cc.
References Ase::DeviceImpl::_deactivate(), assert_return, and Ase::DeviceImpl::is_active().
|
overridevirtual |
Implements Ase::Device.
|
overridevirtual |
Assign parent container.
Reimplemented from Ase::DeviceImpl.
Definition at line 81 of file track.cc.
References Ase::DeviceImpl::_set_parent(), assert_return, and Ase::EmittableImpl::emit_notify().
|
overridevirtual |
Retrieve Device handle for this track.
Implements Ase::Track.
|
overridevirtual |
Implements Ase::Track.
|
overridevirtual |
|
overrideprotectedvirtual |
Reimplemented from Ase::GadgetImpl.
|
overridevirtual |
|
overridevirtual |
Retrieve the list of clips that can be directly played.
Implements Ase::Track.
Definition at line 172 of file track.cc.
Referenced by serialize().
|
overridevirtual |
Midi channel assigned to this track, 0 uses internal per-track channel.
Implements Ase::Track.
|
overridevirtual |
Implements Ase::Track.
| ProjectImpl * Ase::TrackImpl::project | ( | ) | const |
| void Ase::TrackImpl::queue_cmd | ( | DCallbackS & | queue, |
| Cmd | cmd | ||
| ) |
|
overrideprotectedvirtual |
Serialize members and childern.
Reimplemented from Ase::GadgetImpl.
Definition at line 47 of file track.cc.
References Ase::EmittableImpl::emit_notify(), Ase::WritNode::in_load(), Ase::WritNode::in_save(), launcher_clips(), Ase::WritNode::push(), Ase::Serializable::serialize(), and Ase::WritNode::to_nodes().
|
overridevirtual |
Create signal monitor for an output channel.
Retrieve track telemetry locations.
Implements Ase::Track.
Definition at line 240 of file track.cc.
References assert_return.
|
friend |