mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 21:58:37 +00:00
acid party
This commit is contained in:
parent
48753b2539
commit
18640d59da
@ -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.
|
||||
*
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user