FQLab
A spectral audio sandbox
 
Loading...
Searching...
No Matches
FQLab.FreqViewDataProcessor Class Reference

Acts as a data sink for frequency data. Makes sure all data is in proper format for the graph view. More...

Inheritance diagram for FQLab.FreqViewDataProcessor:
Inheritance graph
Collaboration diagram for FQLab.FreqViewDataProcessor:
Collaboration graph

Public Member Functions

 FreqViewDataProcessor (FreqSpectrumView spectrumView)
 Starts graph refresh task.
 
void ReceiveFrequencyData (FreqViewData viewData)
 Accepts frequency from audio pipeline and passes it to designated graph views.
 

Private Member Functions

bool GraphRenderCallBack ()
 
double[] CalculateLogFreqBuckets (FreqViewData viewData)
 
void UpdateBinRanges (int numGraphColumns, int fftSize, int sampleRate, int freqBinsCount)
 

Private Attributes

readonly FreqSpectrumView _spectrumView
 
int _cachedWidth = 0
 
List<(int start, int end)> _binRanges = new()
 
double[] _backMagnitudes = []
 
readonly object _bufferLock = new()
 

Static Private Attributes

static readonly double LogMin = Math.Log10(20)
 
static readonly double LogMax = Math.Log10(20000)
 

Detailed Description

Acts as a data sink for frequency data. Makes sure all data is in proper format for the graph view.

Constructor & Destructor Documentation

◆ FreqViewDataProcessor()

FQLab.FreqViewDataProcessor.FreqViewDataProcessor ( FreqSpectrumView  spectrumView)
inline

Starts graph refresh task.

Parameters
spectrumView
Here is the call graph for this function:

Member Function Documentation

◆ CalculateLogFreqBuckets()

double[] FQLab.FreqViewDataProcessor.CalculateLogFreqBuckets ( FreqViewData  viewData)
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GraphRenderCallBack()

bool FQLab.FreqViewDataProcessor.GraphRenderCallBack ( )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReceiveFrequencyData()

void FQLab.FreqViewDataProcessor.ReceiveFrequencyData ( FreqViewData  viewData)
inline

Accepts frequency from audio pipeline and passes it to designated graph views.

Parameters
viewData

Implements FQLab.IFreqDataReceiver.

Here is the call graph for this function:

◆ UpdateBinRanges()

void FQLab.FreqViewDataProcessor.UpdateBinRanges ( int  numGraphColumns,
int  fftSize,
int  sampleRate,
int  freqBinsCount 
)
inlineprivate
Here is the caller graph for this function:

Member Data Documentation

◆ _backMagnitudes

double [] FQLab.FreqViewDataProcessor._backMagnitudes = []
private

◆ _binRanges

List<(int start, int end)> FQLab.FreqViewDataProcessor._binRanges = new()
private

◆ _bufferLock

readonly object FQLab.FreqViewDataProcessor._bufferLock = new()
private

◆ _cachedWidth

int FQLab.FreqViewDataProcessor._cachedWidth = 0
private

◆ _spectrumView

readonly FreqSpectrumView FQLab.FreqViewDataProcessor._spectrumView
private

◆ LogMax

readonly double FQLab.FreqViewDataProcessor.LogMax = Math.Log10(20000)
staticprivate

◆ LogMin

readonly double FQLab.FreqViewDataProcessor.LogMin = Math.Log10(20)
staticprivate

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