Package qa.generator.sounds
Class SpermWhaleGenerator
java.lang.Object
qa.generator.QASoundGenerator
qa.generator.sounds.StandardSoundGenerator
qa.generator.sounds.SpermWhaleGenerator
-
Field Summary
Fields inherited from class qa.generator.sounds.StandardSoundGenerator
NOHARMONICS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongenerateSound
(long sourceSample, double sampleRate, double[] delays, double[] amplitudes) Generate a soundMethods inherited from class qa.generator.sounds.StandardSoundGenerator
getDurationRange, getFrequencyRange, getHarmonics, getSoundWindow, getStandardSoundParams, makeSquareHarmonics, makeTriangularHarmonics, makeWave, setHarmonics, setSoundWindow, setStandardSoundParams
Methods inherited from class qa.generator.QASoundGenerator
getName, setName
-
Constructor Details
-
SpermWhaleGenerator
-
-
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 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.
-