Package qa.generator.sounds
Class DolphinClickGenerator
java.lang.Object
qa.generator.QASoundGenerator
qa.generator.sounds.StandardSoundGenerator
qa.generator.sounds.DolphinClickGenerator
Generate short click like sounds which consist of an unwindowed single
 cycle sin wave.
- Author:
 - dg50
 
- 
Field Summary
Fields inherited from class qa.generator.sounds.StandardSoundGenerator
NOHARMONICS - 
Constructor Summary
ConstructorsConstructorDescriptionDolphinClickGenerator(double centroidFrequency) Make a single cycle click generator using a constant centre frequency.DolphinClickGenerator(QADistribution frequencyDistribution) Make a single cycle click generator where the centre frequency is drawn at random from a distribution independently for each click. - 
Method Summary
Modifier and TypeMethodDescriptiongenerateSound(long sourceSample, double sampleRate, double[] delays, double[] amplitudes) Generate a sounddouble[]double[]Methods inherited from class qa.generator.sounds.StandardSoundGenerator
getHarmonics, getSoundWindow, getStandardSoundParams, makePhase, makeSquareHarmonics, makeTriangularHarmonics, makeWave, setHarmonics, setSoundWindow, setStandardSoundParamsMethods inherited from class qa.generator.QASoundGenerator
getName, setName 
- 
Constructor Details
- 
DolphinClickGenerator
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:QASoundGeneratorGenerate a sound- Overrides:
 generateSoundin classStandardSoundGenerator- Parameters:
 sourceSample- the sample number at which the source was generatedsampleRate- sample rate of data to receive the sounddelays- delays in samples from generation of the sound to it's reception on each hydrophoneamplitudes- 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:
 getFrequencyRangein classStandardSoundGenerator- Returns:
 - The nominal frequency range of the sound in Hz.
 
 - 
getDurationRange
public double[] getDurationRange()- Overrides:
 getDurationRangein classStandardSoundGenerator- Returns:
 - the nominal duration of the sound in seconds.
 
 
 -