X-Git-Url: https://git.r.bdr.sh/rbdr/r.bdr.sh/blobdiff_plain/18fa1c7b863366a2b08dca4cfc11e9ec2b92ebf3..f882abe4187a8fed46962abd2349ec36235f9e82:/jekyll/js/unlimited_pizza/pepperoni.js?ds=sidebyside
diff --git a/jekyll/js/unlimited_pizza/pepperoni.js b/jekyll/js/unlimited_pizza/pepperoni.js
index 9bb27a2..12dca9d 100644
--- a/jekyll/js/unlimited_pizza/pepperoni.js
+++ b/jekyll/js/unlimited_pizza/pepperoni.js
@@ -2,13 +2,13 @@
Class(UnlimitedPizza, "Pepperoni").inherits(Widget)({
INNER_HTML : ' \
-⬤ \
+Record. \
\
\
\
\
@@ -20,8 +20,8 @@ Class(UnlimitedPizza, "Pepperoni").inherits(Widget)({
\
\
',
- PAUSE : '▐▐',
- RECORD : '⬤',
+ PAUSE : 'Pause.',
+ RECORD : 'Record.',
prototype : {
maxSize : 1048576,
recording : false,
@@ -73,16 +73,16 @@ Class(UnlimitedPizza, "Pepperoni").inherits(Widget)({
this._bandPassFilterNode.gain.value = 25;
requestHandler = function bufferFile(ev) {
- var request = event.target;
+ var request = ev.target;
console.log("Reverb loading");
this.context.decodeAudioData(request.response, function(buffer){
console.log("Reverb loaded");
this._convolverNode.buffer = buffer;
- });
+ }.bind(this));
}.bind(this);
request = new XMLHttpRequest();
- request.open('GET', '/reverb.aiff', true);
+ request.open('GET', '/reverb.ogg', true);
request.responseType = 'arraybuffer';
request.addEventListener('load', requestHandler, false);
request.send();