Anklang C++ API 0.0.0
Loading...
Searching...
No Matches
ClipImpl

#include "clip.hh"

Inheritance diagram for ClipImpl:
[legend]

Classes

struct CmpNoteIds
struct CmpNoteTicks
class Generator

Public Types

usingEventsById = EventList< ClipNote, CmpNoteIds >
usingOrderedEventsP = OrderedEventsV::ConstP
- Public Types inherited from GadgetImpl
usingMemberAccessF = std::function< bool(GadgetImpl *, const Value *, Value *)>
usingMemberClassT = bool(*)(const SharedBase &)
usingMemberInfosP = const StringS &(*)()

Public Member Functions

ASE_DEFINE_MAKE_SHARED (ClipImpl)
voidassign_range (int64 starttick, int64 stoptick) override
int32change_batch (const ClipNoteS &notes, const String &undogroup) override
ClipNoteSlist_all_notes () override
boolneeds_serialize () const
ProjectImpl *project () const
voidpush_undo (const ClipNoteS &clipnotes, const String &undogroup)
int64start_tick () const override
int64stop_tick () const override
OrderedEventsPtick_events () const
UndoScopeundo_scope (const String &scopename)
- Public Member Functions inherited from GadgetImpl
GadgetImpl *_parent () const override
template<class O , class M >
void_register_parameter (O *, M *, const Param::ExtraVals &) const
void_set_parent (GadgetImpl *parent) override
PropertySaccess_properties () override
Valueget_data (const String &key) const override
Stringget_name () const override
boolset_data (const String &key, const Value &v) override
voidset_name (const std::string &n) override
Stringtype_nick () const override
- Public Member Functions inherited from EmittableImpl
voidemit_event (const String &type, const String &detail, const ValueR fields={}) override
voidemit_notify (const String &detail) override
ASE_USE_RESULT Connectionon_event (const String &eventselector, const EventHandler &eventhandler) override
- Public Member Functions inherited from Emittable
voidjs_trigger (const String &eventselector, JsTrigger callback)
- Public Member Functions inherited from CustomDataContainer
template<class T >
booldel_custom_data (CustomDataKey< T > *key)
template<class T >
Tget_custom_data (CustomDataKey< T > *key) const
template<class T >
boolhas_custom_data (CustomDataKey< T > *key) const
template<class T >
voidset_custom_data (CustomDataKey< T > *key, T data)
- Public Member Functions inherited from Gadget
ProjectImpl *_project () const
virtual PropertyPaccess_property (String ident)
Valueget_value (String ident)
virtual StringSlist_properties ()
boolset_value (String ident, const Value &v)

Protected Member Functions

ssize_tclip_index () const
ClipImpl (TrackImpl &parent)
ClipNoteSget_all_notes () const override
int64get_end_tick () const override
voidserialize (WritNode &xs) override
voidset_all_notes (const ClipNoteS &notes) override
voidset_end_tick (int64 etick) override
virtual~ClipImpl ()
- Protected Member Functions inherited from GadgetImpl
virtual voidcreate_properties ()
virtual Stringfallback_name () const
uint64_tgadget_flags () const
uint64_tgadget_flags (uint64_t setbits, uint64_t mask=~uint64_t(0))
voidserialize (WritNode &xs) override
virtual~GadgetImpl ()
- Protected Member Functions inherited from ObjectImpl
virtual~ObjectImpl ()=0
- Protected Member Functions inherited from EmittableImpl
virtual~EmittableImpl ()
- Protected Member Functions inherited from VirtualBase
virtual~VirtualBase () noexcept=0
- Protected Member Functions inherited from Object
virtual~Object ()=0
- Protected Member Functions inherited from CustomDataContainer
voidcustom_data_destroy ()
~CustomDataContainer ()
- Protected Member Functions inherited from Gadget
Gadget ()
- Protected Member Functions inherited from Clip
Clip ()

Protected Attributes

Connectionontrackchange_
TrackImpl *track_
- Protected Attributes inherited from GadgetImpl
PropertyImplSprops_

Additional Inherited Members

- Public Attributes inherited from Gadget
Member<&Gadget::get_name,&Gadget::set_name >name
- Public Attributes inherited from Clip
Member<&Clip::get_all_notes,&Clip::set_all_notes >all_notes
Member<&Clip::get_end_tick,&Clip::set_end_tick >end_tick
- Protected Types inherited from GadgetImpl
enum : uint64_t { GADGET_DESTROYED , DEVICE_ACTIVE , MASTER_TRACK }
- Static Protected Member Functions inherited from GadgetImpl
static Stringcanonify_key (const String &input)

Member Typedef Documentation

EventsById

OrderedEventsP

Constructor & Destructor Documentation

ClipImpl()

ClipImpl ( TrackImpl & parent)
explicitprotected

~ClipImpl()

~ClipImpl ( )
protectedvirtual

Member Function Documentation

serialize()

void serialize ( WritNode & xs)
overrideprotectedvirtual

Serialize members and childern.

Implements Serializable.

clip_index()

ssize_t clip_index ( ) const
protected

get_all_notes()

ClipNoteS get_all_notes ( ) const
overrideprotectedvirtual

Implements Clip.

set_all_notes()

void set_all_notes ( const ClipNoteS & notes)
overrideprotectedvirtual

Implements Clip.

get_end_tick()

int64 get_end_tick ( ) const
overrideprotectedvirtual

Implements Clip.

set_end_tick()

void set_end_tick ( int64 etick)
overrideprotectedvirtual

Implements Clip.

tick_events()

ClipImpl::OrderedEventsP tick_events ( ) const

Retrieve const vector with all notes ordered by tick.

project()

ProjectImpl * project ( ) const

push_undo()

void push_undo ( const ClipNoteS & clipnotes,
const String & undogroup
)

undo_scope()

UndoScope undo_scope ( const String & scopename)

start_tick()

int64 start_tick ( ) const
overridevirtual

Get the first tick intended for playback (this is >= 0), changes on `notify:start_tick`.

Implements Clip.

stop_tick()

int64 stop_tick ( ) const
overridevirtual

Get the tick to stop playback, not events should be played after this, changes on `notify:stop_tick`.

Implements Clip.

assign_range()

void assign_range ( int64 starttick,
int64 stoptick
)
overridevirtual

Change start_tick() and stop_tick(); emits `notify:start_tick`, `notify:stop_tick`.

Implements Clip.

list_all_notes()

ClipNoteS list_all_notes ( )
overridevirtual

List all notes of this Clip; changes on `notify:notes`.

Implements Clip.

needs_serialize()

bool needs_serialize ( ) const

change_batch()

int32 change_batch ( const ClipNoteS & notes,
const String & undogroup
)
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 Clip.

ASE_DEFINE_MAKE_SHARED()

ASE_DEFINE_MAKE_SHARED ( ClipImpl )

Member Data Documentation

track_

TrackImpl* track_
protected

ontrackchange_

Connection ontrackchange_
protected