fix: pitched sample as ir
This commit is contained in:
parent
e59f06ff92
commit
57b166d13a
1 changed files with 1 additions and 1 deletions
|
|
@ -399,7 +399,7 @@ export const superdough = async (value, deadline, hapDuration) => {
|
||||||
if (Array.isArray(sample)) {
|
if (Array.isArray(sample)) {
|
||||||
url = sample.data.samples[i % sample.data.samples.length];
|
url = sample.data.samples[i % sample.data.samples.length];
|
||||||
} else if (typeof sample === 'object') {
|
} 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);
|
roomIR = await loadBuffer(url, ac, ir, 0);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue