{"author_link":"\/users\/killedbyapixel","author_name":"KilledByAPixel","author_uid":"killedbyapixel","comments":[],"epoch":1568655236,"event":"LD45","format":"md","ldjam_node_id":160809,"likes":17,"metadata":{"p_key":"133288","p_author":"KilledByAPixel","p_authorkey":"1003657","p_urlkey":"349486","p_title":"ZzFX ~ Zuper Zmall Zeeded Zound Zynth","p_cat":"LDJam ","p_event":"LD45","p_time":"1568655236","p_likes":"17","p_comments":"0","p_status":"WAYBACK","us_key":"1003657","us_name":"KilledByAPixel","us_username":"killedbyapixel","event_start":"1570147200","event_key":"78","event_name":"Ludum Dare 45"},"node":{"_collation":{"body_sanitizer":"TextUtils::SanitizeHTML via existing importer","event":"LD45","removed_author":false},"_superparent":159347,"_trust":1,"author":3657,"body":"Just a quick reminder that my super tiny open source sound effect engine ZzFX is available for use in your Ludum Dare games!\n\n# ZzFX ~ [zzfx.3d2k.com](https:\/\/zzfx.3d2k.com)\n\nThere are now 15 games using ZzFX audio! Here are a few of the best...\n\n* [The Wandering Wraith](https:\/\/js13kgames.com\/entries\/the-wandering-wraith) By Mateusz Tomczyk\n* [Bounce Back](https:\/\/js13kgames.com\/entries\/bounce-back) By Frank Force (Me)\n* [Back 2 Back](https:\/\/js13kgames.com\/entries\/back-2-back) By David Stark\n* [Bubba's Back Room](https:\/\/js13kgames.com\/entries\/bubbas-back-room) By Eric Rowell\n* [Backstabber Hero](https:\/\/js13kgames.com\/entries\/backstabber-hero) By Niklas Berg\n* [Bogus Roads](https:\/\/killedbyapixel.itch.io\/bogus-roads) By Frank Force (Me)\n\nI also used it for my Ludum Dare 44 game, [Spendotron: 2019](https:\/\/killedbyapixel.itch.io\/currency-wars)\n\n\nHere 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!\n\n\n```\n\/\/ ZzFXmicro - Zuper Zmall Zound Zynth - MIT License - Copyright 2019 Frank Force\nzzfx_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}\n```\n\n![ZzFX Screenshot](\/\/\/raw\/94e\/z\/252a0.png)","comments":2,"comments-timestamp":"2019-09-16T19:41:08Z","created":"2019-09-16T17:17:58Z","files":[],"files-timestamp":0,"id":160809,"love":17,"love-timestamp":"2019-09-20T03:17:19Z","meta":[],"modified":"2019-09-20T03:17:19Z","name":"ZzFX ~ Zuper Zmall Zeeded Zound Zynth","node-timestamp":"2019-09-17T22:59:19Z","parent":160674,"parents":[1,5,9,159347,160674],"path":"\/events\/ludum-dare\/45\/$160674\/zzfx-zuper-zmall-zeeded-zound-zynth","published":"2019-09-16T17:33:56Z","scope":"public","slug":"zzfx-zuper-zmall-zeeded-zound-zynth","subsubtype":"","subtype":"","type":"post","version":481489},"node_metadata":{"n_key":"160809","n_urlkey":"349486","n_parent":"160674","n_path":"\/events\/ludum-dare\/45\/$160674\/zzfx-zuper-zmall-zeeded-zound-zynth","n_slug":"zzfx-zuper-zmall-zeeded-zound-zy","n_type":"post","n_subtype":"","n_subsubtype":"","n_author":"3657","n_created":"1568654278","n_modified":"1568949439","n_version":"481489","n_status":"WAYBACK"},"source_url":"https:\/\/ldjam.com\/events\/ludum-dare\/45\/$160674\/zzfx-zuper-zmall-zeeded-zound-zynth","text":"Just a quick reminder that my super tiny open source sound effect engine ZzFX is available for use in your Ludum Dare games!\n\n# ZzFX ~ [zzfx.3d2k.com](https:\/\/zzfx.3d2k.com)\n\nThere are now 15 games using ZzFX audio! Here are a few of the best...\n\n* [The Wandering Wraith](https:\/\/js13kgames.com\/entries\/the-wandering-wraith) By Mateusz Tomczyk\n* [Bounce Back](https:\/\/js13kgames.com\/entries\/bounce-back) By Frank Force (Me)\n* [Back 2 Back](https:\/\/js13kgames.com\/entries\/back-2-back) By David Stark\n* [Bubba's Back Room](https:\/\/js13kgames.com\/entries\/bubbas-back-room) By Eric Rowell\n* [Backstabber Hero](https:\/\/js13kgames.com\/entries\/backstabber-hero) By Niklas Berg\n* [Bogus Roads](https:\/\/killedbyapixel.itch.io\/bogus-roads) By Frank Force (Me)\n\nI also used it for my Ludum Dare 44 game, [Spendotron: 2019](https:\/\/killedbyapixel.itch.io\/currency-wars)\n\n\nHere 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!\n\n\n```\n\/\/ ZzFXmicro - Zuper Zmall Zound Zynth - MIT License - Copyright 2019 Frank Force\nzzfx_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}\n```\n\n![ZzFX Screenshot](\/\/\/raw\/94e\/z\/252a0.png)","title":"ZzFX ~ Zuper Zmall Zeeded Zound Zynth","wayback_source":[]}