Class DolphinClickGenerator


public class DolphinClickGenerator extends StandardSoundGenerator
Generate short click like sounds which consist of an unwindowed single cycle sin wave.
Author:
dg50
  • Constructor Details

    • DolphinClickGenerator

      public DolphinClickGenerator(QADistribution frequencyDistribution)
      Make a single cycle click generator where the centre frequency is drawn at random from a distribution independently for each click.
      Parameters:
      frequencyDistribution -
    • DolphinClickGenerator

      public DolphinClickGenerator(double centroidFrequency)
      Make a single cycle click generator using a constant centre frequency.
      Parameters:
      centroidFrequency -
  • Method Details

    • generateSound

      public QASound generateSound(long sourceSample, double sampleRate, double[] delays, double[] amplitudes)
      Description copied from class: QASoundGenerator
      Generate a sound
      Overrides:
      generateSound in class StandardSoundGenerator
      Parameters:
      sourceSample - the sample number at which the source was generated
      sampleRate - sample rate of data to receive the sound
      delays - delays in samples from generation of the sound to it's reception on each hydrophone
      amplitudes - amplitudes on a linear scale (notDB) which incorporates the system full scale and the spreading loss but doesn't yet contain frequency dependent attenuation.
      Returns:
      a generated sound.
    • getFrequencyRange

      public double[] getFrequencyRange()
      Overrides:
      getFrequencyRange in class StandardSoundGenerator
      Returns:
      The nominal frequency range of the sound in Hz.
    • getDurationRange

      public double[] getDurationRange()
      Overrides:
      getDurationRange in class StandardSoundGenerator
      Returns:
      the nominal duration of the sound in seconds.