1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2024-11-08 08:54:34 +05:30

bytebeat-render.js: soft-define math functions

This commit is contained in:
Intel A80486DX2-66 2024-07-12 03:13:19 +03:00
parent 4b1b1c9f74
commit 233a5704ce
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -42,28 +42,28 @@ const TYPE_FLOATBEAT = 2
const SELECTED_TYPE = TYPE_BYTEBEAT // feel free to change this
// for bytebeat
const int = x => Math.floor(x)
const abs = Math.abs
const acos = Math.acos
const acosh = Math.acosh
const asin = Math.asin
const asinh = Math.asinh
const atan = Math.atan
const atanh = Math.atanh
const cbrt = Math.cbrt
const cos = Math.cos
const cosh = Math.cosh
const floor = Math.floor
const log = Math.log
const log2 = Math.log2
const PI = Math.PI
const pow = Math.pow
const random = Math.random
const sin = Math.sin
const sinh = Math.sinh
const sqrt = Math.sqrt
const tan = Math.tan
const tanh = Math.tanh
var int = x => Math.floor(x)
var abs = Math.abs
var acos = Math.acos
var acosh = Math.acosh
var asin = Math.asin
var asinh = Math.asinh
var atan = Math.atan
var atanh = Math.atanh
var cbrt = Math.cbrt
var cos = Math.cos
var cosh = Math.cosh
var floor = Math.floor
var log = Math.log
var log2 = Math.log2
var PI = Math.PI
var pow = Math.pow
var random = Math.random
var sin = Math.sin
var sinh = Math.sinh
var sqrt = Math.sqrt
var tan = Math.tan
var tanh = Math.tanh
const generateAudio = t => {
return t&t>>8