Package qa.generator.sounds
Class StandardSound
java.lang.Object
qa.generator.sounds.StandardSound
- All Implemented Interfaces:
QASound
A standard sound that has a duration and sweeps between two
frequencies.
- Author:
- Doug
-
Constructor Summary
ConstructorDescriptionStandardSound
(String signalType, long[] firstSample, double[][] wave, double[] frequencyRange) Create a standard sound. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the waveform.long[]
double[]
double[][]
getWave()
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
-
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 interfaceQASound
- 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 -
getSignalType
- Specified by:
getSignalType
in interfaceQASound
- Returns:
- The name of the signal type.
-
getFrequencyRange
public double[] getFrequencyRange()- Specified by:
getFrequencyRange
in interfaceQASound
- 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.
-