FQLab
A spectral audio sandbox
 
Loading...
Searching...
No Matches
FQLab.FreqGraphView Class Reference
Inheritance diagram for FQLab.FreqGraphView:
Inheritance graph
Collaboration diagram for FQLab.FreqGraphView:
Collaboration graph

Public Member Functions

void UpdateData (double[] magnitudes)
 Draws a bar graph in real time.
 

Protected Member Functions

override bool OnDrawingContent (DrawContext? drawContext)
 

Private Attributes

double[] _magnitudes = []
 
double[] _trails = []
 
double _smoothedMax = 1.0
 

Static Private Attributes

const double MinMagnitude = 1e-10
 
const double DecayFactor = 0.99
 
const double TrailDecay = 0.985
 

Member Function Documentation

◆ OnDrawingContent()

override bool FQLab.FreqGraphView.OnDrawingContent ( DrawContext?  drawContext)
inlineprotected

◆ UpdateData()

void FQLab.FreqGraphView.UpdateData ( double[]  magnitudes)
inline

Draws a bar graph in real time.

Parameters
magnitudesScalars for the length of individual columns.
Here is the caller graph for this function:

Member Data Documentation

◆ _magnitudes

double [] FQLab.FreqGraphView._magnitudes = []
private

◆ _smoothedMax

double FQLab.FreqGraphView._smoothedMax = 1.0
private

◆ _trails

double [] FQLab.FreqGraphView._trails = []
private

◆ DecayFactor

const double FQLab.FreqGraphView.DecayFactor = 0.99
staticprivate

◆ MinMagnitude

const double FQLab.FreqGraphView.MinMagnitude = 1e-10
staticprivate

◆ TrailDecay

const double FQLab.FreqGraphView.TrailDecay = 0.985
staticprivate

The documentation for this class was generated from the following file: