Instantly share code, notes, and snippets.

View untitled.carbide.md
View untitled.carbide.md
View untitled.carbide.md
View untitled.carbide.md
View cell0.js
document.write("文字表示");
View cell0.js
let flats = ['des','ees','fes','ges','aes','bes','ces'];
let sharps = ['cis','dis','eis','fis','gis','ais','bis'];
var pairz = flats.map(function(note,index) {return [note, sharps[index]]; });
let objectify = a => a.reduce( (o,[k,v]) => (o[k]=v,o), {} );
let pariObject = objectify(pairz);
pariObject.des;