acid party

This commit is contained in:
Felix Roos 2023-09-08 03:00:49 +02:00
parent 48753b2539
commit 18640d59da
2 changed files with 2 additions and 1 deletions

View File

@ -390,6 +390,7 @@ const generic_params = [
['bpdecay', 'bpd'],
['bpsustain', 'bps'],
['bprelease', 'bpr'],
['order'],
/**
* Applies the cutoff frequency of the **h**igh-**p**ass **f**ilter.
*

View File

@ -74,7 +74,7 @@ export const getParamADSR = (param, attack, decay, sustain, release, min, max, b
param.linearRampToValueAtTime(peak, begin + attack);
param.linearRampToValueAtTime(sustainLevel, begin + attack + decay);
param.setValueAtTime(sustainLevel, end);
param.linearRampToValueAtTime(min, end + release);
param.linearRampToValueAtTime(min, end + Math.max(release, 0.1));
};
export function createFilter(context, type, frequency, Q, attack, decay, sustain, release, fenv, start, end) {