mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 13:48:34 +00:00
fix: ignore haps that error at getFrequency
This commit is contained in:
parent
539160630d
commit
c7f811e14d
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user