|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectframed.Window
public abstract class Window
Constructor Summary | |
---|---|
Window(AudioSource source)
Create a default Hamming windos (16ms size, 10ms shift) |
|
Window(AudioSource source,
int windowLength,
int shiftLength)
Create a Hamming window using given frame shift length |
Method Summary | |
---|---|
static Window |
create(AudioSource source,
java.lang.String parameterString)
Generate a new Window object using the parameter string and AudioSource |
int |
getFrmeSize()
Get the number of samples within one frame (i.e. |
int |
getNumberOfFramesPerSecond()
|
int |
getShift()
|
static void |
main(java.lang.String[] args)
|
boolean |
read(double[] buf)
Extract the next frame from the audio stream using a window function |
void |
setShiftLength(int shiftLength)
|
void |
setWindowLength(int windowLength)
|
void |
setWindowSpecs(int windowLength,
int shiftLength)
|
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 |
Methods inherited from interface framed.FrameSource |
---|
getFrameSize |
Constructor Detail |
---|
public Window(AudioSource source)
source
- AudioSource to read frompublic Window(AudioSource source, int windowLength, int shiftLength)
source
- AudioSource to read fromwindowLength
- Frame length in milli-secondsshiftLength
- Shift length in milli-secondsMethod Detail |
---|
public static Window create(AudioSource source, java.lang.String parameterString) throws MalformedParameterStringException
source
- parameterString
- "hamm|hann|rect,length-ms,shift-ms"
MalformedParameterStringException
public int getFrmeSize()
public int getNumberOfFramesPerSecond()
public int getShift()
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public boolean read(double[] buf) throws java.io.IOException
read
in interface FrameSource
buf
- buffer to save the signal frame
java.io.IOException
public void setShiftLength(int shiftLength)
public void setWindowLength(int windowLength)
public void setWindowSpecs(int windowLength, int shiftLength)
public java.lang.String toString()
FrameSource
toString
in interface FrameSource
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |