Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Ase::Clip Class Referenceabstract

Container for MIDI note and control events. More...

#include "api.hh"

Inheritance diagram for Ase::Clip:
[legend]

Public Member Functions

virtual ClipNoteS get_all_notes () const =0
 
virtual void set_all_notes (const ClipNoteS &notes)=0
 
virtual int64 get_end_tick () const =0
 
virtual void set_end_tick (int64 etick)=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.
 
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 if id < 0; emits notify:notes.
 
virtual ClipNoteS list_all_notes ()=0
 
- Public Member Functions inherited from Ase::Gadget
virtual GadgetImpl_parent () const =0
 Retrieve parent container.
 
virtual void _set_parent (GadgetImpl *parent)=0
 Assign parent container.
 
ProjectImpl_project () const
 Find Project in parent ancestry.
 
virtual String get_name () const =0
 
virtual void set_name (const std::string &n)=0
 
virtual String type_nick () const =0
 
virtual StringS list_properties ()
 List all property identifiers.
 
virtual PropertyP access_property (String ident)
 Retrieve handle for a Property.
 
virtual PropertyS access_properties ()=0
 Retrieve handles for all properties.
 
Value get_value (String ident)
 Get native property value.
 
bool set_value (String ident, const Value &v)
 
virtual bool set_data (const String &key, const Value &v)=0
 Assign session data, prefix ephemerals with '_'.
 
virtual Value get_data (const String &key) const =0
 Retrieve session data.
 
- Public Member Functions inherited from Ase::Emittable
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)
 
- Public Member Functions inherited from std::enable_shared_from_this< SharedBase >
enable_shared_from_this (T... args)
 
operator= (T... args)
 
shared_from_this (T... args)
 
weak_from_this (T... args)
 
~enable_shared_from_this (T... args)
 

Public Attributes

Member<&Clip::get_all_notes,&Clip::set_all_notes > all_notes
 Access all notes of this clip, changes on notify:all_notes.
 
Member<&Clip::get_end_tick,&Clip::set_end_tick > end_tick
 The end tick is past any event ticks, changes on notify:end_tick.
 
- Public Attributes inherited from Ase::Gadget
Member<&Gadget::get_name,&Gadget::set_name > name
 
- Public Attributes inherited from Ase::Emittable
const EventHandlereventhandler
 

Detailed Description

Container for MIDI note and control events.

Definition at line 264 of file api.hh.

Constructor & Destructor Documentation

◆ Clip()

Ase::Clip::Clip ( )
explicitprotected

Definition at line 19 of file clip.cc.

Member Function Documentation

◆ assign_range()

virtual void Ase::Clip::assign_range ( int64  starttick,
int64  stoptick 
)
pure virtual

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

Implemented in Ase::ClipImpl.

◆ change_batch()

virtual int32 Ase::Clip::change_batch ( const ClipNoteS &  notes,
const String undogroup = "" 
)
pure virtual

Change note id according to the arguments or add a new note if id < 0; emits notify:notes.

Insert, change, delete in a batch.

Implemented in Ase::ClipImpl.

◆ list_all_notes()

virtual ClipNoteS Ase::Clip::list_all_notes ( )
pure virtual

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

Implemented in Ase::ClipImpl.

◆ start_tick()

virtual int64 Ase::Clip::start_tick ( ) const
pure virtual

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

Implemented in Ase::ClipImpl.

◆ stop_tick()

virtual int64 Ase::Clip::stop_tick ( ) const
pure virtual

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

Implemented in Ase::ClipImpl.

Member Data Documentation

◆ all_notes

Member<&Clip::get_all_notes,&Clip::set_all_notes> Ase::Clip::all_notes

Access all notes of this clip, changes on notify:all_notes.

Definition at line 279 of file api.hh.

◆ end_tick

Member<&Clip::get_end_tick,&Clip::set_end_tick> Ase::Clip::end_tick

The end tick is past any event ticks, changes on notify:end_tick.

Definition at line 281 of file api.hh.


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