Skip to content

AudioFrequencyMeter returns only integer values #16

@MrMarkB

Description

@MrMarkB

getFrequency() method returns a floating point number, but the number is a result of integer division converted to floating point. Hence the return value is always integer albeit in floating point format.

Issue is on line 126 of the source module: frequency = (float)(sampleRate / period);

See discussion at https://forum.arduino.cc/index.php?topic=716159.msg4813625;topicseen#msg4813625

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions