Skip to content

Instantly share code, notes, and snippets.

@caycefischer
Last active January 13, 2020 21:01
Show Gist options
  • Save caycefischer/490b1fd2af7674efb13539bf86ee7dd4 to your computer and use it in GitHub Desktop.
Save caycefischer/490b1fd2af7674efb13539bf86ee7dd4 to your computer and use it in GitHub Desktop.
// https://en.wikipedia.org/wiki/Alpha_scale
// http://www.microtonal-synthesis.com/scale_carlos_alpha.html
var notes = [
// the Alpha scale is generated by dividing a perfect fifth into 9 steps
// with a root of A4 (440hz), a perfect fifth is E4 (659.25hz)
// to get a single step in the Alpha scale, we perform (659.25-440)/9 = 24.36hz
// a major third in the alpha scale is 5 steps: 24.36*5 = 121.8hz
// in this way, we can take any ROOT note in hertz and derive an Alpha scale from it
// Tone.Frequency(440, "hz"), // root A
// Tone.Frequency(513.08, "hz"), // septimal 2nd
// Tone.Frequency(537.44, "hz"), // minor 3rd
// Tone.Frequency(561.8, "hz"), // major 3rd
// Tone.Frequency(610.52, "hz"), // augmented 4th
// Tone.Frequency(659.25, "hz"), // perfect 5th
// Tone.Frequency(732.32, "hz"), // harmonic 7th
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment