public class GraphicRender
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static float |
WAVEFORM_DEFAULT_TIMESTEP |
| Constructor | Description |
|---|---|
GraphicRender() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
renderSpectrogram(Spectrogram spectrogram,
java.lang.String filename) |
Render a spectrogram of a wave file
|
void |
renderSpectrogramData(double[][] spectrogramData,
java.lang.String filename) |
Render a spectrogram data array
|
void |
renderWaveform(Wave wave,
float timeStep,
java.lang.String filename) |
Render a waveform of a wave file
|
void |
renderWaveform(Wave wave,
java.lang.String filename) |
Render a waveform of a wave file
|
void |
resetMarkers() |
Reset the markers
|
void |
setHorizontalMarker(int y) |
Set the horizontal marker
|
void |
setVerticalMarker(int x) |
Set the vertical marker
|
public static final float WAVEFORM_DEFAULT_TIMESTEP
public void renderWaveform(Wave wave, java.lang.String filename)
wave - Wave objectfilename - output filegraphic renderedpublic void renderWaveform(Wave wave, float timeStep, java.lang.String filename)
wave - Wave objecttimeStep - time interval in second, as known as 1/fpsfilename - output filegraphic renderedpublic void renderSpectrogram(Spectrogram spectrogram, java.lang.String filename)
spectrogram - spectrogram objectfilename - output filegraphic renderedpublic void renderSpectrogramData(double[][] spectrogramData,
java.lang.String filename)
spectrogramData - spectrogramData[time][frequency]=intensity, which time is the x-axis, frequency is the y-axis, intensity is the color darknessfilename - output filegraphic renderedpublic void setVerticalMarker(int x)
x - x-offset pixel of the markerpublic void setHorizontalMarker(int y)
y - y-offset pixel of the markerpublic void resetMarkers()
Copyright © 2018. All Rights Reserved.