framed
Class HannWindow

java.lang.Object
  extended by framed.Window
      extended by framed.HannWindow
All Implemented Interfaces:
FrameSource

public class HannWindow
extends Window

Hanning window: windowed_signal = signal * (0.5 - 0.5*Math.cos(2. * offset * Math.PI / (length - 1)))

Author:
sikoried

Constructor Summary
HannWindow(AudioSource source)
           
HannWindow(AudioSource source, int windowLength, int shiftLength)
           
 
Method Summary
 int getFrameSize()
          Return the length of the frames (needed for the read call)
 java.lang.String toString()
          Return a String representation of the FrameSource
 
Methods inherited from class framed.Window
create, getFrmeSize, getNumberOfFramesPerSecond, getShift, main, read, setShiftLength, setWindowLength, setWindowSpecs
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HannWindow

public HannWindow(AudioSource source)

HannWindow

public HannWindow(AudioSource source,
                  int windowLength,
                  int shiftLength)
Method Detail

getFrameSize

public int getFrameSize()
Description copied from interface: FrameSource
Return the length of the frames (needed for the read call)


toString

public java.lang.String toString()
Description copied from interface: FrameSource
Return a String representation of the FrameSource

Specified by:
toString in interface FrameSource
Overrides:
toString in class Window