Gamma  0.9.5
Generic Synthesis Library
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
RSin< T > Struct Template Reference

Sinusoidal generator based on recursive formula x0 = c x1 - x2. More...

#include <gen.h>

Inheritance diagram for RSin< T >:
Val< T >

List of all members.

Public Member Functions

operator[] (uint32_t i) const
 Array get; generates next element.
 RSin (const T &frq=T(0), const T &phs=T(0), const T &amp=T(1))
 Constructor.
operator() () const
 Generate next value.
amp () const
 Get amplitude.
freq () const
 Get unit frequency.
phase () const
 Get unit phase.
RSinamp (const T &v)
 Set amplitude.
RSinfreq (const T &v)
 Set unit frequency.
RSinphase (const T &v)
 Set unit phase.
RSinreset ()
 Reset state from stored parameters.
RSinset (const T &frq, const T &phs, const T &amp=T(1))
 Set parameters from unit freq, phase, and amplitude.
T & operator[] (uint32_t i)
 Array set; sets current value.

Public Attributes

mul
 Multiplication factor.
val
 Value.

Detailed Description

template<class T = double>
struct gam::gen::RSin< T >

Sinusoidal generator based on recursive formula x0 = c x1 - x2.


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