delaytime
This commit is contained in:
parent
8d02d4270a
commit
006ce9d1da
3 changed files with 11 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue