Direct plot for viewing sinusoidal tracks.
|
#include "DPSinTracks.hxx" |
|
Direct Sinusoidal Tracks plot functions
|
void PlotSinTracks( const Segment& segment,
const std::string& label="",
int x=100,
int y=100,
int w=500,
int h=225 )
|
Assigns the data for viewing, as well as a title
and dimensions for the plot. |
segment : segment with the spectral peak data for every frame.
label : title label for the plot, default="" (an empty string).
x : x-coordinate of the upper left corner, default=100.
y : y-coordinate of the upper left corner, default=100.
w : width, default=500.
h : height, default=225.
|
void PlotSinTracks( const Array< SpectralPeakArray >& peakMtx,
const TData& sr,
const TData& dur,
const std::string& label="",
int x=100,
int y=100,
int w=500,
int h=225 )
|
As the above function, but assigning different data to obtain the same results.
|
peakMtx : array with spectral peaks of every frame.
sr : sample rate.
dur : duration.
label : title label for the plot, default="" (an empty string).
x : x-coordinate of the upper left corner, default=100.
y : y-coordinate of the upper left corner, default=100.
w : width, default=500.
h : height, default=225.
|
|
|