Marsyas
0.6.0-alpha
|
Generates a sine wave. More...
#include <WaveguideOsc.h>
Inherits MarSystem.
Public Member Functions | |
MarSystem * | clone () const |
void | myProcess (realvec &in, realvec &out) |
Processes data. | |
WaveguideOsc (std::string name) | |
WaveguideOsc (const WaveguideOsc &a) | |
~WaveguideOsc () |
Generates a sine wave.
Creates a sine wave of a chosen frequency using a wave guide.
The frequency can be modulated by using in(0,t). This currently doesn't work at audio rates because there is amplitude scaling cause when the coefficient k is changed.
A scaling value could be calculated to compensate for the amplitude change.
Controls:
Definition at line 46 of file WaveguideOsc.h.
WaveguideOsc | ( | std::string | name | ) |
Definition at line 24 of file WaveguideOsc.cpp.
WaveguideOsc | ( | const WaveguideOsc & | a | ) |
Definition at line 30 of file WaveguideOsc.cpp.
~WaveguideOsc | ( | ) |
Definition at line 37 of file WaveguideOsc.cpp.
Implements MarSystem.
Definition at line 41 of file WaveguideOsc.cpp.
Processes data.
in | Input data to read. |
out | Output data to write. |
Implement this method in subclass to define specific data processing.
Implements MarSystem.
Definition at line 69 of file WaveguideOsc.cpp.