Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
methodical music, a collaboration with @NHQ
[
function () {
return function (t, i) {
if (t % 4 > 1) return 0;
var freq = 880;
return Math.abs(1 - t % 1.33) * Math.sin(freq * t * Math.PI);
};
},
function () {
var music = [ 1/8, 11/8, 5/8, 1/8, 7/8, 13/8, 17/8, 3/8, 5/8 ];
return function (t, i) {
var n = music[Math.floor(t % music.length)];
var freq = 440 * Math.pow(2, n / 5);
return Math.abs(1 - t % 1.33) * Math.sin(freq * t * Math.PI);
};
},
function () {
return function () { return 0 }
},
function () {
return function () { return 0 }
},
function () {
return function (t, i){
return Math.abs(1 - t % 1.33) * Math.sin(freq * t * Math.PI)
}
},
function () {
return function (t, i){
if(t % 4 > 2) return 0;
//if(t % 4 > 1) var freq = 1100
var n = Math.floor(t % 12) * 2;
var freq = freq * Math.pow(2, n/12);
return t % .33 * Math.sin(freq * t * Math.PI);
}
},
function () {
return function (t, i){
if(t % 6 > 5.5555) return 0;
var b = (5.5555 - Math.floor(t % 5.5555)) * .2;
return t % b * Math.sin(freq * t * Math.PI);
}
},
function () {
return function () { return 0 }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.