a twelvetone scale generator

With great help from code bro Johnny McI on the jarvas cripting.

This code randomises 12 tones into a structured prime, or original key.

Classical key scales are sequential, linear, determined by the proper intervals.

In conventional twelvetone technique, which I've adopted here, all 12 available notes are randomly arranged in the prime scale. So how to use? Proceed stoically applying the same old interval thinking? Probably not.

This prime can then be transformed three ways: inverted, inverted reverse and reverse, as outlined below. Only the prime and reverse works at the moment.

Twelve-tone technique - get some definitions first.

Inverted intervals

Got it? Reload the page to get some different patterns.

AS 2018