DelaySamples Class Reference
[Processing]

Simple MarSystem that shifts samples back in time. More...

#include <DelaySamples.h>

Inherits Marsyas::MarSystem.


Public Member Functions

MarSystemclone () const
 Implementation of the MarSystem::clone() method.
 DelaySamples (const DelaySamples &a)
 DelaySamples copy constructor.
 DelaySamples (std::string name)
 DelaySamples constructor.
void myProcess (realvec &in, realvec &out)
 Implementation of the MarSystem::myProcess method.
 ~DelaySamples ()
 DelaySamples destructor.

Private Member Functions

void addControls ()
 Add specific controls needed by this MarSystem.
void myUpdate (MarControlPtr sender)
 Reads changed controls and sets up variables if necessary.

Private Attributes

MarControlPtr ctrl_delay_
 MarControlPtr for the gain control.
mrs_natural delay_
 Cache of the delay.
realvec memory_
 Buffers of previous samples.


Detailed Description

Simple MarSystem that shifts samples back in time.

This is MarSystem is similar to

This MarSystem works across slices and with delays larger than the window size.

Controls:

Definition at line 44 of file DelaySamples.h.


Constructor & Destructor Documentation

DelaySamples ( std::string  name  ) 

DelaySamples constructor.

Add any specific controls needed by this MarSystem.

Definition at line 25 of file DelaySamples.cpp.

References DelaySamples::addControls().

Referenced by DelaySamples::clone().

DelaySamples ( const DelaySamples a  ) 

DelaySamples copy constructor.

All member MarControlPtr have to be explicitly reassigned in the copy constructor.

Definition at line 32 of file DelaySamples.cpp.

References DelaySamples::ctrl_delay_.


Member Function Documentation

void addControls (  )  [private]

Add specific controls needed by this MarSystem.

Add any specific controls needed by this MarSystem.

Reimplemented from MarSystem.

Definition at line 51 of file DelaySamples.cpp.

References DelaySamples::ctrl_delay_.

Referenced by DelaySamples::DelaySamples().

void myUpdate ( MarControlPtr  sender  )  [private, virtual]

Reads changed controls and sets up variables if necessary.

Use the default MarSystem setup with equal input/output stream format.

Reimplemented from MarSystem.

Definition at line 57 of file DelaySamples.cpp.

References DelaySamples::ctrl_delay_, DelaySamples::delay_, DelaySamples::memory_, Marsyas::obsNamesAddPrefix(), realvec::setval(), and realvec::stretch().


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

Generated on Wed May 23 00:02:23 2012 for Marsyas by  doxygen 1.5.6