for (let offset = 0; offset < path.length; offset += delta) {
const point = path.getLocationAt(offset).point;
x_path.push(point.x);
y_path.push(point.y);
}
Calculates the point on the path at the given offset.
DTPIL: There is a full featured WebAudioAPI o.O
So you can use your browser to mix music,
while it is mining bitcoins.
const aBuf = aCTX.createBuffer(2, 88200, audioCtx.sampleRate);
aBuf.copyToChannel(x_path,0);
aBuf.copyToChannel(y_path,1);
(Maybe some normalisation, scaling)