Class Ase::ClipImpl
Inherits the following classes: Ase::GadgetImpl, Ase::Clip
Classes
Type | Name |
---|---|
struct | CmpNoteIds |
struct | CmpNoteTicks |
class | Generator Generator for MIDI events. |
Public Types
Type | Name |
---|---|
typedef EventList< ClipNote, CmpNoteIds > | EventsById |
typedef OrderedEventsV::ConstP | OrderedEventsP |
Public Types inherited from Ase::GadgetImpl
See Ase::GadgetImpl
Type | Name |
---|---|
typedef std::function< bool(GadgetImpl *, const Value *, Value *)> | MemberAccessF |
typedef bool(*)(const SharedBase &) | MemberClassT |
typedef const StringS &(*)() | MemberInfosP |
Public Attributes inherited from Ase::Gadget
See Ase::Gadget
Type | Name |
---|---|
Member<&Gadget::name_ > | name |
Public Attributes inherited from Ase::Clip
See Ase::Clip
Type | Name |
---|---|
Member<&Clip::all_notes_ > | all_notes Access all notes of this clip, changes on notify:all_notes . |
Member<&Clip::end_tick_ > | end_tick The end tick is past any event ticks, changes on notify:end_tick . |
Public Attributes inherited from Ase::Gadget
See Ase::Gadget
Type | Name |
---|---|
Member<&Gadget::name_ > | name |
Public Functions
Type | Name |
---|---|
ASE_DEFINE_MAKE_SHARED (ClipImpl) |
|
void | assign_range (int64 starttick, int64 stoptick) override |
int32 | change_batch (const ClipNoteS & notes, 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 () override const |
int64 | stop_tick () override const |
OrderedEventsP | tick_events () const Retrieve const vector with all notes ordered by tick. |
UndoScope | undo_scope (const String & scopename) |
Public Functions inherited from Ase::GadgetImpl
See Ase::GadgetImpl
Type | Name |
---|---|
virtual GadgetImpl * | _parent () override const Retrieve parent container. |
void | _register_parameter (O * obj, M * memb, const Param::ExtraVals & ev) const |
virtual void | _set_parent (GadgetImpl * parent) override Assign parent container. |
virtual PropertyS | access_properties () override Retrieve handles for all properties. |
virtual Value | get_data (const String & key) override const Retrieve session data. |
virtual bool | set_data (const String & key, const Value & v) override Assign session data, prefix ephemerals with '_'. |
virtual String | type_nick () override const |
Public Functions inherited from Ase::EmittableImpl
Type | Name |
---|---|
virtual void | emit_event (const String & type, const String & detail, const ValueR fields={}) override |
virtual void | emit_notify (const String & detail) override Emit notify:detail , multiple notifications maybe coalesced if a CoalesceNotifies instance exists. |
virtual ASE_USE_RESULT Connection | on_event (const String & eventselector, const EventHandler & eventhandler) override |
Public Functions inherited from Ase::Emittable
See Ase::Emittable
Type | Name |
---|---|
virtual void | emit_event (const String & type, const String & detail, const ValueR fields={}) = 0 |
virtual void | emit_notify (const String & detail) = 0 |
void | js_trigger (const String & eventselector, JsTrigger callback) |
virtual ASE_USE_RESULT Connection | on_event (const String & eventselector, const EventHandler & eventhandler) = 0 |
Public Functions inherited from Ase::Emittable
See Ase::Emittable
Type | Name |
---|---|
virtual void | emit_event (const String & type, const String & detail, const ValueR fields={}) = 0 |
virtual void | emit_notify (const String & detail) = 0 |
void | js_trigger (const String & eventselector, JsTrigger callback) |
virtual ASE_USE_RESULT Connection | on_event (const String & eventselector, const EventHandler & eventhandler) = 0 |
Public Functions inherited from Ase::CustomDataContainer
Type | Name |
---|---|
bool | del_custom_data (CustomDataKey< T > * key) Delete the current contents of the custom keyed data member, invokes DataKey::destroy. |
T | get_custom_data (CustomDataKey< T > * key) const Retrieve contents of the custom keyed data member, returns DataKey::fallback if nothing was set. |
bool | has_custom_data (CustomDataKey< T > * key) const Retrieve wether contents of the custom keyed data member exists. |
void | set_custom_data (CustomDataKey< T > * key, T data) Assign data to the custom keyed data member, deletes any previously set data. |
Public Functions inherited from Ase::Gadget
See Ase::Gadget
Type | Name |
---|---|
virtual GadgetImpl * | _parent () const = 0 Retrieve parent container. |
ProjectImpl * | _project () const Find Project in parent ancestry. |
virtual void | _set_parent (GadgetImpl * parent) = 0 Assign parent container. |
virtual PropertyS | access_properties () = 0 Retrieve handles for all properties. |
virtual PropertyP | access_property (String ident) Retrieve handle for a Property . |
virtual Value | get_data (const String & key) const = 0 Retrieve session data. |
Value | get_value (String ident) Get native property value. |
virtual StringS | list_properties () List all property identifiers. |
virtual bool | set_data (const String & key, const Value & v) = 0 Assign session data, prefix ephemerals with '_'. |
bool | set_value (String ident, const Value & v) |
virtual String | type_nick () const = 0 |
Public Functions inherited from Ase::Emittable
See Ase::Emittable
Type | Name |
---|---|
virtual void | emit_event (const String & type, const String & detail, const ValueR fields={}) = 0 |
virtual void | emit_notify (const String & detail) = 0 |
void | js_trigger (const String & eventselector, JsTrigger callback) |
virtual ASE_USE_RESULT Connection | on_event (const String & eventselector, const EventHandler & eventhandler) = 0 |
Public Functions inherited from Ase::Clip
See Ase::Clip
Type | Name |
---|---|
virtual void | assign_range (int64 starttick, int64 stoptick) = 0 |
virtual int32 | change_batch (const ClipNoteS & notes, const String & undogroup="") = 0 Change note id according to the arguments or add a new note ifid < 0; emitsnotify:notes . |
virtual ClipNoteS | list_all_notes () = 0 |
virtual int64 | start_tick () const = 0 Get the first tick intended for playback (this is >= 0), changes on notify:start_tick . |
virtual int64 | stop_tick () const = 0 Get the tick to stop playback, not events should be played after this, changes on notify:stop_tick . |
Public Functions inherited from Ase::Gadget
See Ase::Gadget
Type | Name |
---|---|
virtual GadgetImpl * | _parent () const = 0 Retrieve parent container. |
ProjectImpl * | _project () const Find Project in parent ancestry. |
virtual void | _set_parent (GadgetImpl * parent) = 0 Assign parent container. |
virtual PropertyS | access_properties () = 0 Retrieve handles for all properties. |
virtual PropertyP | access_property (String ident) Retrieve handle for a Property . |
virtual Value | get_data (const String & key) const = 0 Retrieve session data. |
Value | get_value (String ident) Get native property value. |
virtual StringS | list_properties () List all property identifiers. |
virtual bool | set_data (const String & key, const Value & v) = 0 Assign session data, prefix ephemerals with '_'. |
bool | set_value (String ident, const Value & v) |
virtual String | type_nick () const = 0 |
Public Functions inherited from Ase::Emittable
See Ase::Emittable
Type | Name |
---|---|
virtual void | emit_event (const String & type, const String & detail, const ValueR fields={}) = 0 |
virtual void | emit_notify (const String & detail) = 0 |
void | js_trigger (const String & eventselector, JsTrigger callback) |
virtual ASE_USE_RESULT Connection | on_event (const String & eventselector, const EventHandler & eventhandler) = 0 |
Protected Types inherited from Ase::GadgetImpl
See Ase::GadgetImpl
Type | Name |
---|---|
enum uint64_t | GadgetImpl |
Protected Attributes
Type | Name |
---|---|
Connection | ontrackchange_ |
TrackImpl * | track_ = = nullptr |
Protected Attributes inherited from Ase::GadgetImpl
See Ase::GadgetImpl
Type | Name |
---|---|
PropertyImplS | props_ |
Protected Functions
Type | Name |
---|---|
ClipImpl (TrackImpl & parent) |
|
bool | all_notes_ (const ClipNoteS * n, ClipNoteS * q) override |
ssize_t | clip_index () const |
bool | end_tick_ (const int64 * n, int64 * q) override |
void | serialize (WritNode & xs) override |
virtual | ~ClipImpl () |
Protected Functions inherited from Ase::GadgetImpl
See Ase::GadgetImpl
Type | Name |
---|---|
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 |
virtual void | serialize (WritNode & xs) override Serialize members and childern. |
virtual | ~GadgetImpl () |
Protected Functions inherited from Ase::ObjectImpl
See Ase::ObjectImpl
Type | Name |
---|---|
virtual | ~ObjectImpl () = 0 |
Protected Functions inherited from Ase::EmittableImpl
Type | Name |
---|---|
virtual | ~EmittableImpl () |
Protected Functions inherited from Ase::VirtualBase
See Ase::VirtualBase
Type | Name |
---|---|
virtual | ~VirtualBase () noexcept = 0 |
Protected Functions inherited from Ase::Object
See Ase::Object
Type | Name |
---|---|
virtual | ~Object () = 0 |
Protected Functions inherited from Ase::VirtualBase
See Ase::VirtualBase
Type | Name |
---|---|
virtual | ~VirtualBase () noexcept = 0 |
Protected Functions inherited from Ase::CustomDataContainer
Type | Name |
---|---|
void | custom_data_destroy () |
~CustomDataContainer () |
Protected Functions inherited from Ase::Gadget
See Ase::Gadget
Type | Name |
---|---|
Gadget () |
|
virtual bool | name_ (const std::string * n, std::string * q) = 0 |
Protected Functions inherited from Ase::Object
See Ase::Object
Type | Name |
---|---|
virtual | ~Object () = 0 |
Protected Functions inherited from Ase::VirtualBase
See Ase::VirtualBase
Type | Name |
---|---|
virtual | ~VirtualBase () noexcept = 0 |
Protected Functions inherited from Ase::Serializable
Type | Name |
---|---|
virtual void | serialize (WritNode & xs) = 0 Serialize members and childern. |
Protected Functions inherited from Ase::VirtualBase
See Ase::VirtualBase
Type | Name |
---|---|
virtual | ~VirtualBase () noexcept = 0 |
Protected Functions inherited from Ase::Clip
See Ase::Clip
Type | Name |
---|---|
Clip () |
|
virtual bool | all_notes_ (const ClipNoteS * n, ClipNoteS * q) = 0 |
virtual bool | end_tick_ (const int64 * n, int64 * q) = 0 |
Protected Functions inherited from Ase::Gadget
See Ase::Gadget
Type | Name |
---|---|
Gadget () |
|
virtual bool | name_ (const std::string * n, std::string * q) = 0 |
Protected Functions inherited from Ase::Object
See Ase::Object
Type | Name |
---|---|
virtual | ~Object () = 0 |
Protected Functions inherited from Ase::VirtualBase
See Ase::VirtualBase
Type | Name |
---|---|
virtual | ~VirtualBase () noexcept = 0 |
Protected Static Functions inherited from Ase::GadgetImpl
See Ase::GadgetImpl
Type | Name |
---|---|
String | canonify_key (const String & input) |
Public Types Documentation
typedef EventsById
using Ase::ClipImpl::EventsById = EventList<ClipNote,CmpNoteIds>;
typedef OrderedEventsP
using Ase::ClipImpl::OrderedEventsP = OrderedEventsV::ConstP;
Public Functions Documentation
function ASE_DEFINE_MAKE_SHARED
Ase::ClipImpl::ASE_DEFINE_MAKE_SHARED (
ClipImpl
)
function assign_range
void Ase::ClipImpl::assign_range (
int64 starttick,
int64 stoptick
) override
function change_batch
int32 Ase::ClipImpl::change_batch (
const ClipNoteS & notes,
const String & undogroup
) override
function list_all_notes
ClipNoteS Ase::ClipImpl::list_all_notes () override
function needs_serialize
bool Ase::ClipImpl::needs_serialize () const
function project
ProjectImpl * Ase::ClipImpl::project () const
function push_undo
void Ase::ClipImpl::push_undo (
const ClipNoteS & clipnotes,
const String & undogroup
)
function start_tick
inline int64 Ase::ClipImpl::start_tick () override const
function stop_tick
inline int64 Ase::ClipImpl::stop_tick () override const
function tick_events
OrderedEventsP Ase::ClipImpl::tick_events () const
function undo_scope
inline UndoScope Ase::ClipImpl::undo_scope (
const String & scopename
)
Protected Attributes Documentation
variable ontrackchange_
Connection Ase::ClipImpl::ontrackchange_;
variable track_
TrackImpl* Ase::ClipImpl::track_;
Protected Functions Documentation
function ClipImpl
explicit Ase::ClipImpl::ClipImpl (
TrackImpl & parent
)
function all_notes_
bool Ase::ClipImpl::all_notes_ (
const ClipNoteS * n,
ClipNoteS * q
) override
function clip_index
ssize_t Ase::ClipImpl::clip_index () const
function end_tick_
bool Ase::ClipImpl::end_tick_ (
const int64 * n,
int64 * q
) override
function serialize
void Ase::ClipImpl::serialize (
WritNode & xs
) override
function ~ClipImpl
virtual Ase::ClipImpl::~ClipImpl ()
The documentation for this class was generated from the following file /__w/anklang/anklang/ase/clip.hh