const add = gpu.createKernel(function (buffer,wave,offset,fr,channel) {
return buffer[this.thread.x + offset] + wave[Math.trunc(this.thread.x * fr * 2 + channel)] / 96000;
}).setOutput([22000]);
the array lookup into the wave array does not yield correct sound shapes... I need a way to tell gpujs to do a floating point multiplication....