edo.js
Version:
A set of functions for manipulating musical pitches within a given EDO
23 lines (19 loc) • 574 B
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="scripts/raphael.min.js"></script>
<script src="scripts/edo.js"></script>
</head>
<body>
<div id="container" style="width:100%; margin:0 auto; "></div>
</body>
<script>
const divisions = 12
let edo = new EDO(divisions)
let scale = edo.scale([0,2,4,5,7,9,11])
let necklaces = scale.get.common_tone_transpositions().map((trans)=>trans[0])
edo.show.nested_necklaces("container",necklaces,true,1200,70)
</script>
</html>