Skip to content

synthio.midi_to_hz() range should be 0-127 not 1-127 #7999

@jedgarpark

Description

@jedgarpark

CircuitPython version

Adafruit CircuitPython 8.1.0-beta.2-29-g40f1ac180 on 2023-05-12; Metro MIMXRT1011 with IMXRT1011DAE5A
Board ID:metro_m7_1011

Code/REPL

import synthio
synthio.midi_to_hz(0)

Behavior

ValueError: note must be 1-127

Description

Lowest note MIDI controllers send is 0, so when i play that note the ValueError is thrown

Additional information

No response

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions