From 6bb7482c3a4609d30ad77ffc0bf22114c40e88ca Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Sat, 30 Dec 2023 16:35:28 +0300 Subject: [PATCH] bytebeat-render.js: remove semicolons at EOLs --- js-programming/bytebeat-render.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js-programming/bytebeat-render.js b/js-programming/bytebeat-render.js index 7402c78..95f5206 100644 --- a/js-programming/bytebeat-render.js +++ b/js-programming/bytebeat-render.js @@ -92,11 +92,11 @@ for (let buffer = 0; t < PRODUCT; buffer++) { let sample = generateAudio(t * FINAL_SAMPLE_RATE_CONVERSION) if (sample.constructor === Array) sample.forEach((sample, index) => { - audioData[CHANNELS * idx + index] = constrainValue(sample); + audioData[CHANNELS * idx + index] = constrainValue(sample) }) else - audioData[idx] = constrainValue(sample); - t++; + audioData[idx] = constrainValue(sample) + t++ } if (t >= PRODUCT) {