|
Anklang-0.3.0.dev797+g4e3241f3 anklang-0.3.0.dev797+g4e3241f3
ASE — Anklang Sound Engine (C++)
« « « Anklang Documentation |
Classes | |
| class | ClipStateListener |
| struct | CmpNoteTicks |
| class | Generator |
| Generator for MIDI events. More... | |
Public Types | |
| using | OrderedEventsV = OrderedEventList< ClipNote, CmpNoteTicks > |
| using | OrderedEventsP = OrderedEventsV::ConstP |
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 | |
| OrderedEventsP | tick_events () const |
| Retrieve const vector with all notes ordered by tick. | |
| ProjectImpl * | project () const |
| int64 | start_tick () const override |
Get the first tick intended for playback (this is >= 0), changes on notify:start_tick. | |
| int64 | stop_tick () const override |
Get the tick to stop playback, not events should be played after this, changes on notify:stop_tick. | |
| void | assign_range (int64 starttick, int64 stoptick) override |
Change start_tick() and stop_tick(); emits notify:start_tick, notify:stop_tick. | |
| ClipNoteS | list_all_notes () override |
List all notes of this Clip; changes on notify:notes. | |
| bool | needs_serialize () const |
| int32 | change_batch (const ClipNoteS ¬es, const String &undogroup) override |
Change note id according to the arguments or add a new note if id < 0; emits notify:notes. | |
| bool | is_muted () const override |
| Check if clip is muted. | |
| void | set_muted (bool muted) override |
Set clip muted state, emits notify:muted. | |
| double | volume () const override |
| Get clip volume in dB. | |
| void | volume (double db) override |
Set clip volume in dB, emits notify:volume. | |
| double | pan () const override |
| Get clip pan (-1.0 to 1.0). | |
| void | pan (double pan) override |
Set clip pan (-1.0 to 1.0), emits notify:pan. | |
| void | update_telemetry () |
| TelemetryFieldS | telemetry () const override |
| Retrieve clip telemetry locations. | |
| ASE_DEFINE_MAKE_SHARED (ClipImpl) | |
Public Member Functions inherited from Ase::GadgetImpl | |
| String | name () const override |
| void | name (const std::string &n) override |
| void | _set_parent (GadgetImpl *parent) override |
| Assign parent container. | |
| 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. | |
Static Public Member Functions | |
| static ClipImplP | from_trkn (tracktion::Clip &) |
Protected Member Functions | |
| ClipImpl (tracktion::Clip &clip) | |
| void | serialize (WritNode &xs) override |
| Serialize members and childern. | |
| ssize_t | clip_index () const |
| ClipNoteS | all_notes () const override |
| void | all_notes (const ClipNoteS ¬es) override |
| int64 | end_tick () const override |
| void | end_tick (int64 etick) override |
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 String | fallback_name () const |
| void | serialize (WritNode &xs) override |
| Serialize members and childern. | |
| virtual void | create_properties () |
Protected Member Functions inherited from Ase::CustomDataContainer | |
| void | custom_data_destroy () |
Friends | |
| class | TrackImpl |
Additional Inherited Members | |
Public Attributes inherited from Ase::Emittable | |
| const EventHandler & | eventhandler |
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_ |
|
explicitprotected |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Change start_tick() and stop_tick(); emits notify:start_tick, notify:stop_tick.
Implements Ase::Clip.
Definition at line 131 of file clip.cc.
References assert_return, double, and Ase::TRANSPORT_PPQN.
|
overridevirtual |
Change note id according to the arguments or add a new note if id < 0; emits notify:notes.
Insert, change, delete in a batch.
Implements Ase::Clip.
Definition at line 320 of file clip.cc.
References assert_return, double, Ase::EmittableImpl::emit_notify(), std::string::empty(), and Ase::TRANSPORT_PPQN.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
static |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Get clip pan (-1.0 to 1.0).
Implements Ase::Clip.
Definition at line 279 of file clip.cc.
References tracktion::engine::AudioClipBase::getPan().
|
overridevirtual |
Set clip pan (-1.0 to 1.0), emits notify:pan.
Implements Ase::Clip.
Definition at line 289 of file clip.cc.
References tracktion::engine::AudioClipBase::setPan().
| ProjectImpl * Ase::ClipImpl::project | ( | ) | const |
|
overrideprotectedvirtual |
Serialize members and childern.
Implements Ase::Serializable.
Definition at line 115 of file clip.cc.
References Ase::GadgetImpl::serialize().
|
overridevirtual |
|
overridevirtual |
Get the first tick intended for playback (this is >= 0), changes on notify:start_tick.
Implements Ase::Clip.
Definition at line 217 of file clip.cc.
References Ase::TRANSPORT_PPQN.
|
overridevirtual |
Get the tick to stop playback, not events should be played after this, changes on notify:stop_tick.
Implements Ase::Clip.
Definition at line 225 of file clip.cc.
References Ase::TRANSPORT_PPQN.
|
overridevirtual |
| ClipImpl::OrderedEventsP Ase::ClipImpl::tick_events | ( | ) | const |
Retrieve const vector with all notes ordered by tick.
Definition at line 313 of file clip.cc.
Referenced by Ase::ClipImpl::Generator::setup().
|
overridevirtual |
Get clip volume in dB.
Implements Ase::Clip.
Definition at line 249 of file clip.cc.
References tracktion::engine::AudioClipBase::getGainDB().
|
overridevirtual |
Set clip volume in dB, emits notify:volume.
Implements Ase::Clip.
Definition at line 262 of file clip.cc.
References tracktion::engine::AudioClipBase::setGainDB().