Factory for arranger objects.
More...
#include <src/structure/arrangement/arranger_object_factory.h>
Factory for arranger objects.
Definition at line 14 of file arranger_object_factory.h.
◆ BpmProvider
| using zrythm::structure::arrangement::ArrangerObjectFactory::BpmProvider = std::function<float ()> |
◆ SampleRateProvider
| using zrythm::structure::arrangement::ArrangerObjectFactory::SampleRateProvider = std::function<units::sample_rate_t ()> |
◆ ArrangerObjectFactory()
| zrythm::structure::arrangement::ArrangerObjectFactory::ArrangerObjectFactory |
( |
Dependencies | dependencies, |
|
|
SampleRateProvider | sample_rate_provider, |
|
|
BpmProvider | bpm_provider ) |
|
inline |
◆ clone_new_object_identity()
template<structure::arrangement::FinalArrangerObjectSubclass ObjT>
| auto zrythm::structure::arrangement::ArrangerObjectFactory::clone_new_object_identity |
( |
const ObjT & | other | ) |
const |
|
inline |
◆ create_audio_region_from_audio_buffer()
| auto zrythm::structure::arrangement::ArrangerObjectFactory::create_audio_region_from_audio_buffer |
( |
const utils::audio::AudioBuffer & | buf, |
|
|
utils::audio::BitDepth | bit_depth, |
|
|
const utils::Utf8String & | clip_name, |
|
|
units::precise_tick_t | start_ticks ) const |
|
inline |
Creates and registers a new AudioClip and then creates and returns an AudioRegion from it.
Possible use cases: splitting audio regions, audio functions, recording.
Definition at line 371 of file arranger_object_factory.h.
◆ create_audio_region_from_file()
| auto zrythm::structure::arrangement::ArrangerObjectFactory::create_audio_region_from_file |
( |
const QString & | absPath, |
|
|
units::precise_tick_t | startTicks ) |
|
inline |
◆ create_audio_region_with_clip()
| auto zrythm::structure::arrangement::ArrangerObjectFactory::create_audio_region_with_clip |
( |
dsp::FileAudioSourceUuidReference | clip_id, |
|
|
units::precise_tick_t | startTicks ) const |
|
inline |
◆ create_editor_object()
template<structure::arrangement::EditorObject ChildT>
| auto zrythm::structure::arrangement::ArrangerObjectFactory::create_editor_object |
( |
units::precise_tick_t | startTicks, |
|
|
std::variant< int, double > | value ) |
|
inline |
Used to create and add editor objects.
- Parameters
-
| startTicks | Start position of the object in ticks. |
| value | Either pitch (int), automation point value (double) or chord ID. |
Definition at line 391 of file arranger_object_factory.h.
◆ get_builder()
template<typename ObjT>
| auto zrythm::structure::arrangement::ArrangerObjectFactory::get_builder |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: