class
GeneratorGenerator for MIDI events.
Public types
-
using Receiver = std::
function<void(int64 tick, MidiEvent&event)> - Handler for generated MIDI events.
Public functions
- auto clip_position() const → int64
- Position within clip as tick.
- auto done() const → bool
- Check if playback is done.
- auto generate(int64 target_tick, const Receiver& receiver) → int64
- Advance tick and call
receiver
for generated events. - void jumpto(int64 target_tick)
- Assign new play_
position() (and clip_ position()), preserves all other state. - auto loop_end() const → int64
- Loop end in ticks.
- auto loop_start() const → int64
- Loop start in ticks.
- auto muted() const → bool
- Mute MIDI note generation.
- void muted(bool b)
- Assign muted state.
- auto play_length() const → int64
- Maximum amount of ticks during playback.
- auto play_position() const → int64
- Current playback position in ticks.
- void setup(const ClipImpl& clip)
- Create generator from clip.
- auto start_offset() const → int64
- Initial offset in ticks.