Class Ase::ClipImpl::Generator
ClassList > Ase > ClipImpl > Generator
Generator for MIDI events.
#include <clip.hh>
Public Types
Type | Name |
---|---|
typedef std::function< void(int64 tick, MidiEvent &event)> | Receiver Handler for generated MIDI events. |
Public Functions
Type | Name |
---|---|
Generator () = default |
|
int64 | clip_position () const Position within clip as tick. |
bool | done () const Check if playback is done. |
int64 | generate (int64 target_tick, const Receiver & receiver) Advance tick and call receiver for generated events. |
void | jumpto (int64 target_tick) Assign new play_position() (andclip_position() ), preserves all other state. |
int64 | loop_end () const Loop end in ticks. |
int64 | loop_start () const Loop start in ticks. |
bool | muted () const Mute MIDI note generation. |
void | muted (bool b) Assign muted state. |
int64 | play_length () const Maximum amount of ticks during playback. |
int64 | play_position () const Current playback position in ticks. |
void | setup (const ClipImpl & clip) Create generator from clip. |
int64 | start_offset () const Initial offset in ticks. |
Public Types Documentation
typedef Receiver
using Ase::ClipImpl::Generator::Receiver = std::function<void (int64 tick, MidiEvent &event)>;
Public Functions Documentation
function Generator
explicit Ase::ClipImpl::Generator::Generator () = default
function clip_position
inline int64 Ase::ClipImpl::Generator::clip_position () const
function done
inline bool Ase::ClipImpl::Generator::done () const
function generate
int64 Ase::ClipImpl::Generator::generate (
int64 target_tick,
const Receiver & receiver
)
function jumpto
void Ase::ClipImpl::Generator::jumpto (
int64 target_tick
)
function loop_end
inline int64 Ase::ClipImpl::Generator::loop_end () const
function loop_start
inline int64 Ase::ClipImpl::Generator::loop_start () const
function muted [1/2]
inline bool Ase::ClipImpl::Generator::muted () const
function muted [2/2]
inline void Ase::ClipImpl::Generator::muted (
bool b
)
function play_length
inline int64 Ase::ClipImpl::Generator::play_length () const
function play_position
inline int64 Ase::ClipImpl::Generator::play_position () const
function setup
void Ase::ClipImpl::Generator::setup (
const ClipImpl & clip
)
function start_offset
inline int64 Ase::ClipImpl::Generator::start_offset () const
The documentation for this class was generated from the following file /__w/anklang/anklang/ase/clip.hh