Skip to content

Instantly share code, notes, and snippets.

@NHQ
Last active August 29, 2015 14:19
Show Gist options
  • Save NHQ/2baf1a3a04afff102ed1 to your computer and use it in GitHub Desktop.
Save NHQ/2baf1a3a04afff102ed1 to your computer and use it in GitHub Desktop.
requirebin sketch
// twitter.com/johnnyscript
// soundcloud.com/johnnyscript
// soundcloud.com/folkstack
master = new webkitAudioContext
jsynth = require('jsynth')
nvelope = require('jmod')
sync = require('jsynth-sync')
oz = require('oscillators')
jdelay = require('jdelay')
sine = oz.sine
saw = oz.saw
sr = master.sampleRate
bf = 444
delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .767, .367)
delay2 = jdelay(Math.floor(sr * (60 / 72) * 2, .99, .867))
attack = [[0,-.5], [0,6], [1,2]]
release = [[1,2], [1,0], [1, 0]]
durations = [.05, .2]
zamod = {}
zamod.curves = [attack, release];
zamod.durations = durations;
generators = [];
generators0 = [];
generators1 = [];
generators2 = [];
timer = sync(72 / 3, 44100)
t = timer.on(1/16, function(ti, b){
var zod = zamod
zod.durations[0] = .02
zod.durations[1] = .07
var mod = nvelope(zod);
var synth = function(t){
return (oz.sine(t, (888 * 2) * (16 - b%12)) + oz.sine(t, .667 * (Math.pow(888 * 2, 5/12)) * (16 - b%12))) * mod.envelope(t - ti)
}
if(b%12){
generators.push(synth)
if(b>2) generators.shift()
}
})
t0 = timer.on(2, function(ti, b){
var mod = nvelope(zamod);
var synth = function(t){
return sine(t, 888) * mod.envelope(t - ti)
}
generators0.push(synth)
if(b>2) generators0.shift()
})
t1 = timer.on(2, function(ti, b){
var zod = zamod
zod.durations[0] = .2
zod.durations[1] = (60 / 72 / 3) - .2
var mod = nvelope(zod);
// b = (b * 1.667)
var synth = function(t){
return (oz.square(t, 222) * mod.envelope(t - ti))
}
generators1.push(synth)
if(b>2) generators1.shift()
})
t2 = timer.on(1/4, function(ti, b){
var mod = nvelope(zamod);
var fqs = [444, 444 * 3 / 2, 444, 444 / 3 * 2, 444, 444 * 2 / 3, 444 * 3 / 2, 444 * 2, 444 * 2, 444 * 4]
var f = fqs[(b%fqs.length)]
if(!(b%16)%3) f*=2
var synth = function(t){
return (saw(t, f) * mod.envelope(t - ti))
}
generators2.push(synth)
if(b>2) generators2.shift()
})
synth = function(t){
timer.tick.call(timer, t)
var s = 0
s += generators.reduce(function(p,e,i,d){
return p + e(t)
}, 0)
s += generators0.reduce(function(p,e,i,d){
return p + e(t)
}, 0)
s += generators1.reduce(function(p,e,i,d){
return p + e(t)
}, 0)
s += generators2.reduce(function(p,e,i,d){
return p + e(t)
}, 0)
return delay(s)
}
dsp = jsynth(master, synth)
dsp.connect(master.destination)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 8, .767, .367)
},4212)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 32, .767, .367)
},9633)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 3, .767, .367)
},3869)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .767, .367)
},21528)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 3, .767, .367)
},13159)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2, .767, .367)
},7646)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .767, .367)
},8885)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2, .767, .367)
},15034)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2 / 2, .767, .367)
},15071)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2 / 2 / 2, .767, .367)
},10160)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2 / 2 / 2, .767, .667)
},15234)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .767, .667)
},14496)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2 / 2 / 2, .767, .667)
},10410)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .767, .667)
},454848)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .767, .167)
},14520)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2, .767, .167)
},5738)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2 / 2, .767, .167)
},94812)
setTimeout(function(){synth = function(t){
timer.tick.call(timer, t)
var s = 0
t += Math.floor(sr * 60 / 72 / 3) / 4
s += generators.reduce(function(p,e,i,d){
return p + e(t)
}, 0)
s += generators0.reduce(function(p,e,i,d){
return p + e(t)
}, 0)
s += generators1.reduce(function(p,e,i,d){
return p + e(t)
}, 0)
s += generators2.reduce(function(p,e,i,d){
return p + e(t)
}, 0)
return delay(s)
}},15944)
setTimeout(function(){synth = function(t){
timer.tick.call(timer, t)
var s = 0
t += Math.floor(sr * 60 / 72 / 3) / 2
s += generators.reduce(function(p,e,i,d){
return p + e(t)
}, 0)
s += generators0.reduce(function(p,e,i,d){
return p + e(t)
}, 0)
s += generators1.reduce(function(p,e,i,d){
return p + e(t)
}, 0)
s += generators2.reduce(function(p,e,i,d){
return p + e(t)
}, 0)
return delay(s)
}},2685)
setTimeout(function(){synth = function(t){
timer.tick.call(timer, t)
var s = 0
t += Math.floor(sr * 60 / 72 / 3) / 8
s += generators.reduce(function(p,e,i,d){
return p + e(t)
}, 0)
s += generators0.reduce(function(p,e,i,d){
return p + e(t)
}, 0)
s += generators1.reduce(function(p,e,i,d){
return p + e(t)
}, 0)
s += generators2.reduce(function(p,e,i,d){
return p + e(t)
}, 0)
return delay(s)
}},19649)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2 / 2, .767, .567)
},6259)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2, .767, .567)
},5548)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2, .767, .567)
},5358)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2, .767, .567)
},9684)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2, .767, .567)
},4607)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2, .767, .567)
},5229)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .767, .567)
},5421)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2, .767, .567)
},4721)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2 / 2, .767, .567)
},4689)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2, .767, .567)
},4772)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .767, .567)
},100019)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2, .767, .767)
},15790)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .767, .967)
},13530)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .767, .767)
},3794)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .767, .567)
},11694)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2 / 2, .767, .567)
},20023)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2, .767, .567)
},20830)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .767, .967)
},8032)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .767, .567)
},21310)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .767, .567)
},14926)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .767, .967)
},45395)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 * 2, .867, .967)
},9575)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 * 2, .867, .567)
},2741)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 * 2, .867, .567)
},2843)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 * 2, .867, .567)
},104579)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .867, .567)
},7054)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .867, .267)
},13140)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2, .867, .267)
},8043)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .867, .467)
},11191)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .667, .567)
},1260614)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72, .667, .967)
},13645)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 2, .667, .967)
},4473)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 8, .667, .967)
},7164)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 8, .367, .967)
},2684)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 8, .167, .967)
},3004)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .167, .967)
},14552)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .167, 1.467)
},16312)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .167, 1.167)
},8718)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .267, 1.167)
},75039)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 3) + sr * 60 / 72 / 16, .267, 1.167)
},25622)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 3) + sr * 60 / 72 / 3 / 16, .267, 1.167)
},9974)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 6) + sr * 60 / 72 / 16, .267, 1.167)
},4888)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 4) + sr * 60 / 72 / 16, .267, 1.167)
},5824)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72)) + sr * 60 / 72 / 16, .267, 1.167)
},5014)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .267, 1.167)
},103132)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .667, 1.167 / 2)
},80090)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2 / 2, .767, .45)
},40232)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .867, .75)
},69337)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .167, .95)
},15297)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .967, .95)
},12499)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .767, .95)
},62343)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2 / 2 / 2, .167, .25)
},35753)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .002, .95)
},44552)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .002, .95) * 10
},6077)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .002, .95)
},6242)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .002, .95) * 10
},2210)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .002, .95)
},8936)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .002, .95) * 10
},2086)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .002, .95)
},5434)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .002, .95) * 10
},2805)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .002, .95)
},4194)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .002, .95) * 2
},2248)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .002, .95)
},25142)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 * 10, .002, .95)
},12501)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 * 8, .002, .95)
},7294)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 * 8, .902, .95)
},14055)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 * 4, .902, .75)
},11647)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 * 6, .902, .75)
},11493)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 * 2, .902, .75)
},23834)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 64, .302, .75)
},34722)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 128, .302, .75)
},15264)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 128, .602, .75)
},19529)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72)) + sr * 60 / 72 / 16 / 128, .602, .75)
},18564)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) * 2) + sr * 60 / 72 / 16 / 128, .602, .75)
},53320)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72)) + sr * 60 / 72 / 16 / 128, .602, .75)
},18341)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72)) + sr * 60 / 72 / 16, .602, .75)
},9375)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72)) + sr * 60 / 72 / 16 / 2, .602, .75)
},10999)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 4) + sr * 60 / 72 / 16, .602, .75)
},58259)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 4) + sr * 60 / 72 / 16 * 2, .602, .75)
},6181)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 4) + sr * 60 / 72 / 16 * 3, .602, .75)
},6482)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 4) + sr * 60 / 72 / 3, .602, .75)
},3200)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 4) + sr * 60 / 72 / 3/ 16, .602, .75)
},8791)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 4) + sr * 60 / 72 / 3/ 2, .602, .75)
},3876)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 4) + sr * 60 / 72 / 3/ 2 / 2, .602, .75)
},3707)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 3/ 2 / 2, .602, .75)
},1178)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 3) + sr * 60 / 72 / 3/ 2 / 2, .602, .75)
},6290)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 6) + sr * 60 / 72 / 3/ 2 / 2, .602, .75)
},6006)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 1.5) + sr * 60 / 72 / 3/ 2 / 2, .602, .75)
},60586)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 1.5 / 3) + sr * 60 / 72 / 3/ 2 / 2, .602, .75)
},4878)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 1.5 * 3 / 2) + sr * 60 / 72 / 3/ 2 / 2, .602, .75)
},4135)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 1.5) + sr * 60 / 72 / 3/ 2 / 2, .602, .75)
},21160)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 1.5 / 3) + sr * 60 / 72 / 3/ 2 / 2, .602, .75)
},33620)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 1.5) + sr * 60 / 72 / 3/ 2 / 2, .602, .75)
},31424)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 1.5 / 3) + sr * 60 / 72 / 3/ 2 / 2, .602, .75)
},37372)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .602, .55)
},50157)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2 / 2, .602, .55)
},25110)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2, .702, .65)
},507)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2, .702, .65)
},25)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2, .702, .65)
},29)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16 / 2, .702, .65)
},17973)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .702, .95)
},501)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .702, .95)
},31)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .702, .95)
},30)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .702, .95)
},31)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .702, .95)
},30)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .702, .95)
},34)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .702, .95)
},42)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .702, .95)
},18)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .702, .95)
},29)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .702, .95)
},38)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .702, .95)
},23)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .702, .95)
},31)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .702, .95)
},41)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .702, .95)
},43381)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 1.5 / 3) + sr * 60 / 72 / 3 / 2 / 2, .502, .55)
},23266)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 1.5 / 3) + sr * 60 / 72 / 3 / 2 / 2, .502, .95)
},20062)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 1.5 / 3 / 3) + sr * 60 / 72 / 3 / 2 / 2, .502, .95)
},11085)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 1.5 / 3) + sr * 60 / 72 / 3, .502, .95)
},35063)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 1.5 / 3) + sr * 60 / 72 / 3, .902, .75)
},50274)
setTimeout(function(){delay = function(s){return s}//jdelay(Math.floor(sr * (60 / 72) / 1.5 / 3) + sr * 60 / 72 / 3, .902, .75)
},4844687)
setTimeout(function(){delay = function(s){return 0}//jdelay(Math.floor(sr * (60 / 72) / 1.5 / 3) + sr * 60 / 72 / 3, .902, .75)
},55954868)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 1.5 / 3) + sr * 60 / 72 / 3, .902, .75)
},106288)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .902, .75)
},60734)
setTimeout(function(){delay = function(){return 0}// jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .902, .75)
},38568101)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .902, .75)
},7445)
setTimeout(function(){delay = function(s){return 0}//jdelay(Math.floor(sr * (60 / 72) / 1.5 / 3) + sr * 60 / 72 / 3, .902, .75)
},3208027)
setTimeout(function(){delay = jdelay(Math.floor(sr * (60 / 72) / 2) + sr * 60 / 72 / 16, .902, .75)
},68094617)
setTimeout(function(){dsp.connect(master.destination)},14231)
require=function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({jsynth:[function(require,module,exports){module.exports=function(context,fn,bufSize){if(typeof context==="function"){fn=context;context=new webkitAudioContext}if(!bufSize)bufSize=4096;var self=context.createScriptProcessor(bufSize,1,1);self.fn=fn;var tt=0;var ii=0;const rate=context.sampleRate;self.i=self.t=0;window._SAMPLERATE=self.sampleRate=self.rate=context.sampleRate;self.duration=Infinity;self.recording=false;self.onaudioprocess=function(e){var output=e.outputBuffer.getChannelData(0),input=e.inputBuffer.getChannelData(0);self.tick(output,input)};self.tick=function(output,input){for(var i=0;i<output.length;i+=1){tt=ii/rate;ii=ii+1;output[i]=self.fn(tt,ii,input[i])}return output};self.stop=function(){self.disconnect();self.playing=false;if(self.recording){}};self.play=function(opts){if(self.playing)return;self.connect(self.context.destination);self.playing=true;return};self.record=function(){};self.reset=function(){self.i=self.t=0};self.createSample=function(duration){self.reset();var buffer=self.context.createBuffer(1,duration,self.context.sampleRate);var blob=buffer.getChannelData(0);self.tick(blob);return buffer};return self};function mergeArgs(opts,args){Object.keys(opts||{}).forEach(function(key){args[key]=opts[key]});return Object.keys(args).reduce(function(acc,key){var dash=key.length===1?"-":"--";return acc.concat(dash+key,args[key])},[])}function signed(n){if(isNaN(n))return 0;var b=Math.pow(2,15);return n>0?Math.min(b-1,Math.floor(b*n-1)):Math.max(-b,Math.ceil(b*n-1))}},{}]},{},[]);require=function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){module.exports=function(pts){return function(t){for(var a=pts;a.length>1;a=b){for(var i=0,b=[],j;i<a.length-1;i++){for(b[i]=[],j=1;j<a[i].length;j++){b[i][j]=a[i][j]*(1-t)+a[i+1][j]*t}}}return a[0][1]}}},{}],2:[function(require,module,exports){var amod=require("./amod.js");var tnorm=require("normalize-time");module.exports=function(pts,durs){pts=pts.map(amod);var t=0;var totalDuration=durs.reduce(function(e,i){return e+i},0);var tdNormFN=tnorm(t,totalDuration);var s=0;var end=t+totalDuration;var durFNS=durs.map(function(e,i){var x=tnorm(t+s,e);s+=e;return x});var dp=0;var durpercent=durs.map(function(e,i){var x=e/totalDuration+dp;dp+=e/totalDuration;return x});var tn,n,i,v=0,fn=0;var envelope=function(t){tn=tdNormFN(t);if(0>tn||tn>1)return 0;fn=durpercent.reduce(function(p,e,i,d){return(d[i-1]||0)<=tn&&tn<=e?i:p},0);v=pts[fn](durFNS[fn](t));return v};return envelope;function xenvelope(t,sustain){tn=tdNormFN(t);if(0>=tn||tn>=1)return 0;if(tn>durpercent[fn])fn=fn+1>pts.length-1?0:fn+1;v=pts[fn](durFNS[fn](t));return v}}},{"./amod.js":1,"normalize-time":3}],3:[function(require,module,exports){module.exports=function(start,dur,min,max){if(!min)min=0;if(!max)max=1;var end=start+dur;var d=end-start;var r=max-min;return function(time){x=min+(time-start)*r/d;if(x>1){if(time<end)x=Number("."+x.toString().split(".").join(""))}return x}}},{}],jmod:[function(require,module,exports){var nvelope=require("nvelope");module.exports=function(params){var envelope=nvelope(params.curves,params.durations);var sustain,cutoff;if(params.sustain){if(Object.prototype.toString.call(params.sustain)==="[object Object]"){console.log("ehll;");var dur=params.sustain.durations.reduce(function(e,i){return e+i},0);var env=nvelope(params.sustain.curves,params.sustain.durations);var diff=undefined;sustain=function(t){if(diff===undefined)diff=Math.abs(t);t=t-diff;return env(t%dur)}}else if(Array.isArray(params.sustain)){var td=params.durations.reduce(function(e,i){return e+i},0);var xd=params.durations.slice(params.sustain[0],params.sustain[0]+params.sustain.length);var sd=xd.reduce(function(e,i){return e+i},0);var start=params.durations.slice(0,params.sustain[0]).reduce(function(e,i){return e+i},0);var diff=undefined;sustain=function(t){if(t<start)return envelope(t);else{if(diff===undefined)diff=Math.abs(t);t=t-diff;return envelope(start+t%sd)}}}else if(!isNaN(params.sustain)){sustain=function(){return params.sustain}}}return{envelope:envelope,sustain:sustain}}},{nvelope:2}]},{},[]);require=function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){function EventEmitter(){this._events=this._events||{};this._maxListeners=this._maxListeners||undefined}module.exports=EventEmitter;EventEmitter.EventEmitter=EventEmitter;EventEmitter.prototype._events=undefined;EventEmitter.prototype._maxListeners=undefined;EventEmitter.defaultMaxListeners=10;EventEmitter.prototype.setMaxListeners=function(n){if(!isNumber(n)||n<0||isNaN(n))throw TypeError("n must be a positive number");this._maxListeners=n;return this};EventEmitter.prototype.emit=function(type){var er,handler,len,args,i,listeners;if(!this._events)this._events={};if(type==="error"){if(!this._events.error||isObject(this._events.error)&&!this._events.error.length){er=arguments[1];if(er instanceof Error){throw er}throw TypeError('Uncaught, unspecified "error" event.')}}handler=this._events[type];if(isUndefined(handler))return false;if(isFunction(handler)){switch(arguments.length){case 1:handler.call(this);break;case 2:handler.call(this,arguments[1]);break;case 3:handler.call(this,arguments[1],arguments[2]);break;default:len=arguments.length;args=new Array(len-1);for(i=1;i<len;i++)args[i-1]=arguments[i];handler.apply(this,args)}}else if(isObject(handler)){len=arguments.length;args=new Array(len-1);for(i=1;i<len;i++)args[i-1]=arguments[i];listeners=handler.slice();len=listeners.length;for(i=0;i<len;i++)listeners[i].apply(this,args)}return true};EventEmitter.prototype.addListener=function(type,listener){var m;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events)this._events={};if(this._events.newListener)this.emit("newListener",type,isFunction(listener.listener)?listener.listener:listener);if(!this._events[type])this._events[type]=listener;else if(isObject(this._events[type]))this._events[type].push(listener);else this._events[type]=[this._events[type],listener];if(isObject(this._events[type])&&!this._events[type].warned){var m;if(!isUndefined(this._maxListeners)){m=this._maxListeners}else{m=EventEmitter.defaultMaxListeners}if(m&&m>0&&this._events[type].length>m){this._events[type].warned=true;console.error("(node) warning: possible EventEmitter memory "+"leak detected. %d listeners added. "+"Use emitter.setMaxListeners() to increase limit.",this._events[type].length);if(typeof console.trace==="function"){console.trace()}}}return this};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.once=function(type,listener){if(!isFunction(listener))throw TypeError("listener must be a function");var fired=false;function g(){this.removeListener(type,g);if(!fired){fired=true;listener.apply(this,arguments)}}g.listener=listener;this.on(type,g);return this};EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events||!this._events[type])return this;list=this._events[type];length=list.length;position=-1;if(list===listener||isFunction(list.listener)&&list.listener===listener){delete this._events[type];if(this._events.removeListener)this.emit("removeListener",type,listener)}else if(isObject(list)){for(i=length;i-->0;){if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}}if(position<0)return this;if(list.length===1){list.length=0;delete this._events[type]}else{list.splice(position,1)}if(this._events.removeListener)this.emit("removeListener",type,listener)}return this};EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener){if(arguments.length===0)this._events={};else if(this._events[type])delete this._events[type];return this}if(arguments.length===0){for(key in this._events){if(key==="removeListener")continue;this.removeAllListeners(key)}this.removeAllListeners("removeListener");this._events={};return this}listeners=this._events[type];if(isFunction(listeners)){this.removeListener(type,listeners)}else{while(listeners.length)this.removeListener(type,listeners[listeners.length-1])}delete this._events[type];return this};EventEmitter.prototype.listeners=function(type){var ret;if(!this._events||!this._events[type])ret=[];else if(isFunction(this._events[type]))ret=[this._events[type]];else ret=this._events[type].slice();return ret};EventEmitter.listenerCount=function(emitter,type){var ret;if(!emitter._events||!emitter._events[type])ret=0;else if(isFunction(emitter._events[type]))ret=1;else ret=emitter._events[type].length;return ret};function isFunction(arg){return typeof arg==="function"}function isNumber(arg){return typeof arg==="number"}function isObject(arg){return typeof arg==="object"&&arg!==null}function isUndefined(arg){return arg===void 0}},{}],"jsynth-sync":[function(require,module,exports){var emitter=require("events").EventEmitter;module.exports=sync;var $=module.exports;function sync(bpm,sampleRate){if(!(this instanceof sync))return new sync(bpm,sampleRate);this.bpm=bpm;this.beatsPerSecond=bpm/60;this.sampleRate=sampleRate;this.spb=Math.round(sampleRate/this.beatsPerSecond);this.s=0;this.t=0;this.index=[];this.beatIndex=new Array}$.prototype.clearAll=function(bpm,samplerate){this.index=this.index.map(function(){return undefined})};$.prototype.tick=function(t,i){++this.s;for(var n=0;n<this.index.length;n++){if(this.index[n])this.index[n](t,i,this.s)}};$.prototype.off=function(i){this.index.splice(i,1,undefined)};$.prototype.on=function(beats,fn){var i=Math.ceil(this.spb*beats);var l=this.index.length;var self=this;var off=function(){self.off(l)};var delta=0;var skipNext=false;var skip=false;function swing(beat){delta=Math.abs(Math.floor(self.spb*beat));skipNext=beat===0?false:true}var emit=new emitter;emit.on("stop",off);this.index.push(function(b,fn,beats,off){return function(t,a,f){if(f%(i+delta)==0){if(skip){skip=false;return}if(skipNext){skipNext=false;skip=true;if(delta>=i){skip=false}}fn.apply(fn,[t,++b,off,swing]);emit.emit("beat",b)}}}(0,fn,beats,off));return emit};function amilli(t){return[Math.floor(t),t%1*1e3]}},{events:1}]},{},[]);require=function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({oscillators:[function(require,module,exports){var OZ=module.exports;var tau=Math.PI*2;OZ.sine=sine;OZ.saw=saw;OZ.saw_i=saw_i;OZ.triangle=triangle;OZ.triangle_s=triangle_s;OZ.square=square;function sine(t,f){return Math.sin(t*tau*f)}function saw(t,f){var n=t%(1/f)*f%1;return-1+2*n}function saw_i(t,f){var n=t%(1/f)*f%1;return 1-2*n}function triangle(t,f){var n=t%(1/f)*f%1;return n<.5?-1+2*(2*n):1-2*(2*n)}function triangle_s(t,f){var n=t%(1/f)*f%1;var s=Math.abs(Math.sin(t));return n<s?-1+2*(2*(n/s)):1-2*(2*(n/s))}function square(t,f){return t%(1/f)*f%1>.5?1:-1}},{}]},{},[]);require=function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){module.exports=function(obj,fn){var f=function(){if(typeof fn!=="function")return;return fn.apply(obj,arguments)};function C(){}C.prototype=Object.getPrototypeOf(obj);f.__proto__=new C;Object.getOwnPropertyNames(Function.prototype).forEach(function(key){if(f[key]===undefined){f.__proto__[key]=Function.prototype[key]}});Object.getOwnPropertyNames(obj).forEach(function(key){f[key]=obj[key]});return f}},{}],jdelay:[function(require,module,exports){var funstance=require("funstance");module.exports=function(delay,feedback,mix,bufferSize){var delay=Math.floor(delay);var feedback=feedback;var mix=mix;var bufferSize=bufferSize||delay*2;if(bufferSize<delay*2)bufferSize=delay*2;var d=new Delay(delay,feedback,mix,bufferSize);var fn=funstance(d,Sample);return fn;function Delay(delay,feedback,mix,bufferSize){this.feedback=feedback;this.mix=mix;this.delay=delay;this.buffer=new Float32Array(bufferSize);this.writeOffset=0;this.endPoint=this.delay*2;this.readOffset=this.delay+1;this.readZero=0}function Sample(sample,_delay,feedback,mix){var s=sample;if(feedback)this.feedback=feedback;if(mix)this.mix=mix;if(_delay&&_delay!==this.delay){_delay=Math.max(0,Math.floor(_delay));if(_delay*2>this.buffer.length){var nb=new Float32Array(_delay*2);nb.set(this.buffer,0);this.buffer=nb}this.delay=_delay;this.endPoint=this.delay*2}if(this.readOffset>=this.endPoint)this.readOffset=0;s=this.buffer[this.readOffset];var write=sample+s*this.feedback;this.buffer[this.writeOffset]=write;this.writeOffset++;this.readOffset++;if(this.writeOffset>=this.endPoint)this.writeOffset=0;return(sample+s)*this.mix}}},{funstance:1}]},{},[]);master=new webkitAudioContext;jsynth=require("jsynth");nvelope=require("jmod");sync=require("jsynth-sync");oz=require("oscillators");jdelay=require("jdelay");sine=oz.sine;saw=oz.saw;sr=master.sampleRate;bf=444;delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.767,.367);delay2=jdelay(Math.floor(sr*(60/72)*2,.99,.867));attack=[[0,-.5],[0,6],[1,2]];release=[[1,2],[1,0],[1,0]];durations=[.05,.2];zamod={};zamod.curves=[attack,release];zamod.durations=durations;generators=[];generators0=[];generators1=[];generators2=[];timer=sync(72/3,44100);t=timer.on(1/16,function(ti,b){var zod=zamod;zod.durations[0]=.02;zod.durations[1]=.07;var mod=nvelope(zod);var synth=function(t){return(oz.sine(t,888*2*(16-b%12))+oz.sine(t,.667*Math.pow(888*2,5/12)*(16-b%12)))*mod.envelope(t-ti)};if(b%12){generators.push(synth);if(b>2)generators.shift()}});t0=timer.on(2,function(ti,b){var mod=nvelope(zamod);var synth=function(t){return sine(t,888)*mod.envelope(t-ti)};generators0.push(synth);if(b>2)generators0.shift()});t1=timer.on(2,function(ti,b){var zod=zamod;zod.durations[0]=.2;zod.durations[1]=60/72/3-.2;var mod=nvelope(zod);var synth=function(t){return oz.square(t,222)*mod.envelope(t-ti)};generators1.push(synth);if(b>2)generators1.shift()});t2=timer.on(1/4,function(ti,b){var mod=nvelope(zamod);var fqs=[444,444*3/2,444,444/3*2,444,444*2/3,444*3/2,444*2,444*2,444*4];var f=fqs[b%fqs.length];if(!(b%16)%3)f*=2;var synth=function(t){return saw(t,f)*mod.envelope(t-ti)};generators2.push(synth);if(b>2)generators2.shift()});synth=function(t){timer.tick.call(timer,t);var s=0;s+=generators.reduce(function(p,e,i,d){return p+e(t)},0);s+=generators0.reduce(function(p,e,i,d){return p+e(t)},0);s+=generators1.reduce(function(p,e,i,d){return p+e(t)},0);s+=generators2.reduce(function(p,e,i,d){return p+e(t)},0);return delay(s)};dsp=jsynth(master,synth);dsp.connect(master.destination);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/8,.767,.367)},4212);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/32,.767,.367)},9633);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/3,.767,.367)},3869);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.767,.367)},21528);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/3,.767,.367)},13159);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2,.767,.367)},7646);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.767,.367)},8885);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2,.767,.367)},15034);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2/2,.767,.367)},15071);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2/2/2,.767,.367)},10160);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2/2/2,.767,.667)},15234);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.767,.667)},14496);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2/2/2,.767,.667)},10410);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.767,.667)},454848);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.767,.167)},14520);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2,.767,.167)},5738);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2/2,.767,.167)},94812);setTimeout(function(){synth=function(t){timer.tick.call(timer,t);var s=0;t+=Math.floor(sr*60/72/3)/4;s+=generators.reduce(function(p,e,i,d){return p+e(t)},0);s+=generators0.reduce(function(p,e,i,d){return p+e(t)},0);s+=generators1.reduce(function(p,e,i,d){return p+e(t)},0);s+=generators2.reduce(function(p,e,i,d){return p+e(t)},0);return delay(s)}},15944);setTimeout(function(){synth=function(t){timer.tick.call(timer,t);var s=0;t+=Math.floor(sr*60/72/3)/2;s+=generators.reduce(function(p,e,i,d){return p+e(t)},0);s+=generators0.reduce(function(p,e,i,d){return p+e(t)},0);s+=generators1.reduce(function(p,e,i,d){return p+e(t)},0);s+=generators2.reduce(function(p,e,i,d){return p+e(t)},0);return delay(s)}},2685);setTimeout(function(){synth=function(t){timer.tick.call(timer,t);var s=0;t+=Math.floor(sr*60/72/3)/8;s+=generators.reduce(function(p,e,i,d){return p+e(t)},0);s+=generators0.reduce(function(p,e,i,d){return p+e(t)},0);s+=generators1.reduce(function(p,e,i,d){return p+e(t)},0);s+=generators2.reduce(function(p,e,i,d){return p+e(t)},0);return delay(s)}},19649);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2/2,.767,.567)},6259);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2,.767,.567)},5548);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2,.767,.567)},5358);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2,.767,.567)},9684);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2,.767,.567)},4607);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2,.767,.567)},5229);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.767,.567)},5421);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2,.767,.567)},4721);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2/2,.767,.567)},4689);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2,.767,.567)},4772);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.767,.567)},100019);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2,.767,.767)},15790);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.767,.967)},13530);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.767,.767)},3794);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.767,.567)},11694);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2/2,.767,.567)},20023);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2,.767,.567)},20830);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.767,.967)},8032);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.767,.567)},21310);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.767,.567)},14926);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.767,.967)},45395);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16*2,.867,.967)},9575);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16*2,.867,.567)},2741);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16*2,.867,.567)},2843);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16*2,.867,.567)},104579);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.867,.567)},7054);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.867,.267)},13140);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2,.867,.267)},8043);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.867,.467)},11191);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.667,.567)},1260614);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72,.667,.967)},13645);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/2,.667,.967)},4473);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/8,.667,.967)},7164);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/8,.367,.967)},2684);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/8,.167,.967)},3004);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.167,.967)},14552);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.167,1.467)},16312);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.167,1.167)},8718);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.267,1.167)},75039);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/3)+sr*60/72/16,.267,1.167)},25622);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/3)+sr*60/72/3/16,.267,1.167)},9974);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/6)+sr*60/72/16,.267,1.167)},4888);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/4)+sr*60/72/16,.267,1.167)},5824);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72))+sr*60/72/16,.267,1.167)},5014);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.267,1.167)},103132);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.667,1.167/2)},80090);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2/2,.767,.45)},40232);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.867,.75)},69337);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.167,.95)},15297);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.967,.95)},12499);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.767,.95)},62343);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2/2/2,.167,.25)},35753);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.002,.95)},44552);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.002,.95)*10},6077);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.002,.95)},6242);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.002,.95)*10},2210);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.002,.95)},8936);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.002,.95)*10},2086);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.002,.95)},5434);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.002,.95)*10},2805);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.002,.95)},4194);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.002,.95)*2},2248);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.002,.95)},25142);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16*10,.002,.95)},12501);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16*8,.002,.95)},7294);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16*8,.902,.95)},14055);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16*4,.902,.75)},11647);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16*6,.902,.75)},11493);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16*2,.902,.75)},23834);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/64,.302,.75)},34722);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/128,.302,.75)},15264);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/128,.602,.75)},19529);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72))+sr*60/72/16/128,.602,.75)},18564);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)*2)+sr*60/72/16/128,.602,.75)},53320);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72))+sr*60/72/16/128,.602,.75)},18341);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72))+sr*60/72/16,.602,.75)},9375);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72))+sr*60/72/16/2,.602,.75)},10999);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/4)+sr*60/72/16,.602,.75)},58259);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/4)+sr*60/72/16*2,.602,.75)},6181);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/4)+sr*60/72/16*3,.602,.75)},6482);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/4)+sr*60/72/3,.602,.75)},3200);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/4)+sr*60/72/3/16,.602,.75)},8791);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/4)+sr*60/72/3/2,.602,.75)},3876);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/4)+sr*60/72/3/2/2,.602,.75)},3707);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/3/2/2,.602,.75)},1178);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/3)+sr*60/72/3/2/2,.602,.75)},6290);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/6)+sr*60/72/3/2/2,.602,.75)},6006);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/1.5)+sr*60/72/3/2/2,.602,.75)},60586);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/1.5/3)+sr*60/72/3/2/2,.602,.75)},4878);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/1.5*3/2)+sr*60/72/3/2/2,.602,.75)},4135);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/1.5)+sr*60/72/3/2/2,.602,.75)},21160);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/1.5/3)+sr*60/72/3/2/2,.602,.75)},33620);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/1.5)+sr*60/72/3/2/2,.602,.75)},31424);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/1.5/3)+sr*60/72/3/2/2,.602,.75)},37372);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.602,.55)},50157);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2/2,.602,.55)},25110);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2,.702,.65)},507);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2,.702,.65)},25);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2,.702,.65)},29);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16/2,.702,.65)},17973);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.702,.95)},501);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.702,.95)},31);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.702,.95)},30);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.702,.95)},31);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.702,.95)},30);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.702,.95)},34);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.702,.95)},42);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.702,.95)},18);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.702,.95)},29);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.702,.95)},38);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.702,.95)},23);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.702,.95)},31);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.702,.95)},41);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.702,.95)},43381);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/1.5/3)+sr*60/72/3/2/2,.502,.55)},23266);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/1.5/3)+sr*60/72/3/2/2,.502,.95)},20062);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/1.5/3/3)+sr*60/72/3/2/2,.502,.95)},11085);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/1.5/3)+sr*60/72/3,.502,.95)},35063);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/1.5/3)+sr*60/72/3,.902,.75)},50274);setTimeout(function(){delay=function(s){return s}},4844687);setTimeout(function(){delay=function(s){return 0}},55954868);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/1.5/3)+sr*60/72/3,.902,.75)},106288);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.902,.75)},60734);setTimeout(function(){delay=function(){return 0}},38568101);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.902,.75)},7445);setTimeout(function(){delay=function(s){return 0}},3208027);setTimeout(function(){delay=jdelay(Math.floor(sr*(60/72)/2)+sr*60/72/16,.902,.75)},68094617);setTimeout(function(){dsp.connect(master.destination)},14231);
{
"name": "requirebin-sketch",
"version": "1.0.0",
"dependencies": {
"jsynth": "2.8.0",
"jmod": "0.4.0",
"jsynth-sync": "0.14.0",
"oscillators": "1.0.0",
"jdelay": "9.1.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment