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

What scale does the y-axis display (showScaleY = true) ? #74

Open
mozzak opened this issue May 6, 2024 · 3 comments
Open

What scale does the y-axis display (showScaleY = true) ? #74

mozzak opened this issue May 6, 2024 · 3 comments

Comments

@mozzak
Copy link

mozzak commented May 6, 2024

Hi there,

questions about the y-scale when

        mode: 6,
        alphaBars: false,
        ansiBands: true,
        barSpace: .5,
        channelLayout: 'single',
        colorMode: 'gradient',
        frequencyScale: 'log',
        gradient: 'classic',
        ledBars: true,
        lumiBars: false,
        maxFreq: 20000,
        minFreq: 25,
        mirror: 0,
        radial: false,
        reflexRatio: 0,
        showBgColor: true,
        showPeaks: true,
        trueLeds: true,
        showScaleY: true,
        minDecibels: -85,
        maxDecibels: 0

I have song that peaks around 0dBFS all the time.

With the given settings above the meter peaks at around -20dB.

I was wondering what exactly the y-axis displays? Is this Peak or like a LUFS ?

How can I configure the scale so it actually displays the actually peak value of like 0dBFS?

Thanks for your help,
Moz

@hvianna
Copy link
Owner

hvianna commented May 8, 2024

It is dBFS, but you're seeing the audio energy distribution by frequency, so the total energy is dispersed across the spectrum and any peak you see is the maximum power of a single frequency. For actual peak measurement we need to analyze the amplitude of the actual audio samples (not split by frequency).

This has been requested here and it's in my plans.

@mozzak
Copy link
Author

mozzak commented May 8, 2024 via email

@TF3RDL
Copy link

TF3RDL commented May 13, 2024

Also unlike my own spectrum analyzer project on CodePen (which doesn't use Web Audio API's built-in FFT), AnalyserNode's FFT output isn't normalized to 0dBFS for pure sine tone at full scale as it certainly doesn't have compensation of gain reduction you get from applying a window function and on top of that, it looks approximately -6dB even more quieter

Whereas my own spectrum analyzer uses custom FFT routine and it is normalized to 0dBFS for full-scale sine wave test tones and does compensate for gain reduction incurred by window functions, much like foobar2000's built-in Spectrum visualization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants