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

SW3: Expand cents color scheme #607

Open akselai opened 6 months ago

akselai commented 6 months ago

When selecting "Cents" color scheme, user can input two things:

  1. the edo number (color wheel repeats on every 1\n interval, current color scheme is practically 1edo)
  2. the color phase (which color is 1/1 on?)

This will visualize the approximation strength of an edo against a scale.

frostburn commented 6 months ago

The "Cents" coloring scheme is focused on 1edo, but it is not strictly periodic.

A new builtin should be made for approximation strength viz: https://github.com/xenharmonic-devs/sonic-weave/issues/141

frostburn commented 6 months ago

Meanwhile, here's how you do it manually

ed(53) // Some scale

// Color everything based on 12edo
i => i hsl(360 * i % 1\12, 255, 50)

EDIT: Domain agnostic version i => i hsl(360 * linear(i ~/_ 1\12), 255, 50)