diff --git a/packages/draw/pitchwheel.mjs b/packages/draw/pitchwheel.mjs index ced0c579..76978d08 100644 --- a/packages/draw/pitchwheel.mjs +++ b/packages/draw/pitchwheel.mjs @@ -65,7 +65,12 @@ export function pitchwheel({ let shape = []; haps.forEach((hap) => { - const freq = getFrequency(hap); + let freq; + try { + freq = getFrequency(hap); + } catch (err) { + return; + } const angle = freq2angle(freq, root); const [x, y] = circlePos(centerX, centerY, radius, angle); const hapColor = hap.value.color || color;