com.icdif.audio.examples
Class ExampleOnsetsAsTimeDetectionFunction
java.lang.Object
com.icdif.audio.examples.ExampleOnsetsAsTimeDetectionFunction
public class ExampleOnsetsAsTimeDetectionFunction
- extends java.lang.Object
- Author:
- wanderer
Method Summary |
static java.lang.String |
getFileExtension(java.lang.String fileName)
Auxiliary method that gets the file extension of the supplied file name |
static void |
main(java.lang.String[] args)
|
static java.lang.String |
replaceFileExtension(java.lang.String fileName,
java.lang.String newExtension)
Auxiliary method that receives a filename and an extension and replaces
the current file extension with the new one |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DIRECTORY
public static final java.io.File DIRECTORY
methodology
public static OnsetMethodology methodology
- Define the methodology
sampleWindowSize
public static final int sampleWindowSize
- See Also:
- Constant Field Values
hopSize
public static final int hopSize
- See Also:
- Constant Field Values
thresholdWindowSize
public static final int thresholdWindowSize
- See Also:
- Constant Field Values
multiplier
public static final float multiplier
- See Also:
- Constant Field Values
ExampleOnsetsAsTimeDetectionFunction
public ExampleOnsetsAsTimeDetectionFunction()
main
public static void main(java.lang.String[] args)
throws java.io.FileNotFoundException,
java.lang.Exception
- Throws:
java.io.FileNotFoundException
java.lang.Exception
getFileExtension
public static java.lang.String getFileExtension(java.lang.String fileName)
- Auxiliary method that gets the file extension of the supplied file name
- Parameters:
fileName
- file Name
- Returns:
- the extension of the file name
replaceFileExtension
public static java.lang.String replaceFileExtension(java.lang.String fileName,
java.lang.String newExtension)
- Auxiliary method that receives a filename and an extension and replaces
the current file extension with the new one
- Parameters:
fileName
- newExtension
-
- Returns:
- the filename with the new extension