framed
Class HannWindow
java.lang.Object
framed.Window
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
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 |
HannWindow
public HannWindow(AudioSource source)
HannWindow
public HannWindow(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