AuLib  1.0beta
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
AuLib::FuncTable Class Reference

#include <AuLib/FuncTable.h>

Inheritance diagram for AuLib::FuncTable:
Inheritance graph
[legend]
Collaboration diagram for AuLib::FuncTable:
Collaboration graph
[legend]

Public Member Functions

 FuncTable (uint32_t tframes=def_tframes, uint32_t nchnls=def_nchnls, uint32_t sr=def_sr)
 
 FuncTable (const double *src, bool norm=false, uint32_t tframes=def_tframes, uint32_t nchnls=def_nchnls, uint32_t sr=def_sr)
 
uint64_t tframes () const
 
void rescale (double max)
 
- Public Member Functions inherited from AuLib::AudioBase
 AudioBase (uint32_t nchnls=def_nchnls, uint32_t vframes=def_vframes, double sr=def_sr)
 
virtual const AudioBaseoperator*= (double scal)
 
virtual const AudioBaseoperator*= (const double *sig)
 
virtual const AudioBaseoperator*= (const AudioBase &obj)
 
virtual const AudioBaseoperator+= (double offs)
 
virtual const AudioBaseoperator+= (const double *sig)
 
virtual const AudioBaseoperator+= (const AudioBase &obj)
 
double & operator[] (uint32_t ndx)
 
const double & operator[] (uint32_t ndx) const
 
iterator begin ()
 
iterator end ()
 
const_iterator cbegin () const
 
const_iterator cend () const
 
const AudioBaseset (const AudioBase &obj)
 
const AudioBaseset (const double *sig)
 
const double * set (double v)
 
double set (double v, uint32_t p)
 
 operator const std::vector< double > & () const
 
 operator const double * () const
 
const double * vector () const
 
double vector (uint32_t frndx, uint32_t chn) const
 
uint32_t vframes (uint32_t frames)
 
uint32_t resize_exact (uint32_t frames)
 
uint32_t vframes () const
 
uint32_t vsamps () const
 
uint32_t nchnls () const
 
uint32_t sr () const
 
uint32_t error () const
 
virtual const char * error_message () const
 

Static Public Attributes

static constexpr bool normalised = true
 

Protected Member Functions

void normalise_table (double s=1.0)
 

Protected Attributes

uint64_t m_tframes
 
- Protected Attributes inherited from AuLib::AudioBase
uint32_t m_nchnls
 
uint32_t m_vframes
 
std::vector< double > m_vector
 
double m_sr
 
uint32_t m_error
 

Additional Inherited Members

- Public Types inherited from AuLib::AudioBase
typedef std::vector< double >::iterator iterator
 
typedef std::vector< double >::const_iterator const_iterator
 

Detailed Description

Function table base class

Constructor & Destructor Documentation

◆ FuncTable() [1/2]

AuLib::FuncTable::FuncTable ( uint32_t  tframes = def_tframes,
uint32_t  nchnls = def_nchnls,
uint32_t  sr = def_sr 
)
inline

FuncTable constructor

tframes - table size
nchnls - number of channels
sr - sampling rate

◆ FuncTable() [2/2]

AuLib::FuncTable::FuncTable ( const double *  src,
bool  norm = false,
uint32_t  tframes = def_tframes,
uint32_t  nchnls = def_nchnls,
uint32_t  sr = def_sr 
)
inline

FuncTable constructor from vector

src - source vector
norm - normalise table tframes - table size
nchnls - number of channels
sr - sampling rate

Member Function Documentation

◆ normalise_table()

void AuLib::FuncTable::normalise_table ( double  s = 1.0)
inlineprotected

Normalise the table

◆ rescale()

void AuLib::FuncTable::rescale ( double  max)
inline

rescale the table for an absolute max

◆ tframes()

uint64_t AuLib::FuncTable::tframes ( ) const
inline

return the nominal table size, ie. the total vectorsize minus the two guard points.

Member Data Documentation

◆ m_tframes

uint64_t AuLib::FuncTable::m_tframes
protected

◆ normalised

constexpr bool AuLib::FuncTable::normalised = true
static

define normalisation (rescaling)


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