Get started with ZzFXM CDN
MIT licensed
ZzFXM is a lightweight library for generating various retro video game sound effects.
Tags:- sound
- sounds
- music
- music tracks
- music renderer
- music generator
- patterns
- play sounds
- instruments
- audio data
- song data
- music data
- composing songs
Stable version
Copied!
How to start using ZzFXM CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with ZzFXM CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/ZzFXM/2.0.3/zzfxm.min.js"></script>
</head>
<body>
<button id="play">Play</button>
<script>
const playBtn = document.getElementById('play');
playBtn.addEventListener('click', () => {
const player = new ZzFXM.Player({
id: 'myPlayer',
src: 'path/to/your/wav-file.wav',
autoplay: true,
loop: true,
onload: () => {
console.log('Sound loaded!');
},
onplay: () => {
console.log('Sound playing!');
},
onended: () => {
console.log('Sound ended!');
},
});
});
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!