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

#include <AuLib/Envel.h>

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

Public Member Functions

 Envel (const Segments &segs, double rel=0.f, uint32_t vframes=def_vframes, double sr=def_sr)
 
 Envel (double rel=0.f, uint32_t vframes=def_vframes, double sr=def_sr)
 
const Envelprocess ()
 
const Enveloperator() ()
 
virtual void retrig ()
 
void release ()
 
void reset (const Segments &segs, double rel=0.f)
 
uint32_t rframes () const
 
uint32_t frames () const
 
bool is_finished () const
 
- 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
 

Protected Attributes

double m_y
 
int32_t m_cseg
 
uint32_t m_rt
 
uint32_t m_cnt
 
uint32_t m_time
 
double m_incr
 
bool m_trig
 
bool m_releasing
 
bool m_done
 
int32_t m_rcnt
 
Segments m_segs
 
- 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

Multi-segment envelope generator

Constructor & Destructor Documentation

◆ Envel() [1/2]

AuLib::Envel::Envel ( const Segments segs,
double  rel = 0.f,
uint32_t  vframes = def_vframes,
double  sr = def_sr 
)
inline

Envel constructor

segs - envelope segments
rel - release time
vframes - vector size
sr - sampling rate

◆ Envel() [2/2]

AuLib::Envel::Envel ( double  rel = 0.f,
uint32_t  vframes = def_vframes,
double  sr = def_sr 
)
inline

Envel constructor

rel - release time
vframes - vector size
sr - sampling rate

Member Function Documentation

◆ frames()

uint32_t AuLib::Envel::frames ( ) const
inline

return the env duration in frames (excluding release)

◆ is_finished()

bool AuLib::Envel::is_finished ( ) const
inline

return the envelope status

◆ operator()()

const Envel& AuLib::Envel::operator() ( )
inline

operator() convenience method, same as process()

◆ process()

const Envel& AuLib::Envel::process ( )
inline

process envelope

◆ release()

void AuLib::Envel::release ( )
inline

trigger release

◆ reset()

void AuLib::Envel::reset ( const Segments segs,
double  rel = 0.f 
)
inline

reset parameters and retrigger

◆ retrig()

virtual void AuLib::Envel::retrig ( )
inlinevirtual

retrigger envelope

◆ rframes()

uint32_t AuLib::Envel::rframes ( ) const
inline

return the release duration in frames

Member Data Documentation

◆ m_cnt

uint32_t AuLib::Envel::m_cnt
protected

◆ m_cseg

int32_t AuLib::Envel::m_cseg
protected

◆ m_done

bool AuLib::Envel::m_done
protected

◆ m_incr

double AuLib::Envel::m_incr
protected

◆ m_rcnt

int32_t AuLib::Envel::m_rcnt
protected

◆ m_releasing

bool AuLib::Envel::m_releasing
protected

◆ m_rt

uint32_t AuLib::Envel::m_rt
protected

◆ m_segs

Segments AuLib::Envel::m_segs
protected

◆ m_time

uint32_t AuLib::Envel::m_time
protected

◆ m_trig

bool AuLib::Envel::m_trig
protected

◆ m_y

double AuLib::Envel::m_y
protected

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