framed
Class HammingWindow

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

public class HammingWindow
extends Window

Hamming window: windowed_signal = signal * (0.54 - 0.46*Math.cos(2. * offset * Math.PI / (length - 1)))

Author:
sikoried

Constructor Summary
HammingWindow(AudioSource source)
           
HammingWindow(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

HammingWindow

public HammingWindow(AudioSource source)

HammingWindow

public HammingWindow(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