Codeformat
This commit is contained in:
parent
869141b0a3
commit
9eeb6da3e6
1 changed files with 4 additions and 4 deletions
|
|
@ -943,7 +943,7 @@ class EnvelopeProcessor extends AudioWorkletProcessor {
|
|||
const p = 1 + k * c;
|
||||
return 1 - Math.pow(1 - u, p);
|
||||
} else {
|
||||
const p = 1 + k * (-c);
|
||||
const p = 1 + k * -c;
|
||||
return Math.pow(u, p);
|
||||
}
|
||||
}
|
||||
|
|
@ -986,7 +986,7 @@ class EnvelopeProcessor extends AudioWorkletProcessor {
|
|||
{ time: attack + decay, start: 1, target: sustain, curve: dCurve },
|
||||
{ time: susTime, start: sustain, target: sustain },
|
||||
{ time: susTime + release, start: sustain, target: 0, curve: rCurve },
|
||||
]
|
||||
];
|
||||
let { time, start, target, curve } = states[this.state];
|
||||
this._advance(start, target, time, curve);
|
||||
while (currentTime - this.beginTime >= time) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue