03-10-2018, 11:06 AM
Thanks for using your coding skills for good! Fixed and cleaned up:
Can I add this to the site?
Code:
var inversePiano = {};
for (i = 0; i < 72; i++) {
inversePiano[piano[i]] = piano[71 - i]
}
for (i = 0; i < song.notes.length; i++) {
n = song.notes[i];
song.moveNote(n, n.instrument, n.instrument, n.time, n.time, n.type, inversePiano[n.type])
song.update(n);
}Can I add this to the site?