Comparing version 1.1.3 to 1.1.4
{ | ||
"name": "zzfx", | ||
"version": "1.1.3", | ||
"description": "A Tiny Sound FX System", | ||
"version": "1.1.4", | ||
"description": "A Tiny JavaScript Sound FX System", | ||
"main": "ZzFX.js", | ||
"type": "module", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "zzfx()" | ||
}, | ||
@@ -16,8 +15,10 @@ "repository": { | ||
"sound", | ||
"fx", | ||
"soundfx", | ||
"audio", | ||
"sound", | ||
"synth" | ||
], | ||
"author": "Frank Force", | ||
"license": "ISC", | ||
"license": "MIT", | ||
"bugs": { | ||
@@ -24,0 +25,0 @@ "url": "https://github.com/KilledByAPixel/ZzFX/issues" |
/* | ||
ZzFX - Zuper Zmall Zound Zynth v1.1.2 | ||
ZzFX - Zuper Zmall Zound Zynth v1.1.4 | ||
By Frank Force 2019 | ||
@@ -172,3 +172,3 @@ https://github.com/KilledByAPixel/ZzFX | ||
startFrequency += pitchJump; // also apply to start | ||
j = 0; // reset pitch jump time | ||
j = 0; // stop pitch jump time | ||
} | ||
@@ -175,0 +175,0 @@ |
@@ -14,3 +14,3 @@ // ZzFX - Zuper Zmall Zound Zynth - Micro Edition | ||
// ZzFXMicro - Zuper Zmall Zound Zynth - v1.1.2 | ||
// ZzFXMicro - Zuper Zmall Zound Zynth - v1.1.4 | ||
@@ -17,0 +17,0 @@ // ==ClosureCompiler== |
@@ -12,6 +12,6 @@ // ZzFX - Zuper Zmall Zound Zynth - Micro Edition | ||
// ZzFXMicro - Zuper Zmall Zound Zynth - v1.1.2 | ||
// ZzFXMicro - Zuper Zmall Zound Zynth - v1.1.4 | ||
zzfxV=.3 // volume | ||
zzfx= // play sound | ||
(p=1,k=.05,b=220,e=0,r=0,t=.1,q=0,D=1,u=0,y=0,v=0,z=0,l=0,E=0,A=0,F=0,c=0,w=1,m=0,B=0)=>{let R=44100,d=2*Math.PI,G=u*=500*d/R/R,C=b*=(1-k+2*k*Math.random(k=[]))*d/R, g=0,H=0,a=0,n=1,I=0,J=0,f=0,x,h;e=R*e+9;m*=R;r*=R;t*=R;c*=R;y*=500*d/R**3;A*=d/R;v*=d/R;z*=R;l=R*l|0;for(h=e+m+r+t+c|0;a<h;k[a++]=f)++J%(100*F|0)||(f=q?1<q?2<q?3<q?Math.sin((g%d)**3):Math.max(Math.min(Math.tan(g),1),-1):1-(2*g/d%2+2)%2:1-4*Math.abs(Math.round(g/d)-g/d):Math.sin(g),f=(l?1-B+B*Math.sin(d*a/l):1)*(0<f?1:-1)*Math.abs(f)**D*p*zzfxV*(a<e?a/e:a<e+m?1-(a-e)/m*(1-w):a<e+m+r?w:a<h-c?(h-a-c)/t*w:0),f=c?f/2+(c>a?0:(a<h-c?1:(h-a)/c)*k[a-c|0]/2):f),x=(b+=u+=y)*Math.cos(A*H++),g+=x-x*E*(1-1E9*(Math.sin(a)+1)%2),n&&++n>z&&(b+=v,C+=v,n=0),!l||++I%l||(b=C,u=G,n=n||1);p=zzfxX.createBuffer(1,h,R);p.getChannelData(0).set(k);b=zzfxX.createBufferSource();b.buffer=p;b.connect(zzfxX.destination);b.start();return b} | ||
(p=1,k=.05,b=220,e=0,r=0,t=.1,q=0,D=1,u=0,y=0,v=0,z=0,l=0,E=0,A=0,F=0,c=0,w=1,m=0,B=0)=>{let M=Math,R=44100,d=2*M.PI,G=u*=500*d/R/R,C=b*=(1-k+2*k*M.random(k=[]))*d/R,g=0,H=0,a=0,n=1,I=0,J=0,f=0,x,h;e=R*e+9;m*=R;r*=R;t*=R;c*=R;y*=500*d/R**3;A*=d/R;v*=d/R;z*=R;l=R*l|0;for(h=e+m+r+t+c|0;a<h;k[a++]=f)++J%(100*F|0)||(f=q?1<q?2<q?3<q?M.sin((g%d)**3):M.max(M.min(M.tan(g),1),-1):1-(2*g/d%2+2)%2:1-4*M.abs(M.round(g/d)-g/d):M.sin(g),f=(l?1-B+B*M.sin(d*a/l):1)*(0<f?1:-1)*M.abs(f)**D*p*zzfxV*(a<e?a/e:a<e+m?1-(a-e)/m*(1-w):a<e+m+r?w:a<h-c?(h-a-c)/t*w:0),f=c?f/2+(c>a?0:(a<h-c?1:(h-a)/c)*k[a-c|0]/2):f),x=(b+=u+=y)*M.cos(A*H++),g+=x-x*E*(1-1E9*(M.sin(a)+1)%2),n&&++n>z&&(b+=v,C+=v,n=0),!l||++I%l||(b=C,u=G,n=n||1);p=zzfxX.createBuffer(1,h,R);p.getChannelData(0).set(k);b=zzfxX.createBufferSource();b.buffer=p;b.connect(zzfxX.destination);b.start();return b} | ||
zzfxX=new(window.AudioContext||webkitAudioContext) // audio context |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
212532
9
0
329
0
2
0
No