Class ClickSound

java.lang.Object
simulatedAcquisition.sounds.SimSignal
simulatedAcquisition.sounds.ClickSound
Direct Known Subclasses:
BranchedChirp

public class ClickSound extends SimSignal
Generate short click like sounds. These can be chirped (to look like beaked whales) and a variety of windows are available.
Author:
doug
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in class SimSignal
      Returns:
      friendly name for displaying
    • getSignal

      public double[] getSignal(int channel, float sampleRate, double sampleOffset)
      Description copied from class: SimSignal
      Get a single simulated signal.
      Specified by:
      getSignal in class SimSignal
      Parameters:
      sampleRate - sample rate of data
      sampleOffset - sample offset - 0invalid input: '<'=sampleOffsetinvalid input: '<'1
      How far into the sound the first sample is, i.e. 0 means that the first sample point will be right on the start of the sound (value 0 if it's sin wave based), value 0.5 would be half a sample later.
      Returns:
      a signal for a single channel.