Skip to content

Improve frequencies graphs: Compute the FFT on more samples at a time #3

@huguesv

Description

@huguesv

Right now the number of samples (441) is based on the small SDL3 audio buffer size on Windows.

We should accumulate more samples (at least twice as much) to run the FFT on to get a larger power spectrum density array, yielding more fine grain results. Right now 441 samples gives us just 257 values, which means each value represents ~85 hertz (22050 / 257).

This should help getting better/more accurate frequencies and frequencies band graphs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions