Skip to content

Getting 'infinite loop' with turntable #98

@acroyear

Description

@acroyear
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions