Nsound
0.9.4
|
#include <Nsound/DelayLine.h>
Public Member Functions | |
DelayLine (float64 sample_rate, float64 max_delay_in_seconds) | |
void | setRealtime (bool flag) |
Buffer | delay (const Buffer &x, const Buffer &delay_time) |
float64 | delay (float64 x, float64 delay_time) |
float64 | read () |
float64 | read (float64 delay) |
void | write (float64 x) |
void | reset () |
Protected Attributes | |
float64 | sample_rate_ |
float64 | max_delay_time_ |
float64 | delay_time_ |
std::vector< float64 > | buffer_ |
uint32 | wr_idx_ |
bool | is_realtime_ |
Private Member Functions | |
DelayLine (const DelayLine ©) | |
DelayLine & | operator= (const DelayLine &rhs) |
Definition at line 48 of file DelayLine.h.
|
private |
|
inline |
Definition at line 58 of file DelayLine.cc.
References Nsound::Buffer::cbegin(), is_realtime_, and reset().
Referenced by main(), and read().
float64 Nsound::DelayLine::read | ( | ) |
Definition at line 97 of file DelayLine.cc.
References buffer_, delay_time_, M_ASSERT_MSG, max_delay_time_, sample_rate_, and wr_idx_.
Referenced by delay(), DelayLine_UnitTest(), Nsound::Pluck::generate(), Nsound::GuitarBass::play(), Nsound::Clarinet::play(), Nsound::FluteSlide::play(), and read().
Definition at line 117 of file DelayLine.cc.
References delay(), delay_time_, M_ASSERT_MSG, max_delay_time_, and read().
void Nsound::DelayLine::write | ( | float64 | x | ) |
Definition at line 133 of file DelayLine.cc.
References buffer_, and wr_idx_.
Referenced by delay(), DelayLine_UnitTest(), Nsound::Pluck::generate(), Nsound::GuitarBass::play(), Nsound::Clarinet::play(), and Nsound::FluteSlide::play().
void Nsound::DelayLine::reset | ( | ) |
Definition at line 87 of file DelayLine.cc.
References buffer_, delay_time_, max_delay_time_, and wr_idx_.
Referenced by delay().
|
protected |
Definition at line 70 of file DelayLine.h.
Referenced by read().
|
protected |
Definition at line 71 of file DelayLine.h.
|
protected |
Definition at line 72 of file DelayLine.h.
|
protected |
Definition at line 74 of file DelayLine.h.
|
protected |
Definition at line 76 of file DelayLine.h.
|
protected |
Definition at line 78 of file DelayLine.h.
Referenced by delay(), and setRealtime().