07-09-2018, 10:52 AM
##866274
Quote:var palette = [37, 23];pls dont h8 m8
var dim = [127, 63];
SequencerView.fastGraphics = true;
settings.instrumentColors[undefined] = [255, 0, 0];
$.get('https://onlinesequencer.net/ajax/load.php?id=866248', function(unparsedData) {
data = JSON.parse(unparsedData).data.split(' ').map(x => parseInt(x, 16));
var i = 0,
j = 0;
for (var h = dim[1] - 1; h > -1; h--) {
for (var w = 0; w < dim[0]; w++) {
song.addNote(new Note(song, piano[h], w, 1, palette[+!!(data[i] & 2 ** (7 - j))]));
j++;
if (j == 8 || w == dim[0] - 1) {
j = 0;
i++;
}
}
}
for(x in palette){audioSystem.setInstrumentVolume(palette[x],0)};
})
Kim Wrote:##878337 + https://js-game.glitch.me + Doesnt take peopel serious if their has badly speling gramer puntuatin