#include "clip.hh"
Classes | |
struct | CmpNoteIds |
struct | CmpNoteTicks |
class | Generator |
Public Types | |
using | EventsById = EventList< ClipNote, CmpNoteIds > |
using | OrderedEventsP = OrderedEventsV::ConstP |
![]() | |
using | MemberAccessF = std::function< bool(GadgetImpl *, const Value *, Value *)> |
using | MemberClassT = bool(*)(const SharedBase &) |
using | MemberInfosP = const StringS &(*)() |
Public Member Functions | |
ASE_DEFINE_MAKE_SHARED (ClipImpl) | |
void | assign_range (int64 starttick, int64 stoptick) override |
int32 | change_batch (const ClipNoteS ¬es, const String &undogroup) override |
ClipNoteS | list_all_notes () override |
bool | needs_serialize () const |
ProjectImpl * | project () const |
void | push_undo (const ClipNoteS &clipnotes, const String &undogroup) |
int64 | start_tick () const override |
int64 | stop_tick () const override |
OrderedEventsP | tick_events () const |
UndoScope | undo_scope (const String &scopename) |
![]() | |
GadgetImpl * | _parent () const override |
template<class O , class M > | |
void | _register_parameter (O *, M *, const Param::ExtraVals &) const |
void | _set_parent (GadgetImpl *parent) override |
PropertyS | access_properties () override |
Value | get_data (const String &key) const override |
bool | set_data (const String &key, const Value &v) override |
String | type_nick () const override |
![]() | |
void | emit_event (const String &type, const String &detail, const ValueR fields={}) override |
void | emit_notify (const String &detail) override |
ASE_USE_RESULT Connection | on_event (const String &eventselector, const EventHandler &eventhandler) override |
![]() | |
void | js_trigger (const String &eventselector, JsTrigger callback) |
![]() | |
template<class T > | |
bool | del_custom_data (CustomDataKey< T > *key) |
template<class T > | |
T | get_custom_data (CustomDataKey< T > *key) const |
template<class T > | |
bool | has_custom_data (CustomDataKey< T > *key) const |
template<class T > | |
void | set_custom_data (CustomDataKey< T > *key, T data) |
![]() | |
ProjectImpl * | _project () const |
virtual PropertyP | access_property (String ident) |
Value | get_value (String ident) |
virtual StringS | list_properties () |
bool | set_value (String ident, const Value &v) |
Protected Member Functions | |
bool | all_notes_ (const ClipNoteS *n, ClipNoteS *q) override |
ssize_t | clip_index () const |
ClipImpl (TrackImpl &parent) | |
bool | end_tick_ (const int64 *n, int64 *q) override |
void | serialize (WritNode &xs) override |
virtual | ~ClipImpl () |
![]() | |
virtual void | create_properties () |
virtual String | fallback_name () const |
uint64_t | gadget_flags () const |
uint64_t | gadget_flags (uint64_t setbits, uint64_t mask=~uint64_t(0)) |
virtual bool | name_ (const std::string *n, std::string *q) override |
void | serialize (WritNode &xs) override |
virtual | ~GadgetImpl () |
![]() | |
virtual | ~ObjectImpl ()=0 |
![]() | |
virtual | ~EmittableImpl () |
![]() | |
virtual | ~VirtualBase () noexcept=0 |
![]() | |
virtual | ~Object ()=0 |
![]() | |
void | custom_data_destroy () |
~CustomDataContainer () | |
![]() | |
Gadget () | |
![]() | |
Clip () | |
Protected Attributes | |
Connection | ontrackchange_ |
TrackImpl * | track_ |
![]() | |
PropertyImplS | props_ |
Additional Inherited Members | |
![]() | |
Member<&Gadget::name_ > | name |
![]() | |
Member<&Clip::all_notes_ > | all_notes |
Member<&Clip::end_tick_ > | end_tick |
![]() | |
enum | : uint64_t { GADGET_DESTROYED , DEVICE_ACTIVE , MASTER_TRACK } |
![]() | |
static String | canonify_key (const String &input) |
using EventsById = EventList<ClipNote,CmpNoteIds> |
using OrderedEventsP = OrderedEventsV::ConstP |
|
protectedvirtual |
|
overrideprotectedvirtual |
Serialize members and childern.
Implements Serializable.
|
protected |
|
overrideprotectedvirtual |
Implements Clip.
ClipImpl::OrderedEventsP tick_events | ( | ) | const |
Retrieve const vector with all notes ordered by tick.
ProjectImpl * project | ( | ) | const |
void push_undo | ( | const ClipNoteS & | clipnotes, |
const String & | undogroup | ||
) |
|
overridevirtual |
Get the first tick intended for playback (this is >= 0), changes on `notify:start_tick`.
Implements Clip.
|
overridevirtual |
Get the tick to stop playback, not events should be played after this, changes on `notify:stop_tick`.
Implements Clip.
Change start_tick() and stop_tick(); emits `notify:start_tick`, `notify:stop_tick`.
Implements Clip.
|
overridevirtual |
bool needs_serialize | ( | ) | const |
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 | ( | ClipImpl | ) |
|
protected |
|
protected |