Darn, I have to get in on this.
He left his "notes", good gracious.
"note length = (note frequency)/26.7(100bpm 1/16 note hz)*4(inspect grid value)"
In my own terms,
bpm/26.7/notefrequency
because as bpm increases length also has to increase.
I have done
##942716
CODE
He left his "notes", good gracious.
"note length = (note frequency)/26.7(100bpm 1/16 note hz)*4(inspect grid value)"
In my own terms,
bpm/26.7/notefrequency
because as bpm increases length also has to increase.
I have done
##942716
CODE
Code:
// ==UserScript==
// @name HZ?!
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to hz over the world!
// @author Frank
// @match https://onlinesequencer.net/
// @grant none
// @run-at context-menu
// ==/UserScript==
'use strict'
var typeToHZ = {};
for(var i = 0; i < window.piano.length; i++){
var type = window.piano[i];
typeToHZ[type] = 440 * Math.pow(2, (38 - i) / 12)
}
window.song.addNote = function(note, notOG){
if (note.instrument == 2 && !notOG) {
var length = window.bpm / 26.7 / typeToHZ[note.type];
if (!length) return;
for(var time = note.time; time < note.time + note.length; time += length){
window.song.addNote(new window.Note(window.song, note.type, time, length, 2), true)
}
}
else {
var noteIndex = window.piano.indexOf(note.type);
if(noteIndex != -1){
this.notes.push(note);
this.update(note);
this.moveNote(note, undefined, note.instrument, undefined, note.time, undefined, note.type);
this.updateLoopTime();
}
}
}
Kim Wrote:##878337 + https://js-game.glitch.me + Doesnt take peopel serious if their has badly speling gramer puntuatin