fix: pitched sample as ir

This commit is contained in:
Felix Roos 2023-10-09 22:49:38 +02:00
parent e59f06ff92
commit 57b166d13a

View File

@ -399,7 +399,7 @@ export const superdough = async (value, deadline, hapDuration) => {
if (Array.isArray(sample)) {
url = sample.data.samples[i % sample.data.samples.length];
} else if (typeof sample === 'object') {
url = Object.values(sample.data.samples)[i & Object.values(sample.data.samples).length];
url = Object.values(sample.data.samples).flat()[i % Object.values(sample.data.samples).length];
}
roomIR = await loadBuffer(url, ac, ir, 0);
}