Tags: mikebharris/music
Tags
Data structure for tempered fretboards now supports diatonic mode and… … shows actual cent and interval values.
Replace generic NewScalaScaleFileFromScale with music.Scale interface Removes the type parameter in favour of accepting the music.Scale interface, which all concrete scale types now implement. Existing callers are unaffected. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Use full float64 precision in TemperedInterval.String() Previously used %.2f which truncated ratios to 2 decimal places, causing significant precision loss when clients convert to cents (e.g. 1.06 instead of 1.0594630943592953 for a 100-cent semitone). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add Scale interface with IntervalStrings() to unify JustScale and Tem… …peredScale Both JustScale and TemperedScale now implement the Scale interface, allowing callers to work with either type without a type switch.
PreviousNext