1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2025-05-31 08:31:41 +05:30

bytebeat-render.js: use value 128 as center for unsigned 8-bit audio

This commit is contained in:
2024-07-15 00:01:40 +03:00
parent 83a50dc22a
commit dbc03ae915

View File

@ -81,7 +81,7 @@ function main() {
let lastCorrectSample
switch (SELECTED_TYPE) {
case TYPE_BYTEBEAT:
lastCorrectSample = 127
lastCorrectSample = 128
break
case TYPE_SIGNED_BYTEBEAT:
lastCorrectSample = 0