Niceities when working with the webpage.

This commit is contained in:
cnlohr
2024-10-09 02:16:14 -07:00
parent 933a3d4347
commit 147fdc514d
2 changed files with 24 additions and 14 deletions
+2 -2
View File
@@ -187,7 +187,7 @@ async function toggleAudio()
gainParam.setValueAtTime( 0, audioContext.currentTime );
}
var newVal = 0.5 - targetGain;
var newVal = 1.0 - targetGain;
console.log( "Setting gain to: " + newVal );
let gainParam = playingAudioProcessor.parameters.get("gain");
gainParam.setValueAtTime( newVal, audioContext.currentTime);
@@ -441,7 +441,7 @@ async function sendLoop()
var po = FMphaseout = FMphaseout * 0.993 + diffphase;
if( po < 0.0 ) po += 1.0;
if( po > 1.0 ) po -= 1.0;
demodbuffer[i] = po;
demodbuffer[i] = po * .3; // Turn down FM it's really loud.
}
IQHistoryHead = (IQHistoryHead+1)%IQHistoryLen;