Marsyas  0.5.0-beta1
Public Member Functions
Upsample Class Reference

Upsamples input by integer factor using chosen interpolation. Frame size is also increased by the same factor. More...

#include <Upsample.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.
 Upsample (std::string name)
 ~Upsample ()

Detailed Description

Upsamples input by integer factor using chosen interpolation. Frame size is also increased by the same factor.

Upsamples a signal by a factor n so that `out[t]=in[n*t]`. Also runs some kind of interpolation to find out the value for unknown samples (see description of the **mrs_string/mode** control).

Controls:

Definition at line 44 of file Upsample.h.


Constructor & Destructor Documentation

Upsample ( std::string  name)

Definition at line 25 of file Upsample.cpp.

~Upsample ( )

Definition at line 30 of file Upsample.cpp.


Member Function Documentation

MarSystem * clone ( ) const [virtual]

Implements MarSystem.

Definition at line 35 of file Upsample.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 62 of file Upsample.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 52 of file Upsample.cpp.


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