AuLib
1.0beta
|
#include <AuLib/Oscil.h>
Public Member Functions | |
Oscil (double amp=0., double freq=0., double phase=0., uint32_t vframes=def_vframes, double sr=def_sr) | |
Oscil (double amp, double freq, const FuncTable &ftable, double phase=0., uint32_t vframes=def_vframes, double sr=def_sr) | |
const Oscil & | process () |
const Oscil & | process (double amp) |
const Oscil & | process (double amp, double freq) |
const double * | process (const double *amp, const double *freq) |
const double * | process (const double *amp) |
const double * | process (double amp, const double *freq) |
const double * | process (const double *amp, double freq) |
const Oscil & | process (const AudioBase &obja) |
const Oscil & | process (const AudioBase &obja, double freq) |
const Oscil & | process (double amp, const AudioBase &objf) |
const Oscil & | process (const AudioBase &obja, const AudioBase &objf) |
const Oscil & | operator() (const AudioBase &a, const AudioBase &b) |
const Oscil & | operator() (double a, const AudioBase &b) |
const Oscil & | operator() (const AudioBase &a) |
const Oscil & | operator() (const AudioBase &a, double b) |
const Oscil & | operator() (double a) |
const Oscil & | operator() () |
![]() | |
AudioBase (uint32_t nchnls=def_nchnls, uint32_t vframes=def_vframes, double sr=def_sr) | |
virtual const AudioBase & | operator*= (double scal) |
virtual const AudioBase & | operator*= (const double *sig) |
virtual const AudioBase & | operator*= (const AudioBase &obj) |
virtual const AudioBase & | operator+= (double offs) |
virtual const AudioBase & | operator+= (const double *sig) |
virtual const AudioBase & | operator+= (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 AudioBase & | set (const AudioBase &obj) |
const AudioBase & | set (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 Member Functions | |
virtual void | dsp () |
virtual void | am_fm (uint32_t ndx) |
virtual void | set_incr (double f) |
void | mod () |
Protected Attributes | |
const double * | m_table |
double | m_phs |
double | m_amp |
double | m_freq |
double | m_incr |
const double * | m_am |
const double * | m_fm |
uint64_t | m_tframes |
![]() | |
uint32_t | m_nchnls |
uint32_t | m_vframes |
std::vector< double > | m_vector |
double | m_sr |
uint32_t | m_error |
Static Protected Attributes | |
static const FourierTable | m_sine |
Additional Inherited Members | |
![]() | |
typedef std::vector< double >::iterator | iterator |
typedef std::vector< double >::const_iterator | const_iterator |
Truncating oscillator
AuLib::Oscil::Oscil | ( | double | amp = 0. , |
double | freq = 0. , |
||
double | phase = 0. , |
||
uint32_t | vframes = def_vframes , |
||
double | sr = def_sr |
||
) |
Sinusoidal Oscil constructor
amp - amplitude
freq - frequency in Hz
phase - init phase (0-1)
vframes - vector size
sr - sampling rate
Uses internal sine wave table
AuLib::Oscil::Oscil | ( | double | amp, |
double | freq, | ||
const FuncTable & | ftable, | ||
double | phase = 0. , |
||
uint32_t | vframes = def_vframes , |
||
double | sr = def_sr |
||
) |
Oscil constructor
amp - amplitude
freq - frequency in Hz
ftable - function table
phase - init phase (0-1)
vframes - vector size
sr - sampling rate
|
inlineprotectedvirtual |
AM/FM processing
Reimplemented in AuLib::BlOsc, and AuLib::SamplePlayer.
|
protectedvirtual |
truncating oscillator process
Reimplemented in AuLib::SamplePlayer, AuLib::Oscili, and AuLib::Oscilic.
|
inlineprotected |
modulo function
operator(a,b) convenience method
operator(a,b) convenience method
operator(a,b) convenience method
|
inline |
operator(a) convenience method
|
inline |
operator() convenience method
|
inline |
Process one vector of audio
|
inline |
Process one vector of audio with amplitude amp
|
inline |
Process one vector of audio with amplitude amp and frequency freq
|
inline |
Process one vector of audio with amplitude and freq modulation
|
inline |
Process one vector of audio with amplitude modulation
|
inline |
Process one vector of audio with amplitude amp and freq modulation
|
inline |
Process one vector of audio with amplitude modulation and frequency freq
Process one vector of audio with amplitude modulation from obja
Process one vector of audio with amplitude modulation from obja and frequency freq
Process one vector of audio with amplitude amp and freq modulation from objf
Process one vector of audio with amplitude from obja and freq modulation from objf
|
inlineprotectedvirtual |
set the sampling increment
Reimplemented in AuLib::BlOsc, and AuLib::SamplePlayer.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |