Skip to content

Calculations with db are wrong #1569

@BernhardJosef

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions