Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <body bgcolor=#223><center>
<div style=font-size:35px><b>โ„ค๐•ซ๐”ฝ๐• - Zuper Zmall Zound Zynth</b></div>
<div style=font-size:20px><i>Example sound effects created and played using ZzFX</i></div>
<div style=max-width:674px>
<div style=font-size:20px>
<input id=volume type=range value=.3 min=0 max=1 step=.01 oninput='zzfxV=volume.value;volumeText.innerHTML=volume.value*100|0'>
Volume <span id=volumeText>30</span> %
</div>

<button onClick=zzfx(...[,,1675,,.06,.24,1,1.82,,,837,.06])>๐Ÿ’ฐ</button>
<button onClick=zzfx(...[,,925,.04,.3,.6,1,.3,,6.27,-184,.09,.17])>๐ŸฅŠ</button>
<button onClick=zzfx(...[,,539,0,.04,.29,1,1.92,,,567,.02,.02,,,,.04])>โœจ</button>
<button onClick=zzfx(...[,,80,.3,.4,.7,2,.1,-0.73,3.42,-430,.09,.17,,,,.19])>๐ŸŒŸ</button>
<button onClick=zzfx(...[,,537,.02,.02,.22,1,1.59,-6.98,4.97])>๐Ÿ’“</button>
<button onClick=zzfx(...[,,528,.01,,.48,,.6,-11.6,,,,.32,4.2])>๐Ÿ’”</button>
<button onClick=zzfx(...[,,20,.04,,.6,,1.31,,,-990,.06,.17,,,.04,.07])>๐Ÿ’–</button>
<button onClick=zzfx(...[,,662,.82,.11,.33,1,0,,-0.2,,,,1.2,,.26,.01])>๐Ÿ‘พ</button>

<button onClick=zzfx(...[1.5,.5,270,,.1,,1,1.5,,,,,,,,.1,.01])>๐ŸŽน</button>
<button onClick=zzfx(...[,,129,.01,,.15,,,,,,,,5])>๐Ÿฅ</button>
<button onClick=zzfx(...[,,333,.01,0,.9,4,1.9,,,,,,.5,,.6])>๐Ÿ’ฅ</button>
<button onClick=zzfx(...[,,418,0,.02,.2,4,1.15,-8.5,,,,,.7,,.1]);>๐Ÿงจ</button>
<button onClick=zzfx(...[,.3,1975,.08,.56,.02,,,-0.4,,-322,.56,.41,,,,.25])>๐Ÿฆ</button>
<button onClick=zzfx(...[,.1,75,.03,.08,.17,1,1.88,7.83,,,,,.4])>๐Ÿฆ˜</button>
<button onClick=zzfx(...[,.9,1306,.8,.08,.02,1,,,,,,.48,,-0.1,.11,.25])>๐Ÿฌ</button>
<button onClick=zzfx(...[,.2,1e3,.02,,.01,2,,18,,475,.01,.01])>๐Ÿ</button>

<button onClick=zzfx(...[2,.8,999,,,,,1.5,,.3,-99,.1,1.63,,,.11,.22])>๐Ÿ””</button>
<button onClick=zzfx(...[,.5,847,.02,.3,.9,1,1.67,,,-294,.04,.13,,,,.1])>๐Ÿ›ฐ๏ธ</button>
<button onClick=zzfx(...[,0,1600,.13,.52,.61,1,1.1,,,,,,.1,,.14])>โ˜Ž๏ธ</button>
<button onClick=zzfx(...[,,224,.02,.02,.08,1,1.7,-13.9,,,,,,6.7])>๐Ÿพ</button>
<button onClick=zzfx(...[,,941,.8,,.8,4,.74,-222,,,,,.8,,1])>๐Ÿš€</button>
<button onClick=zzfx(...[,,172,.8,,.8,1,.76,7.7,3.73,-482,.08,.15,,.14])>๐Ÿ›ธ</button>
<button onClick=zzfx(...[,,448,.01,.1,.3,3,.39,-0.5,,,,,,.2,.1,.08])>๐Ÿ”ซ</button>
<button onClick=zzfx(...[,,150,.05,,.05,,1.3,,,,,,3])>๐ŸŒ๏ธ</button>
 
<button onClick=zzfx(...[,.2,40,.5,,1.5,,11,,,,,,199])>๐ŸŒŠ</button>
<button onClick=zzfx(...[,0,960,,1,.01,,.8,-0.01,,-190,.5,,.05,,,1])>๐Ÿš’</button>
<button onClick=zzfx(...[1.2,0,250,.02,,.15,4,.1,,,,,,,,.01,.01])>๐Ÿš˜</button>
<button onClick=zzfx(...[,,44,.04,.15,.3,4,.8,,,,,,2,,.14,.39])>๐Ÿšš</button>
<button onClick=zzfx(...[.5,,304,.1,.3,,5,.1,-46,,,,,,-165])>โšก</button>
<button onClick=zzfx(...[,,63,,1,,1,1.5,,,,,,,,3.69,.08])>๐Ÿ’ซ</button>
<button onClick=zzfx(...[,,1e3,,,.5,,,,,99,.01,.03])>๐Ÿง—</button>
<button onClick=zzfx(...[,,9220,.01,,,,5,,,,,,9])>๐Ÿงน</button>
  
</div>
<a href=https://zzfx.3d2k.com target=_blank>ZzFX Sound Effect Designer at zzfx.3d2k.com โ˜ฎโ™ฅโ˜ปโŒ</a>
              
            
!

CSS

              
                button
{
  height:75px;
  width:75px;
  font-size:40px;
  border:3px solid;
  border-radius: 15px;
  background:#BBB;
}
div { color:#FFF; }
a { color:#5FF; }
a:visited { color:#A5A; }
              
            
!

JS

              
                // ZzFX - Zuper Zmall Zound Zynth - Micro Edition
// MIT License - Copyright 2019 Frank Force
// https://github.com/KilledByAPixel/ZzFX
'use strict';let zzfx,zzfxV,zzfxX

// ZzFXMicro - Zuper Zmall Zound Zynth 
zzfxV=.3 // volume
zzfx=    // play sound
(J=1,K=.05,h=220,f=0,k=0,n=.1,g=0,A=1,r=0,B=0,t=0,C=0,u=0,D=0,v=0,L=0,e=0,c=2*Math.PI,b=44100,w=p=>2*p*Math.random()-p,x=p=>0<p?1:-1,M=r*=500*c/b**2,E=h*=(1+w(K))*c/b,N=x(v)*c/4,q=[],F=0,G=0,d=0,l=1,H=0,I=0,a=0,O=.5,m,y,z=zzfxX.createBufferSource())=>{f=50+f*b|0;k=k*b|0;n=n*b|0;e=e*b|0;B*=500*c/b**3;m=f+k+n+e;v*=c/b;t*=c/b;C*=b;for(u*=b;d<m;q[d++]=a)++I>100*L&&(I=0,a=F*h*Math.sin(G*v-N),a=g?1<g?2<g?3<g?4<g?x((a/c%1+1)%1-(O+=1e3*A/b)%1):Math.sin((a%c)**3):Math.max(Math.min(Math.tan(a),1),-1):1-(2*a/c%2+2)%2:1-4*Math.abs(Math.round(a/c)-a/c):Math.sin(a),5>g&&(a=x(a)*Math.abs(a)**A),a*=J*zzfxV*(d<f?d/f:d<f+k?1:d<m-e?1-(d-f-k)/n:0),a=e?a/2+(e>d?0:(d<m-e?1:(d-m)/e)*q[d-e]/2):a),F+=1+w(D),G+=1+w(D),h+=r+=B,l&&++l>C&&(E+=t,h+=t,l=0),u&&++H>u&&(h=E,r=M,H=1,l=l||1);y=zzfxX.createBuffer(1,q.length,b);y.getChannelData(0).set(q);z.buffer=y;z.connect(zzfxX.destination);z.start()}
zzfxX=new(window.AudioContext||webkitAudioContext);zzfxX.z=zzfxX.createBufferSource;zzfxX.createBufferSource=(s=zzfxX.z())=>(s.start=s.start||(t=>zzfxX.noteOn(t)),s)
              
            
!
999px

Console