I'm not primarily JS, so I may be making a stupid here, apologies if that is the case.
In the code:
function loadeightoheightclap("http://thomasmurphydesign.com/dubstepclap.wav") {
var request = new XMLHttpRequest();
request.open('GET', "http://thomasmurphydesign.com/dubstepclap.wav", true);
request.responseType = 'arraybuffer';
request.onload = function() {
context.decodeAudioData(request.response, function(buffer) {
eightoheightclapbuffer = buffer;
}, onError);
}
request.send();
}
The URL in that's the argument of function loadeightoheightclap is throwing a syntax error. It's a valid URL, and there's no syntax error when that URL is used as an argument of request.open later.
How do I need to modify the argument to remove the error?