Anklang-0.3.0.dev797+g4e3241f3 anklang-0.3.0.dev797+g4e3241f3
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | 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 bool is_muted () const =0
 Check if clip is muted.
 
virtual void set_muted (bool muted)=0
 Set clip muted state, emits notify:muted.
 
virtual double volume () const =0
 Get clip volume in dB.
 
virtual void volume (double db)=0
 Set clip volume in dB, emits notify:volume.
 
virtual double pan () const =0
 Get clip pan (-1.0 to 1.0).
 
virtual void pan (double pan)=0
 Set clip pan (-1.0 to 1.0), emits notify:pan.
 
virtual ClipNoteS all_notes () const =0
 
virtual void all_notes (const ClipNoteS &notes)=0
 
virtual int64 end_tick () const =0
 
virtual void 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
 Change start_tick() and stop_tick(); emits notify:start_tick, notify:stop_tick.
 
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
 List all notes of this Clip; changes on notify:notes.
 
virtual TelemetryFieldS telemetry () const =0
 Retrieve clip telemetry locations.
 
- 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 name () const =0
 
virtual void 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)
 Set native property value.
 
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)
 

Additional Inherited Members

- Public Attributes inherited from Ase::Emittable
const EventHandlereventhandler
 

Detailed Description

Container for MIDI note and control events.

Definition at line 245 of file api.hh.

Constructor & Destructor Documentation

◆ Clip()

Ase::Clip::Clip ( )
explicitprotected

Definition at line 15 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.

◆ is_muted()

virtual bool Ase::Clip::is_muted ( ) const
pure virtual

Check if clip is muted.

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.

◆ pan() [1/2]

virtual double Ase::Clip::pan ( ) const
pure virtual

Get clip pan (-1.0 to 1.0).

Implemented in Ase::ClipImpl.

◆ pan() [2/2]

virtual void Ase::Clip::pan ( double  pan)
pure virtual

Set clip pan (-1.0 to 1.0), emits notify:pan.

Implemented in Ase::ClipImpl.

◆ set_muted()

virtual void Ase::Clip::set_muted ( bool  muted)
pure virtual

Set clip muted state, emits notify:muted.

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.

◆ telemetry()

virtual TelemetryFieldS Ase::Clip::telemetry ( ) const
pure virtual

Retrieve clip telemetry locations.

Implemented in Ase::ClipImpl.

◆ volume() [1/2]

virtual double Ase::Clip::volume ( ) const
pure virtual

Get clip volume in dB.

Implemented in Ase::ClipImpl.

◆ volume() [2/2]

virtual void Ase::Clip::volume ( double  db)
pure virtual

Set clip volume in dB, emits notify:volume.

Implemented in Ase::ClipImpl.


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