Skip to content

Calculations with db are wrong #1569

Description

@BernhardJosef

Describe the bug
The result of adding 2 levels is wrong
The result of subtracting 2 levels is wrong

To Reproduce
Level level1 = new Level(1.6, Level.ParseUnit("dB"));
Level level2 = new Level(0.7, Level.ParseUnit("dB"));

Level level3 = level1 - level2;
Level level4 = level1 + level2;

Expected behavior
db additions or subtractions should be executed without any transformations

Additional context
see https://sengpielaudio.com/calculator-db.htm

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpinnedIssues that should not be auto-closed due to inactivity.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions