Marsyas  0.5.0-beta1
Public Member Functions
WaveguideOsc Class Reference

Generates a sine wave. More...

#include <WaveguideOsc.h>

Inherits MarSystem.

Public Member Functions

MarSystemclone () const
void myProcess (realvec &in, realvec &out)
 Processes data.
 WaveguideOsc (std::string name)
 WaveguideOsc (const WaveguideOsc &a)
 ~WaveguideOsc ()

Detailed Description

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.


Definition at line 46 of file WaveguideOsc.h.

Constructor & Destructor Documentation

WaveguideOsc ( std::string  name)

Definition at line 24 of file WaveguideOsc.cpp.

WaveguideOsc ( const WaveguideOsc a)

Definition at line 30 of file WaveguideOsc.cpp.

Definition at line 37 of file WaveguideOsc.cpp.

Member Function Documentation

MarSystem * clone ( ) const [virtual]

Implements MarSystem.

Definition at line 41 of file WaveguideOsc.cpp.

void myProcess ( realvec in,
realvec out 
) [virtual]

Processes data.

inInput data to read.
outOutput data to write.

Implement this method in subclass to define specific data processing.

Implements MarSystem.

Definition at line 69 of file WaveguideOsc.cpp.

The documentation for this class was generated from the following files: