Marsyas  0.5.0-beta1
Public Member Functions
SVFilter Class Reference

State Variable Filter. More...

#include <SVFilter.h>

Inherits MarSystem.

Public Member Functions

MarSystemclone () const
void myProcess (realvec &in, realvec &out)
 Processes data.
void myUpdate (MarControlPtr sender)
 Updates internal state due to a control change.
 SVFilter (std::string name)
 SVFilter (const SVFilter &other)
 ~SVFilter ()

Detailed Description

State Variable Filter.

yl(n) = Fyb(n) + yl(n-1) yb(n) = Fyh(n) + yb(n-1) yh(n) = x(n) - yl(n-1) - Qyb(n-1)

F = 2sin(pi*fc/fs) Q = 2*damp

TODO: Put something descriptive here!

Definition at line 42 of file SVFilter.h.


Constructor & Destructor Documentation

SVFilter ( std::string  name)

Definition at line 28 of file SVFilter.cpp.

SVFilter ( const SVFilter other)

Definition at line 40 of file SVFilter.cpp.

~SVFilter ( )

Definition at line 50 of file SVFilter.cpp.


Member Function Documentation

MarSystem * clone ( ) const [virtual]

Implements MarSystem.

Definition at line 55 of file SVFilter.cpp.

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

Processes data.

Parameters:
inInput data to read.
outOutput data to write.

Implement this method in subclass to define specific data processing.

Implements MarSystem.

Definition at line 88 of file SVFilter.cpp.

void myUpdate ( MarControlPtr  sender) [virtual]

Updates internal state due to a control change.

Parameters:
senderThe control that triggered the update; more precisely, any control passed to the update() method - could be an invalid one.

Implement this method in subclass to define specific response to control changes.

Reimplemented from MarSystem.

Definition at line 75 of file SVFilter.cpp.


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