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
ConstructorsConstructorDescriptionStandardSound(String signalType, long[] firstSample, double[][] wave, double[] frequencyRange) Create a standard sound. - 
Method Summary
Modifier and TypeMethodDescriptionvoidClears 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:
 getFirstSamplesin interfaceQASound- Returns:
 - the firstSample
 
 - 
getWave
public double[][] getWave()Description copied from interface:QASoundGet 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:
 getSignalTypein interfaceQASound- Returns:
 - The name of the signal type.
 
 - 
getFrequencyRange
public double[] getFrequencyRange()- Specified by:
 getFrequencyRangein interfaceQASound- Returns:
 - The generated frequency range for each sound
 
 - 
clearWave
public void clearWave()Description copied from interface:QASoundClears the waveform. Can be called once the sound insersion is complete to free up memory. 
 -