| 
    Anklang-0.3.0.dev502+ga23511a1 anklang-0.3.0.dev502+ga23511a1
    
   ASE — Anklang Sound Engine (C++) 
   « « « Anklang Documentation  | 
 
Classes | |
| struct | CmpNoteIds | 
| struct | CmpNoteTicks | 
| class | Generator | 
| Generator for MIDI events.  More... | |
Public Types | |
| using | EventsById = EventList< ClipNote, CmpNoteIds > | 
| using | OrderedEventsP = OrderedEventsV::ConstP | 
  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 Member Functions | |
| 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) | 
| UndoScope | undo_scope (const String &scopename) | 
| int64 | start_tick () const override | 
Get the first tick intended for playback (this is >= 0), changes on notify:start_tick.   | |
| int64 | stop_tick () const override | 
Get the tick to stop playback, not events should be played after this, changes on notify:stop_tick.   | |
| void | assign_range (int64 starttick, int64 stoptick) override | 
| ClipNoteS | list_all_notes () override | 
| bool | needs_serialize () const | 
| int32 | change_batch (const ClipNoteS ¬es, const String &undogroup) override | 
Change note id according to the arguments or add a new note if id < 0; emits notify:notes.   | |
| ASE_DEFINE_MAKE_SHARED (ClipImpl) | |
  Public Member Functions inherited from Ase::GadgetImpl | |
| String | get_name () const override | 
| void | set_name (const std::string &n) override | 
| 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.   | |
| 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::CustomDataContainer | |
| template<class T > | |
| void | set_custom_data (CustomDataKey< T > *key, T data) | 
| Assign data to the custom keyed data member, deletes any previously set data.   | |
| template<class T > | |
| T | get_custom_data (CustomDataKey< T > *key) const | 
| Retrieve contents of the custom keyed data member, returns DataKey::fallback if nothing was set.   | |
| template<class T > | |
| bool | has_custom_data (CustomDataKey< T > *key) const | 
| Retrieve wether contents of the custom keyed data member exists.   | |
| template<class T > | |
| bool | del_custom_data (CustomDataKey< T > *key) | 
| Delete the current contents of the custom keyed data member, invokes DataKey::destroy.   | |
  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) | 
Protected Member Functions | |
| ClipImpl (TrackImpl &parent) | |
| void | serialize (WritNode &xs) override | 
| Serialize members and childern.   | |
| ssize_t | clip_index () const | 
| ClipNoteS | get_all_notes () const override | 
| void | set_all_notes (const ClipNoteS ¬es) override | 
| int64 | get_end_tick () const override | 
| void | set_end_tick (int64 etick) 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 String | fallback_name () const | 
| void | serialize (WritNode &xs) override | 
| Serialize members and childern.   | |
| virtual void | create_properties () | 
  Protected Member Functions inherited from Ase::CustomDataContainer | |
| void | custom_data_destroy () | 
Protected Attributes | |
| TrackImpl * | track_ | 
| Connection | ontrackchange_ | 
  Protected Attributes inherited from Ase::GadgetImpl | |
| PropertyImplS | props_ | 
Additional Inherited Members | |
  Public Attributes inherited from Ase::Emittable | |
| const EventHandler & | eventhandler | 
  Public Attributes inherited from Ase::Gadget | |
| Member<&Gadget::get_name,&Gadget::set_name > | name | 
  Public Attributes inherited from Ase::Clip | |
| 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.   | |
  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) | 
      
  | 
  explicitprotected | 
Change start_tick() and stop_tick(); emits notify:start_tick, notify:stop_tick. 
Implements Ase::Clip.
Definition at line 116 of file clip.cc.
References assert_return, and std::max().
      
  | 
  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 Ase::Clip.
Definition at line 247 of file clip.cc.
References assert_warn, std::string::empty(), Ase::MIDI_NOTE_ID_FIRST, Ase::MIDI_NOTE_ID_LAST, and Ase::ClipNote::selected.
      
  | 
  overrideprotectedvirtual | 
      
  | 
  overrideprotectedvirtual | 
      
  | 
  overridevirtual | 
| ProjectImpl * Ase::ClipImpl::project | ( | ) | const | 
| void Ase::ClipImpl::push_undo | ( | const ClipNoteS & | clipnotes, | 
| const String & | undogroup | ||
| ) | 
      
  | 
  overrideprotectedvirtual | 
Serialize members and childern.
Implements Ase::Serializable.
Definition at line 66 of file clip.cc.
References double, Ase::ClipNote::duration, Ase::Value::filter(), Ase::WritNode::in_load(), Ase::WritNode::in_save(), llrintl(), Ase::WritNode::push(), Ase::ClipNote::selected, Ase::ClipNote::tick, Ase::TRANSPORT_PPQN, and Ase::WritNode::value().
      
  | 
  overrideprotectedvirtual | 
      
  | 
  overrideprotectedvirtual | 
      
  | 
  overridevirtual | 
      
  | 
  overridevirtual | 
| ClipImpl::OrderedEventsP Ase::ClipImpl::tick_events | ( | ) | const | 
Retrieve const vector with all notes ordered by tick.
Definition at line 174 of file clip.cc.
Referenced by Ase::ClipImpl::Generator::setup().
      
  | 
  protected |