Lovely piece of work. I can definitely use this, even if it's only for playing at being a minimalist composer.
One teeny thing, perhaps I don't have the latest version but if I'm reading it correctly the Note Start array is missing an F#, which sets the index out for all following scales (e.g. A# natural minor is all white notes
). Easy fix though, even for those of us who know nothing about JS.
Steve