Skip to content

microphone.sound_level() values are too low #114

Closed
@microbit-carlos

Description

@microbit-carlos

Running this programme with the latest CI build and the max value it prints is around 7:

from microbit import *

while True:
    print(microphone.sound_level())
    sleep(10)

Likely from 4f369bb, although I haven't tested the parent commit to confirm if that's the cause.
For reference, the microphone min and max values used by MakeCode for scaling are bit a different:

@dpgeorge could you have a look at this one once you get a chance? I've added it to the 2.1 milestone as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions