ZzFX ~ Zuper Zmall Zeeded Zound Zynth

Just a quick reminder that my super tiny open source sound effect engine ZzFX is available for use in your Ludum Dare games!

ZzFX ~ zzfx.3d2k.com

There are now 15 games using ZzFX audio! Here are a few of the best...

I also used it for my Ludum Dare 44 game, Spendotron: 2019

Here is the entire code for the micro version of ZzFX. Just paste this code into your JavaScript file and you can play ZzFX sound effects!

// ZzFXmicro - Zuper Zmall Zound Zynth - MIT License - Copyright 2019 Frank Force zzfx_v=.5;zzfx_x=new AudioContext;zzfx=(e,f,a,b=1,d=.1,g=0,h=0,k=0,l=0)=>{let S=44100,P=Math.PI;a*=2*P/S;a*=1+f*(2*Math.random()-1);g*=1E3*P/(S**2);b=0<b?S*(10<b?10:b)|0:1;d*=b|0;k*=2*P/S;l*=P;f=[];for(var m=0,n=0,c=0;c<b;++c)f[c]=e*zzfx_v*Math.cos(m*a*Math.cos(n*k+l))*(c<d?c/d:1-(c-d)/(b-d)),m+=1+h*(2*Math.random()-1),n+=1+h*(2*Math.random()-1),a+=g;e=zzfx_x.createBuffer(1,b,S);a=zzfx_x.createBufferSource();e.getChannelData(0).set(f);a.buffer=e;a.connect(zzfx_x.destination);a.start();return a}

ZzFX Screenshot