framed
Class HammingWindow
java.lang.Object
framed.Window
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
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HammingWindow
public HammingWindow(AudioSource source)
HammingWindow
public HammingWindow(AudioSource source,
int windowLength,
int shiftLength)
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