wave.js icon indicating copy to clipboard operation
wave.js copied to clipboard

Getting 'infinite loop' with turntable

Open acroyear opened this issue 1 year ago • 0 comments

let i = 0;
        for (const f of ['base', "lows", "mids", "highs"]) {
            wave.addAnimation(new wave.animations.Turntable({
                frequencyBand: f as "base" | "lows" | "mids" | "highs", // this can't be typed?
                lineWidth: 4 - i,
                lineColor: colors[i],
                fillColor: colors[(i + 2) % 4],
                cubeHeight: 10 * i,
                count: 5 * (4 - i),
                rounded: true,
                glow: { strength: 15, color: colors[i] },
                mirroredX: false,
                diameter: 5
            } as ITurntableOptions));
            i++;
        }

this type of code worked fine for glob, arcs, cube, and wave...but for turntable, i'm getting an infinite loop 100% cpu. any ideas what might trigger that? i'll dig around when i have some free time, but just wondering if you had a suggestion where to look in the source code.

acroyear avatar Feb 24 '24 14:02 acroyear