Added option to show current list on FFT

This commit is contained in:
Ryzerth
2021-07-04 02:25:36 +02:00
parent 5b9bd56cf2
commit 4dc0df74cf
9 changed files with 72 additions and 14 deletions

View File

@@ -174,6 +174,16 @@ namespace ImGui {
}
}
FFTRedrawArgs args;
args.min = ImVec2(widgetPos.x + 50, widgetPos.y + 9);
args.max = ImVec2(widgetPos.x + dataWidth + 50, widgetPos.y + fftHeight + 10);
args.lowFreq = lowerFreq;
args.highFreq = upperFreq;
args.freqToPixelRatio = horizScale;
args.pixelToFreqRatio = viewBandwidth / (double)dataWidth;
args.window = window;
onFFTRedraw.emit(args);
// X Axis
window->DrawList->AddLine(ImVec2(widgetPos.x + 50, widgetPos.y + fftHeight + 10),
ImVec2(widgetPos.x + dataWidth + 50, widgetPos.y + fftHeight + 10),
@@ -182,8 +192,6 @@ namespace ImGui {
window->DrawList->AddLine(ImVec2(widgetPos.x + 50, widgetPos.y + 9),
ImVec2(widgetPos.x + 50, widgetPos.y + fftHeight + 9),
text, 1.0);
}
void WaterFall::drawWaterfall() {