surge-synthesizer / tuning-library

Micro-tuning format parsing and frequency finding as a header-only C+ library
https://surge-synth-team.org/tuning-library/
MIT License
83 stars 15 forks source link

Fix a problem with 'wrapepd' KBM files #63

Closed baconpaul closed 1 year ago

baconpaul commented 1 year ago

If a KBM file for a scale of length N referenced a note M > N then we had odd behavior of not extending by an octave, which is what PTQ does in its 'unwrap' mode. So modify that case to auto-unwrap, doing the natrual thing of if you map M > N imply an octave shift for whatever comprises an octave.