Package qa.generator.window
Class HannWindow
java.lang.Object
qa.generator.window.HannWindow
- All Implemented Interfaces:
SoundWindow
- Direct Known Subclasses:
EndsWindow
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
runWindow
(double[] wave, double soundSamples, double sampleRate, double sampleOffset) Run the window on a sound
-
Constructor Details
-
HannWindow
public HannWindow()
-
-
Method Details
-
runWindow
public void runWindow(double[] wave, double soundSamples, double sampleRate, double sampleOffset) Description copied from interface:SoundWindow
Run the window on a sound- Specified by:
runWindow
in interfaceSoundWindow
- Parameters:
wave
- sound to windowsoundSamples
- true number of samples in the sound - may be non integer.sampleOffset
- Offset of first sample - the time the wave actually stated so the window can be put at exactly the right start time relative to the true waveform.
-