mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-21 02:28:34 +00:00
update internal reverb param names
This commit is contained in:
parent
a4386a617a
commit
508af7eb72
@ -108,11 +108,11 @@ function getDelay(orbit, delaytime, delayfeedback, t) {
|
|||||||
|
|
||||||
let reverbs = {};
|
let reverbs = {};
|
||||||
|
|
||||||
function getReverb(orbit, duration = 2, fade, revlp, revdim) {
|
function getReverb(orbit, duration = 2, fade, lp, dim) {
|
||||||
// If no reverb has been created for a given orbit, create one
|
// If no reverb has been created for a given orbit, create one
|
||||||
if (!reverbs[orbit]) {
|
if (!reverbs[orbit]) {
|
||||||
const ac = getAudioContext();
|
const ac = getAudioContext();
|
||||||
const reverb = ac.createReverb(getAudioContext(), duration, fade, revlp, revdim);
|
const reverb = ac.createReverb(getAudioContext(), duration, fade, lp, dim);
|
||||||
reverb.connect(getDestination());
|
reverb.connect(getDestination());
|
||||||
reverbs[orbit] = reverb;
|
reverbs[orbit] = reverb;
|
||||||
}
|
}
|
||||||
@ -120,14 +120,14 @@ function getReverb(orbit, duration = 2, fade, revlp, revdim) {
|
|||||||
if (
|
if (
|
||||||
reverbs[orbit].duration !== duration ||
|
reverbs[orbit].duration !== duration ||
|
||||||
reverbs[orbit].fade !== fade ||
|
reverbs[orbit].fade !== fade ||
|
||||||
reverbs[orbit].revlp !== revlp ||
|
reverbs[orbit].lp !== lp ||
|
||||||
reverbs[orbit].revdim !== revdim
|
reverbs[orbit].dim !== dim
|
||||||
) {
|
) {
|
||||||
reverbs[orbit].setDuration(duration, fade, revlp, revdim);
|
reverbs[orbit].setDuration(duration, fade, lp, dim);
|
||||||
reverbs[orbit].duration = duration;
|
reverbs[orbit].duration = duration;
|
||||||
reverbs[orbit].fade = fade;
|
reverbs[orbit].fade = fade;
|
||||||
reverbs[orbit].revlp = revlp;
|
reverbs[orbit].lp = lp;
|
||||||
reverbs[orbit].revdim = revdim;
|
reverbs[orbit].dim = dim;
|
||||||
}
|
}
|
||||||
|
|
||||||
return reverbs[orbit];
|
return reverbs[orbit];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user