-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting axis limits in 3rd party visualizers for FFT Plot and changing FFT Size #120
Comments
For your first question, take a look inside the constructor for Another solution would be to just use the @danbohus will follow up on your second question. |
Re: axis limits, to separate out this topic from the |
Hello, I tried to increase the fftSize and frameSize within the How do I set my audio as the input data to perform the FFT on? It is not taking the FFT with my current code.
|
I'm curious why changing the code in that constructor didn't result in any actual change... But if you'd like to use the FFT operator directly, for now, look at how the audio stream is transformed in the // Construct overlapping frames of audio samples to operate on
var windowedFrame = this.inAudio.ToByteArray().FrameShift(bytesPerFrame, bytesPerFrameShift, configuration.InputFormat.AvgBytesPerSec);
// Convert the frame to floating point
var frame = windowedFrame.ToFloat(configuration.InputFormat);
// Apply Hanning window
frame = frame.HanningWindow(frameSize); |
I finally got it to work, thank you. I basically imported the |
Hello all, I have 2 relatively, basic questions regarding an FFT plot:
How can I change the FFT size instead of using the default 512? I see the
private readonly int fftSize
in theFastFourierTransform.cs
class, but how can I manually set this value?Also, how do I change the x-axis limits for my 3rd party visualizer chart? I’ve been going through the inheritance hierarchy starting from the
CartesianChartVisualizationObject.cs
class but I can’t seem to find what I need to set the x-axis limits. If someone could point me to where these controls are and explain how they figured out where the location is, I would greatly appreciate it.The text was updated successfully, but these errors were encountered: