Cosine generator based on recursive formula x0 = c x1 - x2. More...
#include <gen.h>
Public Member Functions | |
| T | operator[] (uint32_t i) const |
| Array get; generates next element. | |
| RCos (const T &frq=T(0), const T &=T(1)) | |
| Constructor. | |
| T | operator() () const |
| Generate next value. | |
| RCos & | set (const T &frq, const T &=T(1)) |
| Set parameters from unit freq, phase, and amplitude. | |
| T & | operator[] (uint32_t i) |
| Array set; sets current value. | |
Public Attributes | |
| T | val2 |
| 2-previous value | |
| T | c1 |
| 1-previous coefficient | |
| T | val |
| Value. | |
Cosine generator based on recursive formula x0 = c x1 - x2.