remove spillover
This commit is contained in:
parent
8703d684c4
commit
2e6a561184
2 changed files with 4 additions and 48 deletions
|
|
@ -73,9 +73,8 @@ export function registerSynthSounds() {
|
|||
'supersaw',
|
||||
(begin, value, onended) => {
|
||||
const ac = getAudioContext();
|
||||
const { z1, z2, z3 } = value;
|
||||
let { duration, n, unison = z2 ?? 5, spread = z3 ?? 0.6, detune } = value;
|
||||
detune = detune ?? n ?? z1 ?? 0.18;
|
||||
let { duration, n, unison = 5, spread = 0.6, detune } = value;
|
||||
detune = detune ?? n ?? 0.18;
|
||||
const frequency = getFrequencyFromValue(value);
|
||||
|
||||
const [attack, decay, sustain, release] = getADSRValues(
|
||||
|
|
@ -250,4 +249,4 @@ export function getOscillator(s, t, value) {
|
|||
// envGain?.stop(time);
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue