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

    • StandardSound

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

    • getFirstSamples

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

      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

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

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

      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