Class StandardSound

java.lang.Object
qa.generator.sounds.StandardSound
All Implemented Interfaces:
QASound

public class StandardSound extends Object implements QASound
A standard sound that has a duration and sweeps between two frequencies.
Author:
Doug
  • Constructor Details Link icon

    • StandardSound Link icon

      public StandardSound(String signalType, long[] firstSample, double[][] wave, double[] frequencyRange)
      Create a standard sound.
      Parameters:
      firstSample -
      sampleOffsets -
      standardSoundParams -
  • Method Details Link icon

    • getFirstSamples Link icon

      public long[] getFirstSamples()
      Specified by:
      getFirstSamples in interface QASound
      Returns:
      the firstSample
    • getWave Link icon

      public double[][] getWave()
      Description copied from interface: QASound
      Get the waveform for each hydrophone.Note that these may be time aligned to different start samples and that each channels data may not be exactly the same length
      Specified by:
      getWave in interface QASound
      Returns:
      the wave
    • getSignalType Link icon

      public String getSignalType()
      Specified by:
      getSignalType in interface QASound
      Returns:
      The name of the signal type.
    • getFrequencyRange Link icon

      public double[] getFrequencyRange()
      Specified by:
      getFrequencyRange in interface QASound
      Returns:
      The generated frequency range for each sound
    • clearWave Link icon

      public void clearWave()
      Description copied from interface: QASound
      Clears the waveform. Can be called once the sound insersion is complete to free up memory.
      Specified by:
      clearWave in interface QASound