From f32abac06f7b1d45dba47bfb729e45f53b771b89 Mon Sep 17 00:00:00 2001 From: "Jade (Rose) Rowland" Date: Sun, 27 Apr 2025 02:20:53 -0400 Subject: [PATCH] reset gaincurve --- packages/superdough/superdough.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/superdough/superdough.mjs b/packages/superdough/superdough.mjs index d3c9e49f..8e766b65 100644 --- a/packages/superdough/superdough.mjs +++ b/packages/superdough/superdough.mjs @@ -18,6 +18,7 @@ export const DEFAULT_MAX_POLYPHONY = 128; const DEFAULT_AUDIO_DEVICE_NAME = 'System Standard'; let maxPolyphony = DEFAULT_MAX_POLYPHONY; + export function setMaxPolyphony(polyphony) { maxPolyphony = parseInt(polyphony) ?? DEFAULT_MAX_POLYPHONY; } @@ -117,7 +118,7 @@ export const getAudioDevices = async () => { const defaultDefaultValues = { s: 'triangle', - gain: .8, + gain: 0.8, postgain: 1, density: '.03', ftype: '12db', @@ -548,7 +549,7 @@ export const superdough = async (value, t, hapDuration) => { //music programs/audio gear usually increments inputs/outputs from 1, so imitate that behavior channels = (Array.isArray(channels) ? channels : [channels]).map((ch) => ch - 1); - + let audioNodes = []; if (bank && s) {