Class SimpleExampleSound

java.lang.Object
rawDeepLearningClassifier.layoutFX.exampleSounds.SimpleExampleSound
All Implemented Interfaces:
ExampleSound

public class SimpleExampleSound extends Object implements ExampleSound
Simple example sound loaded from a file.
Author:
Jamie Macaulay
  • Constructor Details

    • SimpleExampleSound

      public SimpleExampleSound(String file)
    • SimpleExampleSound

      public SimpleExampleSound(URL path)
    • SimpleExampleSound

      public SimpleExampleSound(URL path, int start, int end)
    • 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 interface ExampleSound
      Returns:
      the wave
    • getSampleRate

      public float getSampleRate()
      Description copied from interface: ExampleSound
      Gte the sample rate .
      Specified by:
      getSampleRate in interface ExampleSound
      Returns:
      get the sample rate.