Skip to content
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

Implement FFT partitioning to reduce latency #42

Open
SimonG4ELI opened this issue May 13, 2022 · 9 comments
Open

Implement FFT partitioning to reduce latency #42

SimonG4ELI opened this issue May 13, 2022 · 9 comments
Labels
dsp enhancement DSP improvements

Comments

@SimonG4ELI
Copy link

SimonG4ELI commented May 13, 2022

Hi,

I see the frame size is 20ms. If latency and CPU load are not a problem, is there an advantage in using a much bigger frame size, for example 160ms?

@lucianodato
Copy link
Owner

Right, so yeah that's an option if you want better resolution in the lower frequencies at the expense of more latency. Evidently you already know how to change it. I think here would be a good use of exposing these parameters through a config file

@SimonG4ELI
Copy link
Author

How about an extra parameter in the specbleach_adaptive_initialize call?

@lucianodato
Copy link
Owner

Yeah I kinda make sense just for this one. In the future I plan to use a multiresolution fft which would get rid of this issue. Will depend on how efficient my implementation is though

@SimonG4ELI
Copy link
Author

Sounds interesting...

@lucianodato
Copy link
Owner

Do you mind if I change the issue name so it's clear it's a request? To something like Expose frame size configuring possibly through the api

@SimonG4ELI
Copy link
Author

Sure, rename it as you wish

@lucianodato lucianodato changed the title Question: Frame Size Expose frame size configuring possibly through the api May 13, 2022
@lucianodato lucianodato changed the title Expose frame size configuring possibly through the api Expose more key functionality through the api May 13, 2022
@SimonG4ELI
Copy link
Author

Right, so yeah that's an option if you want better resolution in the lower frequencies at the expense of more latency. Evidently you already know how to change it. I think here would be a good use of exposing these parameters through a config file

In my software's filtering I use FFT Partitioning - I'm sure we could use this to reduce latency, for example I can reduce the latency of 128ms down to 4ms.

@lucianodato
Copy link
Owner

Ahh yeah someone el se has mentioned this once. I'll investigate further, this will be for sure useful!

@SimonG4ELI
Copy link
Author

Ahh yeah someone el se has mentioned this once. I'll investigate further, this will be for sure useful!

Uses more CPU but at these sample rates will not be an issue.

@lucianodato lucianodato changed the title Expose more key functionality through the api Implement FFT partitioning to reduce latency May 14, 2022
@lucianodato lucianodato added the dsp enhancement DSP improvements label May 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dsp enhancement DSP improvements
Projects
None yet
Development

No branches or pull requests

2 participants