|
Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
Base class for timeline data providers. More...
#include <src/structure/arrangement/timeline_data_provider.h>

Public Types | |
| using | IntervalType = std::pair<units::sample_t, units::sample_t> |
Public Member Functions | |
| template<RegionObject RegionType> | |
| void | generate_events (this auto &self, const dsp::TempoMap &tempo_map, RangeOf< const RegionType * > auto regions, utils::ExpandableTickRange affected_range) |
| Generate the event sequence to be used during realtime processing. | |
| virtual void | clear_all_caches ()=0 |
| virtual void | remove_sequences_matching_interval_from_all_caches (IntervalType interval)=0 |
Protected Member Functions | |
| virtual dsp::TimelineDataCache * | get_base_cache ()=0 |
Protected Attributes | |
| dsp::ITransport::PlayState | last_seen_transport_state_ |
| Last transport state we've seen. | |
| units::sample_t | next_expected_transport_position_ |
| Next expected transport position (for detecting jumps). | |
Base class for timeline data providers.
Provides common functionality for all timeline data provider types. This is an abstract base class that defines the interface that all derived provider classes must implement.
Definition at line 24 of file timeline_data_provider.h.
| using zrythm::structure::arrangement::TimelineDataProvider::IntervalType = std::pair<units::sample_t, units::sample_t> |
Definition at line 27 of file timeline_data_provider.h.
|
inline |
Generate the event sequence to be used during realtime processing.
To be called as needed from the UI thread when a new cache is requested.
| RegionType | Either MidiRegion, AudioRegion, ChordRegion, or AutomationRegion |
| self | The derived class instance (explicit this parameter) |
| tempo_map | The tempo map for timing conversion. |
| regions | The regions to process. |
| affected_range | The range of ticks to process. |
Definition at line 44 of file timeline_data_provider.h.
|
protected |
Last transport state we've seen.
Definition at line 126 of file timeline_data_provider.h.
|
protected |
Next expected transport position (for detecting jumps).
Definition at line 131 of file timeline_data_provider.h.