mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-24 12:08:28 +00:00
acid party
This commit is contained in:
parent
48753b2539
commit
18640d59da
@ -390,6 +390,7 @@ const generic_params = [
|
|||||||
['bpdecay', 'bpd'],
|
['bpdecay', 'bpd'],
|
||||||
['bpsustain', 'bps'],
|
['bpsustain', 'bps'],
|
||||||
['bprelease', 'bpr'],
|
['bprelease', 'bpr'],
|
||||||
|
['order'],
|
||||||
/**
|
/**
|
||||||
* Applies the cutoff frequency of the **h**igh-**p**ass **f**ilter.
|
* 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(peak, begin + attack);
|
||||||
param.linearRampToValueAtTime(sustainLevel, begin + attack + decay);
|
param.linearRampToValueAtTime(sustainLevel, begin + attack + decay);
|
||||||
param.setValueAtTime(sustainLevel, end);
|
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) {
|
export function createFilter(context, type, frequency, Q, attack, decay, sustain, release, fenv, start, end) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user