initial commit

This commit is contained in:
2026-03-22 03:21:45 +02:00
commit 897fea9f4e
15431 changed files with 2548840 additions and 0 deletions

31
node_modules/mumath/mod.js generated vendored Normal file
View File

@@ -0,0 +1,31 @@
/**
* Looping function for any framesize.
* Like fmod.
*
* @module mumath/loop
*
*/
'use strict';
module.exports = function (value, left, right) {
//detect single-arg case, like mod-loop or fmod
if (right === undefined) {
right = left;
left = 0;
}
//swap frame order
if (left > right) {
var tmp = right;
right = left;
left = tmp;
}
var frame = right - left;
value = ((value + left) % frame) - left;
if (value < left) value += frame;
if (value > right) value -= frame;
return value;
};