This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Finds the largest interval in semitones between consecutive piano notes. | |
Supports both a standard library implementation and an optimized version | |
using the `mido` library (if installed). | |
USAGE: | |
- If `mido` is installed (`pip install mido` or `uv pip install mido`), it will use it automatically. | |
- If `mido` is not available, it falls back to a pure Python implementation. | |
""" |
OlderNewer