Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

GapeCosWindow Class Reference

A unit which will apply a scaling cosine function window to groups of samples it recieves. More...

#include <gapecoswindow.h>

Inheritance diagram for GapeCosWindow::

GapeUnit List of all members.

Public Slots

virtual void receiveTick (const GapeFloat *values, int numValues)
 Should receive groups of samples. More...


Public Methods

 GapeCosWindow (int windowLength, int windowType=HANNING)
 The constuctor. More...

virtual ~GapeCosWindow ()
 I love destructors!


Detailed Description

A unit which will apply a scaling cosine function window to groups of samples it recieves.

Generally, it is used with an accumulator, for large groups of samples - using it one sample at a time would be useless.

Author:
Randal Leistikow, Dave Chisholm
Since:
Beta 1.0
Version:
Last Modified Beta 1.0

Definition at line 16 of file gapecoswindow.h.


Constructor & Destructor Documentation

GapeCosWindow::GapeCosWindow ( int windowLength,
int windowType = HANNING )
 

The constuctor.

Parameters:
windowLength   The number of samples the window should expect in each group it receives with receiveTick()
windowType   The type of window - either GapeCosWindow::HANNING,GapeCosWindow::HAMMING,GapeCosWindow::BLACKMAN

Definition at line 7 of file gapecoswindow.cpp.


Member Function Documentation

void GapeCosWindow::receiveTick ( const GapeFloat * values,
int numValues ) [virtual, slot]
 

Should receive groups of samples.

Usuall, the numValues should equal the length passed into this classes constructor, but if it doesn't, the window will simply resize itself accordingly, and use the new size as its size until it receives yet another size group of samples.

Reimplemented from GapeUnit.

Definition at line 21 of file gapecoswindow.cpp.


The documentation for this class was generated from the following files:
Generated at Thu Jun 21 13:28:51 2001 for GAPE by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001