Ardour  9.0-pre0-439-ga53b99b307
ARDOUR::LuaAPI::Rubberband Class Reference

#include <lua_api.h>

Inheritance diagram for ARDOUR::LuaAPI::Rubberband:
[legend]

Public Member Functions

 Rubberband (std::shared_ptr< AudioRegion >, bool percussive)
 
 ~Rubberband ()
 
bool set_strech_and_pitch (double stretch_ratio, double pitch_ratio)
 
bool set_mapping (luabridge::LuaRef tbl)
 
std::shared_ptr< AudioRegionprocess (luabridge::LuaRef cb)
 
std::shared_ptr< AudioReadablereadable ()
 
samplecnt_t readable_length_samples () const
 
uint32_t n_channels () const
 
samplecnt_t read (Sample *, samplepos_t pos, samplecnt_t cnt, int channel) const
 
- Public Member Functions inherited from ARDOUR::AudioReadable
virtual ~AudioReadable ()
 

Private Member Functions

 Rubberband (Rubberband const &)
 
bool read_region (bool study)
 
bool retrieve (float **)
 
void cleanup (bool abort)
 
std::shared_ptr< AudioRegionfinalize ()
 

Private Attributes

std::shared_ptr< AudioRegion_region
 
uint32_t _n_channels
 
samplecnt_t _read_len
 
samplecnt_t _read_start
 
samplecnt_t _read_offset
 
std::vector< std::shared_ptr< AudioSource > > _asrc
 
RubberBand::RubberBandStretcher _rbs
 
std::map< size_t, size_t > _mapping
 
double _stretch_ratio
 
double _pitch_ratio
 
luabridge::LuaRef * _cb
 
std::shared_ptr< Rubberband_self
 

Static Private Attributes

static const samplecnt_t _bufsize
 

Additional Inherited Members

- Static Public Member Functions inherited from ARDOUR::AudioReadable
static std::vector< std::shared_ptr< AudioReadable > > load (Session &, std::string const &)
 

Detailed Description

Definition at line 384 of file lua_api.h.

Constructor & Destructor Documentation

◆ Rubberband() [1/2]

ARDOUR::LuaAPI::Rubberband::Rubberband ( std::shared_ptr< AudioRegion ,
bool  percussive 
)

◆ ~Rubberband()

ARDOUR::LuaAPI::Rubberband::~Rubberband ( )

◆ Rubberband() [2/2]

ARDOUR::LuaAPI::Rubberband::Rubberband ( Rubberband const &  )
private

Member Function Documentation

◆ cleanup()

void ARDOUR::LuaAPI::Rubberband::cleanup ( bool  abort)
private

◆ finalize()

std::shared_ptr<AudioRegion> ARDOUR::LuaAPI::Rubberband::finalize ( )
private

◆ n_channels()

uint32_t ARDOUR::LuaAPI::Rubberband::n_channels ( ) const
inlinevirtual

Implements ARDOUR::AudioReadable.

Definition at line 396 of file lua_api.h.

◆ process()

std::shared_ptr<AudioRegion> ARDOUR::LuaAPI::Rubberband::process ( luabridge::LuaRef  cb)

◆ read()

samplecnt_t ARDOUR::LuaAPI::Rubberband::read ( Sample ,
samplepos_t  pos,
samplecnt_t  cnt,
int  channel 
) const
virtual

Implements ARDOUR::AudioReadable.

◆ read_region()

bool ARDOUR::LuaAPI::Rubberband::read_region ( bool  study)
private

◆ readable()

std::shared_ptr<AudioReadable> ARDOUR::LuaAPI::Rubberband::readable ( )

◆ readable_length_samples()

samplecnt_t ARDOUR::LuaAPI::Rubberband::readable_length_samples ( ) const
inlinevirtual

Implements ARDOUR::AudioReadable.

Definition at line 395 of file lua_api.h.

◆ retrieve()

bool ARDOUR::LuaAPI::Rubberband::retrieve ( float **  )
private

◆ set_mapping()

bool ARDOUR::LuaAPI::Rubberband::set_mapping ( luabridge::LuaRef  tbl)

◆ set_strech_and_pitch()

bool ARDOUR::LuaAPI::Rubberband::set_strech_and_pitch ( double  stretch_ratio,
double  pitch_ratio 
)

Member Data Documentation

◆ _asrc

std::vector<std::shared_ptr<AudioSource> > ARDOUR::LuaAPI::Rubberband::_asrc
private

Definition at line 413 of file lua_api.h.

◆ _bufsize

const samplecnt_t ARDOUR::LuaAPI::Rubberband::_bufsize
staticprivate

Definition at line 423 of file lua_api.h.

◆ _cb

luabridge::LuaRef* ARDOUR::LuaAPI::Rubberband::_cb
private

Definition at line 421 of file lua_api.h.

◆ _mapping

std::map<size_t, size_t> ARDOUR::LuaAPI::Rubberband::_mapping
private

Definition at line 416 of file lua_api.h.

◆ _n_channels

uint32_t ARDOUR::LuaAPI::Rubberband::_n_channels
private

Definition at line 408 of file lua_api.h.

◆ _pitch_ratio

double ARDOUR::LuaAPI::Rubberband::_pitch_ratio
private

Definition at line 419 of file lua_api.h.

◆ _rbs

RubberBand::RubberBandStretcher ARDOUR::LuaAPI::Rubberband::_rbs
private

Definition at line 415 of file lua_api.h.

◆ _read_len

samplecnt_t ARDOUR::LuaAPI::Rubberband::_read_len
private

Definition at line 409 of file lua_api.h.

◆ _read_offset

samplecnt_t ARDOUR::LuaAPI::Rubberband::_read_offset
private

Definition at line 411 of file lua_api.h.

◆ _read_start

samplecnt_t ARDOUR::LuaAPI::Rubberband::_read_start
private

Definition at line 410 of file lua_api.h.

◆ _region

std::shared_ptr<AudioRegion> ARDOUR::LuaAPI::Rubberband::_region
private

Definition at line 406 of file lua_api.h.

◆ _self

std::shared_ptr<Rubberband> ARDOUR::LuaAPI::Rubberband::_self
private

Definition at line 422 of file lua_api.h.

◆ _stretch_ratio

double ARDOUR::LuaAPI::Rubberband::_stretch_ratio
private

Definition at line 418 of file lua_api.h.


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