mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-20 18:18:32 +00:00
fix: pitched sample as ir
This commit is contained in:
parent
e59f06ff92
commit
57b166d13a
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user