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

Use logarithmic gain scale in demo plugin #56

Open
dudk opened this issue May 16, 2021 · 0 comments
Open

Use logarithmic gain scale in demo plugin #56

dudk opened this issue May 16, 2021 · 0 comments
Labels
enhancement plugin Issue relates to building Go plugins

Comments

@dudk
Copy link
Member

dudk commented May 16, 2021

Currently demoplugin uses linear scale for gain. It should use a logarithmic scale with proper to-decibel conversion for display label.

Sample code from thread on JUCE forum:

float LinearToDecibel(float linear)
{
   float db;

   if (linear != 0.0f)
     db = 20.0f * log10(linear);
   else
     db = -144.0f;  // effectively minus infinity

   return db;
}
@dudk dudk added enhancement plugin Issue relates to building Go plugins labels May 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement plugin Issue relates to building Go plugins
Projects
None yet
Development

No branches or pull requests

1 participant