mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-16 08:08:34 +00:00
fix: synth default envelope
This commit is contained in:
parent
4fb5c1828d
commit
eefa90a2bc
@ -29,12 +29,11 @@ export function registerSynthSounds() {
|
|||||||
registerSound(
|
registerSound(
|
||||||
s,
|
s,
|
||||||
(t, value, onended) => {
|
(t, value, onended) => {
|
||||||
const [attack, decay, sustain, release] = getADSRValues([
|
const [attack, decay, sustain, release] = getADSRValues(
|
||||||
value.attack,
|
[value.attack, value.decay, value.sustain, value.release],
|
||||||
value.decay,
|
'linear',
|
||||||
value.sustain,
|
[0.001, 0.05, 0.6, 0.01],
|
||||||
value.release,
|
);
|
||||||
]);
|
|
||||||
|
|
||||||
let sound;
|
let sound;
|
||||||
if (waveforms.includes(s)) {
|
if (waveforms.includes(s)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user