Package simulatedAcquisition.sounds
Class ClickSound
java.lang.Object
simulatedAcquisition.sounds.SimSignal
simulatedAcquisition.sounds.ClickSound
- Direct Known Subclasses:
 BranchedChirp
Generate short click like sounds. These can be chirped (to look like 
 beaked whales) and a variety of windows are available.
- Author:
 - doug
 
- 
Nested Class Summary
Nested Classes - 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionClickSound(String name, double f0, double f1, double duration, ClickSound.WINDOWTYPE windowType)  - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidgenerateSound(float sampleRate, double sampleOffset) getName()double[]getSignal(int channel, float sampleRate, double sampleOffset) Get a single simulated signal.Methods inherited from class simulatedAcquisition.sounds.SimSignal
prepareSignal, taperEnds, toString 
- 
Field Details
- 
f0
protected double f0 - 
f1
protected double f1 - 
duration
protected double duration 
 - 
 - 
Constructor Details
- 
ClickSound
public ClickSound(String name, double f0, double f1, double duration, ClickSound.WINDOWTYPE windowType)  
 - 
 - 
Method Details
- 
generateSound
protected void generateSound(float sampleRate, double sampleOffset)  - 
getName
 - 
getSignal
public double[] getSignal(int channel, float sampleRate, double sampleOffset) Description copied from class:SimSignalGet a single simulated signal.- Specified by:
 getSignalin classSimSignal- Parameters:
 sampleRate- sample rate of datasampleOffset- 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.
 
 
 -