Anklang-0.3.0-1416-gfa8ce8d2 anklang-0.3.0-1416-gfa8ce8d2
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
Ase::ClipImpl Class Reference
Inheritance diagram for Ase::ClipImpl:
[legend]

Classes

class  ClipStateListener
 

Public Member Functions

String name () const override
 
void name (const std::string &n) override
 
ClipPosition position () const override
 
void position (const ClipPosition &position) override
 
double start_beat () const override
 Clip start in Tracktion beats, changes on notify:start_beat.
 
void start_beat (double) override
 Read-only, assignments warn.
 
double end_beat () const override
 Clip end in Tracktion beats, changes on notify:end_beat.
 
void end_beat (double) override
 Read-only, assignments warn.
 
ClipNoteS list_all_notes () override
 List all notes of this Clip, changes on notify:notes.
 
ClipNoteS change_batch (const ClipNoteS &notes, const String &undogroup) override
 Insert id <= 0, delete length_beats == 0; emits notify:notes and notify:all_notes.
 
bool muted () const override
 Check if clip is muted.
 
void muted (bool muted) override
 Set clip muted state, emits notify:muted.
 
float volume () const override
 Get clip volume in dB.
 
void volume (float db) override
 Set clip volume in dB, emits notify:volume.
 
float pan () const override
 Get audio clip pan (-1.0 to 1.0), 0 for other clips.
 
void pan (float pan) override
 Set audio clip pan (-1.0 to 1.0), emits notify:pan, does nothing for other clips.
 
void update_telemetry ()
 
void remove_self () override
 Remove self from parent container.
 
TelemetryFieldS telemetry () const override
 Retrieve clip telemetry locations.
 
StringS read_only_properties () const override
 List x()/x (v) properties that this object can't change, their setters ignore the value or warn.
 
 ASE_DEFINE_MAKE_SHARED (ClipImpl)
 
- Public Member Functions inherited from Ase::GadgetImpl
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.
 
void remove_self () override
 Remove self from parent container.
 
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::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)
 
ssize_t clip_index () const
 
ClipNoteS all_notes () const override
 
void all_notes (const ClipNoteS &notes) 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 void create_properties ()
 

Friends

class TrackImpl
 

Additional Inherited Members

- 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 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_
 

Detailed Description

Definition at line 9 of file clip.hh.

Constructor & Destructor Documentation

◆ ClipImpl()

Ase::ClipImpl::ClipImpl ( tracktion::Clip &  clip)
explicitprotected

Definition at line 110 of file clip.cc.

◆ ~ClipImpl()

Ase::ClipImpl::~ClipImpl ( )
protectedvirtual

Definition at line 127 of file clip.cc.

Member Function Documentation

◆ all_notes() [1/2]

ClipNoteS Ase::ClipImpl::all_notes ( ) const
overrideprotectedvirtual

Implements Ase::Clip.

Definition at line 197 of file clip.cc.

◆ all_notes() [2/2]

void Ase::ClipImpl::all_notes ( const ClipNoteS &  notes)
overrideprotectedvirtual

Implements Ase::Clip.

Definition at line 181 of file clip.cc.

◆ change_batch()

ClipNoteS Ase::ClipImpl::change_batch ( const ClipNoteS &  notes,
const String &  undogroup 
)
overridevirtual

Insert id <= 0, delete length_beats == 0; emits notify:notes and notify:all_notes.

Input order, id 0 for missing handles.

Implements Ase::Clip.

Definition at line 335 of file clip.cc.

References assert_return, Ase::EmittableImpl::emit_notify(), std::string::empty(), and return_unless.

◆ clip_index()

ssize_t Ase::ClipImpl::clip_index ( ) const
protected

Definition at line 134 of file clip.cc.

◆ end_beat() [1/2]

double Ase::ClipImpl::end_beat ( ) const
overridevirtual

Clip end in Tracktion beats, changes on notify:end_beat.

Implements Ase::Clip.

Definition at line 221 of file clip.cc.

◆ end_beat() [2/2]

void Ase::ClipImpl::end_beat ( double  )
overridevirtual

Read-only, assignments warn.

Implements Ase::Clip.

Definition at line 227 of file clip.cc.

◆ from_trkn()

ClipImplP Ase::ClipImpl::from_trkn ( tracktion::Clip &  c)
static

Definition at line 118 of file clip.cc.

◆ list_all_notes()

ClipNoteS Ase::ClipImpl::list_all_notes ( )
overridevirtual

List all notes of this Clip, changes on notify:notes.

Implements Ase::Clip.

Definition at line 175 of file clip.cc.

◆ muted() [1/2]

bool Ase::ClipImpl::muted ( ) const
overridevirtual

Check if clip is muted.

Implements Ase::Clip.

Definition at line 233 of file clip.cc.

References return_unless.

Referenced by muted().

◆ muted() [2/2]

void Ase::ClipImpl::muted ( bool  muted)
overridevirtual

Set clip muted state, emits notify:muted.

Implements Ase::Clip.

Definition at line 240 of file clip.cc.

References muted(), and return_unless.

◆ name() [1/2]

String Ase::ClipImpl::name ( ) const
overridevirtual

Implements Ase::Gadget.

Definition at line 143 of file clip.cc.

◆ name() [2/2]

void Ase::ClipImpl::name ( const std::string &  n)
overridevirtual

Implements Ase::Gadget.

Definition at line 149 of file clip.cc.

◆ pan() [1/2]

float Ase::ClipImpl::pan ( ) const
overridevirtual

Get audio clip pan (-1.0 to 1.0), 0 for other clips.

Implements Ase::Clip.

Definition at line 279 of file clip.cc.

References tracktion::engine::AudioClipBase::getPan(), and return_unless.

◆ pan() [2/2]

void Ase::ClipImpl::pan ( float  pan)
overridevirtual

Set audio clip pan (-1.0 to 1.0), emits notify:pan, does nothing for other clips.

Implements Ase::Clip.

Definition at line 289 of file clip.cc.

References return_unless.

◆ position() [1/2]

ClipPosition Ase::ClipImpl::position ( ) const
overridevirtual

Implements Ase::Clip.

Definition at line 157 of file clip.cc.

◆ position() [2/2]

void Ase::ClipImpl::position ( const ClipPosition &  position)
overridevirtual

Implements Ase::Clip.

Definition at line 165 of file clip.cc.

◆ read_only_properties()

StringS Ase::ClipImpl::read_only_properties ( ) const
overridevirtual

List x()/x (v) properties that this object can't change, their setters ignore the value or warn.

Reimplemented from Ase::Gadget.

Definition at line 298 of file clip.cc.

References std::vector::push_back().

◆ remove_self()

void Ase::ClipImpl::remove_self ( )
overridevirtual

Remove self from parent container.

Implements Ase::Gadget.

Definition at line 321 of file clip.cc.

References Ase::GadgetImpl::remove_self().

◆ start_beat() [1/2]

double Ase::ClipImpl::start_beat ( ) const
overridevirtual

Clip start in Tracktion beats, changes on notify:start_beat.

Implements Ase::Clip.

Definition at line 209 of file clip.cc.

◆ start_beat() [2/2]

void Ase::ClipImpl::start_beat ( double  )
overridevirtual

Read-only, assignments warn.

Implements Ase::Clip.

Definition at line 215 of file clip.cc.

◆ telemetry()

TelemetryFieldS Ase::ClipImpl::telemetry ( ) const
overridevirtual

Retrieve clip telemetry locations.

Implements Ase::Clip.

Definition at line 309 of file clip.cc.

◆ update_telemetry()

void Ase::ClipImpl::update_telemetry ( )

Definition at line 316 of file clip.cc.

◆ volume() [1/2]

float Ase::ClipImpl::volume ( ) const
overridevirtual

Get clip volume in dB.

Implements Ase::Clip.

Definition at line 249 of file clip.cc.

References tracktion::engine::AudioClipBase::getGainDB(), and return_unless.

◆ volume() [2/2]

void Ase::ClipImpl::volume ( float  db)
overridevirtual

Set clip volume in dB, emits notify:volume.

Implements Ase::Clip.

Definition at line 262 of file clip.cc.

References return_unless, and tracktion::engine::AudioClipBase::setGainDB().

Friends And Related Symbol Documentation

◆ TrackImpl

friend class TrackImpl
friend

Definition at line 10 of file clip.hh.


The documentation for this class was generated from the following files: