From 86f2ec712fdc390f5deb46c8bb3edc94e74250bc Mon Sep 17 00:00:00 2001 From: Keith Clark Date: Mon, 31 Aug 2020 00:54:37 +0100 Subject: [PATCH] Fix whitespace --- zzfx.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zzfx.js b/zzfx.js index 1931e15..dca835b 100644 --- a/zzfx.js +++ b/zzfx.js @@ -5,8 +5,7 @@ zzfx=(...t)=>zzfxP(zzfxG(...t)) zzfxP=(...t)=>{let e=zzfxX.createBufferSource(),f=zzfxX.createBuffer(t.length,t[0].length,zzfxR);t.map((d,i)=>f.getChannelData(i).set(d)),e.buffer=f,e.connect(zzfxX.destination),e.start();return e} // zzfxG() - the sound generator -- returns an array of sample data -zzfxG= -(q=1,k=.05,c=220,e=0,t=0,u=.1,r=0,F=1,v=0,z=0,w=0,A=0,l=0,B=0,x=0,G=0,d=0,y=1,m=0,C=0)=>{let b=2*Math.PI,H=v*=500*b/zzfxR**2,I=(0a?0:(aA&&(c+=w,D+=w,n=0),!l||++J%l||(c=D,v=H,n=n||1);return Z} +zzfxG=(q=1,k=.05,c=220,e=0,t=0,u=.1,r=0,F=1,v=0,z=0,w=0,A=0,l=0,B=0,x=0,G=0,d=0,y=1,m=0,C=0)=>{let b=2*Math.PI,H=v*=500*b/zzfxR**2,I=(0a?0:(aA&&(c+=w,D+=w,n=0),!l||++J%l||(c=D,v=H,n=n||1);return Z} // zzfxV - global volume zzfxV=.3 @@ -15,4 +14,4 @@ zzfxV=.3 zzfxR=44100 // zzfxX - the common audio context -zzfxX=new(top.AudioContext||webkitAudioContext); \ No newline at end of file +zzfxX=new(top.AudioContext||webkitAudioContext);