SeanArchibald / scale-workshop

Design microtonal scales and play them in your web browser. Export your scales for use with VST instruments. Convert Scala files to various tuning formats.
https://sevish.com/scaleworkshop/
146 stars 23 forks source link

adjusted modify_rotate to preserve nonlinear scale data #158

Closed vsicurella closed 2 years ago

vsicurella commented 2 years ago

Fix for #140

Instead of transposing in-place, we start transposing on the line after the new root through the equave. The transposed equave becomes the degree by which you can use to invert the rotation. Then we cycle back to the beginning of the scale and transpose up to the new root. Then we push the original equave to the end of the scale.

vsicurella commented 2 years ago

no worries, they were in there previously, but since the sorting issue is resolved I don't think they're needed anymore.