xenharmonic-devs / scale-workshop

Design and visualize microtonal scales and play them in your web browser. Export your scales for use with VST instruments. Convert Scala files to various tuning formats.
MIT License
80 stars 11 forks source link

Optimize computed frequencies #304

Closed frostburn closed 1 year ago

frostburn commented 1 year ago

While computing 128 unique frequencies isn't a huge performance issues it's still up there considering how often the state is updated while editing the scale.

Frequency calculation can be optimized by computing everything within a single equave and multiplying the result over to other frequency ranges. This eliminates costly monzo to frequency conversions.

frostburn commented 1 year ago

Core functionality done: https://github.com/xenharmonic-devs/scale-workshop-core