Class SimpleExampleSound
java.lang.Object
rawDeepLearningClassifier.layoutFX.exampleSounds.SimpleExampleSound
- All Implemented Interfaces:
ExampleSound
Simple example sound loaded from a file.
- Author:
- Jamie Macaulay
-
Constructor Summary
ConstructorDescriptionSimpleExampleSound
(double[] wave, float sampleRate) SimpleExampleSound
(String file) SimpleExampleSound
(URL path) SimpleExampleSound
(URL path, int start, int end) -
Method Summary
-
Constructor Details
-
SimpleExampleSound
-
SimpleExampleSound
-
SimpleExampleSound
-
SimpleExampleSound
public SimpleExampleSound(double[] wave, float sampleRate)
-
-
Method Details
-
getWave
public double[] getWave()Description copied from interface:ExampleSound
Get the wave .- Specified by:
getWave
in interfaceExampleSound
- Returns:
- the wave
-
getSampleRate
public float getSampleRate()Description copied from interface:ExampleSound
Gte the sample rate .- Specified by:
getSampleRate
in interfaceExampleSound
- Returns:
- get the sample rate.
-