Zrythm v2.0.0-alpha.1
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::dsp::RubberBandTimeStretchEngine Class Referencefinal

RubberBand v4 time-stretch engine (offline, pitch-preserving). More...

#include <src/dsp/rubberband_timestretch_engine.h>

Inheritance diagram for zrythm::dsp::RubberBandTimeStretchEngine:
Collaboration diagram for zrythm::dsp::RubberBandTimeStretchEngine:

Public Member Functions

 RubberBandTimeStretchEngine (units::sample_rate_t sample_rate)
std::string_view id () const override
 A stable, non-translatable identifier for persistence (settings).
bool supports (StretchOptions::Algorithm algorithm) const override
 Whether this engine supports the given algorithm.
Public Member Functions inherited from zrythm::dsp::ITimeStretchEngine
utils::audio::AudioBuffer stretch (const utils::audio::AudioBuffer &input, const TimeWarpMap &warp, const StretchOptions &options)
 Stretch input according to warp (Non-Virtual Interface).

Detailed Description

RubberBand v4 time-stretch engine (offline, pitch-preserving).

Uses the RubberBand C++ API in Offline mode. Polyphonic (the default) uses the R3 (Finer) engine for highest quality. Beats and Monophonic switch to the R2 (Standard) engine with material-appropriate detector and transient options. Repitch is not implemented and falls back to Polyphonic.

Definition at line 20 of file rubberband_timestretch_engine.h.

Constructor & Destructor Documentation

◆ RubberBandTimeStretchEngine()

zrythm::dsp::RubberBandTimeStretchEngine::RubberBandTimeStretchEngine ( units::sample_rate_t sample_rate)
explicit
Parameters
sample_rateThe sample rate the engine will process audio at.

Member Function Documentation

◆ id()

std::string_view zrythm::dsp::RubberBandTimeStretchEngine::id ( ) const
nodiscardoverridevirtual

A stable, non-translatable identifier for persistence (settings).

Implements zrythm::dsp::ITimeStretchEngine.

◆ supports()

bool zrythm::dsp::RubberBandTimeStretchEngine::supports ( StretchOptions::Algorithm algorithm) const
nodiscardoverridevirtual

Whether this engine supports the given algorithm.

Implements zrythm::dsp::ITimeStretchEngine.


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