mirror of
https://gitlab.com/80486DX2-66/gists
synced 2024-11-08 18:02:23 +05:30
bytebeat-render.js: soft-define math functions
This commit is contained in:
parent
4b1b1c9f74
commit
233a5704ce
@ -42,28 +42,28 @@ const TYPE_FLOATBEAT = 2
|
|||||||
const SELECTED_TYPE = TYPE_BYTEBEAT // feel free to change this
|
const SELECTED_TYPE = TYPE_BYTEBEAT // feel free to change this
|
||||||
|
|
||||||
// for bytebeat
|
// for bytebeat
|
||||||
const int = x => Math.floor(x)
|
var int = x => Math.floor(x)
|
||||||
const abs = Math.abs
|
var abs = Math.abs
|
||||||
const acos = Math.acos
|
var acos = Math.acos
|
||||||
const acosh = Math.acosh
|
var acosh = Math.acosh
|
||||||
const asin = Math.asin
|
var asin = Math.asin
|
||||||
const asinh = Math.asinh
|
var asinh = Math.asinh
|
||||||
const atan = Math.atan
|
var atan = Math.atan
|
||||||
const atanh = Math.atanh
|
var atanh = Math.atanh
|
||||||
const cbrt = Math.cbrt
|
var cbrt = Math.cbrt
|
||||||
const cos = Math.cos
|
var cos = Math.cos
|
||||||
const cosh = Math.cosh
|
var cosh = Math.cosh
|
||||||
const floor = Math.floor
|
var floor = Math.floor
|
||||||
const log = Math.log
|
var log = Math.log
|
||||||
const log2 = Math.log2
|
var log2 = Math.log2
|
||||||
const PI = Math.PI
|
var PI = Math.PI
|
||||||
const pow = Math.pow
|
var pow = Math.pow
|
||||||
const random = Math.random
|
var random = Math.random
|
||||||
const sin = Math.sin
|
var sin = Math.sin
|
||||||
const sinh = Math.sinh
|
var sinh = Math.sinh
|
||||||
const sqrt = Math.sqrt
|
var sqrt = Math.sqrt
|
||||||
const tan = Math.tan
|
var tan = Math.tan
|
||||||
const tanh = Math.tanh
|
var tanh = Math.tanh
|
||||||
|
|
||||||
const generateAudio = t => {
|
const generateAudio = t => {
|
||||||
return t&t>>8
|
return t&t>>8
|
||||||
|
Loading…
Reference in New Issue
Block a user