delaytime

This commit is contained in:
Jade (Rose) Rowland 2025-05-02 23:33:58 -04:00
parent 8d02d4270a
commit 006ce9d1da
3 changed files with 11 additions and 6 deletions

View file

@ -68,3 +68,7 @@ export const _mod = (n, m) => ((n % m) + m) % m;
export const getSoundIndex = (n, numSounds) => {
return _mod(Math.round(nanFallback(n, 0)), numSounds);
};
export function cycleToSeconds(cycle, cps) {
return cycle / cps;
}