mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 14:26:58 -04:00
acid party
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user