Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::structure::tracks::ClipPlaybackDataProvider Class Referencefinal

Event provider for clip launcher-based MIDI and audio events. More...

#include <src/structure/tracks/clip_playback_data_provider.h>

Public Member Functions

 ClipPlaybackDataProvider (const dsp::TempoMap &tempo_map)
void generate_midi_events (const arrangement::MidiRegion &midi_region, structure::tracks::ClipQuantizeOption quantize_option)
 Generate the MIDI event sequence to be used during realtime processing.
void generate_audio_events (const arrangement::AudioRegion &audio_region, structure::tracks::ClipQuantizeOption quantize_option)
 Generate the audio buffer to be used during realtime processing.
void queue_stop_playback (structure::tracks::ClipQuantizeOption quantize_option)
 Requests that playback is stopped at the next quantization point.
void process_midi_events (const EngineProcessTimeInfo &time_nfo, dsp::MidiEventVector &output_buffer) noexcept
void process_audio_events (const EngineProcessTimeInfo &time_nfo, std::span< float > left_buffer, std::span< float > right_buffer) noexcept
 Process audio events for clip launcher playback.
auto playing () const
 Whether currently playing any part of the clip.
auto current_playback_position_in_clip () const

Detailed Description

Event provider for clip launcher-based MIDI and audio events.

Definition at line 20 of file clip_playback_data_provider.h.

Member Function Documentation

◆ current_playback_position_in_clip()

auto zrythm::structure::tracks::ClipPlaybackDataProvider::current_playback_position_in_clip ( ) const
inline

Definition at line 109 of file clip_playback_data_provider.h.

◆ generate_audio_events()

void zrythm::structure::tracks::ClipPlaybackDataProvider::generate_audio_events ( const arrangement::AudioRegion & audio_region,
structure::tracks::ClipQuantizeOption quantize_option )

Generate the audio buffer to be used during realtime processing.

To be called as needed from the UI thread when a new cache is requested.

◆ generate_midi_events()

void zrythm::structure::tracks::ClipPlaybackDataProvider::generate_midi_events ( const arrangement::MidiRegion & midi_region,
structure::tracks::ClipQuantizeOption quantize_option )

Generate the MIDI event sequence to be used during realtime processing.

To be called as needed from the UI thread when a new cache is requested.

◆ playing()

auto zrythm::structure::tracks::ClipPlaybackDataProvider::playing ( ) const
inline

Whether currently playing any part of the clip.

Definition at line 107 of file clip_playback_data_provider.h.

◆ queue_stop_playback()

void zrythm::structure::tracks::ClipPlaybackDataProvider::queue_stop_playback ( structure::tracks::ClipQuantizeOption quantize_option)

Requests that playback is stopped at the next quantization point.

Parameters
quantize_option

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