34 Window(
unsigned windowSize,
float gain = 1);
37 void setSize(
unsigned windowSize);
sample * SampleBuffer
1-channel buffer data type, vector of (sample)
TriangularWindow(unsigned windowSize)
void fillWindow()
subclasses override this to fill the buffer with corresponding function.
virtual void fillWindow()
subclasses override this to fill the buffer with corresponding function.
TriangularWindow:A triangularWindow window.
WelchWindow(unsigned windowSize, float gain)
HannWindow(unsigned windowSize, float gain)
AdditiveInstrument.h – Sum-of-sines synthesis instrument class.
WelchWindow(unsigned windowSize)
virtual SampleBuffer buffer(unsigned bufNum)
convenience accessors for sample buffers
RectangularWindow:A rectangular window has all values set to the Gain value, or by default to 1...
float mGain
gain for the window
RectangularWindow(unsigned windowSize, float gain)
void fillWindow()
subclasses override this to fill the buffer with corresponding function.
Window; The superclass of all other window function classes in CSL. Subclasses need only to implement...
void setGain(float gain)
Set the gain to which the window should be normalized.
BlackmanHarrisWindow(unsigned windowSize)
Buffer mWindowBuffer
used to store the window
void dump()
Print some info about the window.
TriangularWindow(unsigned windowSize, float gain)
HammingWindow: Belongs to the familly of cosine window functions.
unsigned mWindowBufferPos
where am I in the window buffer
unsigned mWindowSize
length in samples of the window
void setSize(unsigned windowSize)
Set the number of samples the window spans.
void fillWindow()
subclasses override this to fill the buffer with corresponding function.
WelchWindow: This is basically an equal-power curve.
HammingWindow(unsigned windowSize)
BlackmanWindow(unsigned windowSize)
HannWindow(unsigned windowSize)
void fillWindow()
subclasses override this to fill the buffer with corresponding function.
Buffer – the multi-channel sample buffer class (passed around between generators and IO guys)...
void fillWindow()
subclasses override this to fill the buffer with corresponding function.
void fillWindow()
subclasses override this to fill the buffer with corresponding function.
BlackmanWindow(unsigned windowSize, float gain)
HammingWindow(unsigned windowSize, float gain)
~Window()
clean-up . . . free the allocated buffer that held the window data.
void fillWindow()
subclasses override this to fill the buffer with corresponding function.
RectangularWindow(unsigned windowSize)
BlackmanHarrisWindow(unsigned windowSize, float gain)
void nextBuffer(Buffer &outputBuffer, unsigned outBufNum)
Returns a pointer to the window data.
Base class of CSL exceptions (written upper-case). Has a string message.
Window()
Creates a window using the default Gestalt size and a gain of 1; < Creates a window (hann) with the s...