Add implementation of AudioWindowKaiserBessel#485
Open
scrain777 wants to merge 3 commits intoPaulStoffregen:masterfrom
Open
Add implementation of AudioWindowKaiserBessel#485scrain777 wants to merge 3 commits intoPaulStoffregen:masterfrom
scrain777 wants to merge 3 commits intoPaulStoffregen:masterfrom
Conversation
scrain777
commented
Nov 18, 2024
Author
|
I have not tested this code yet. |
Author
Tested with the FFT example on a Teensy 3.5. Works great, although on the sine example the Hanning window has less leakage.... |
Author
|
Sorry, I closed the PR by mistake. |
Author
|
Also tested in a real application on a Teensy 4.1 with audio shield. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements the KaiserBessel window from https://en.wikipedia.org/wiki/Window_function and adds the
computed window to the available windows. The Python script used to generate the windows is included alongside the Perl script used to generate other windows.
KaiserBessel has a shape parameter. I selected one specific value (3) because it was excellent for my application. In particular, I was wanting to minimize the width of the leakage at the -60dB level. The Python script can be trivially modified to implement additional variants of KaiserBessel if that is desired.