create meta params
This commit is contained in:
parent
5bf1805534
commit
07bcaa65a9
2 changed files with 46 additions and 2 deletions
|
|
@ -73,8 +73,9 @@ export function registerSynthSounds() {
|
|||
'supersaw',
|
||||
(begin, value, onended) => {
|
||||
const ac = getAudioContext();
|
||||
let { duration, n, unison = 5, spread = 0.6, detune } = value;
|
||||
detune = detune ?? n ?? 0.18;
|
||||
const {z1, z2, z3} = value;
|
||||
let { duration, n, unison = z2 ?? 5, spread = z3 ?? 0.6, detune, } = value;
|
||||
detune = detune ?? n ?? z1 ?? 0.18;
|
||||
const frequency = getFrequencyFromValue(value);
|
||||
|
||||
const [attack, decay, sustain, release] = getADSRValues(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue