主演示
CDN v3.0.0

将这两个标签添加到页面 — </body> 或在 <head> :

合成引擎
<script src="https://cdn.chiptune-synth.8binami.com/3.0.0/chiptune-synth.min.js"></script>
音色库 (170+ instruments)
<script src="https://cdn.chiptune-synth.8binami.com/3.0.0/chiptune-sound-font.min.js"></script>
游戏音效 — 内置预设

10个即时游戏音频预设。点击任意卡片聆听。一行代码 = 一个音效。

💥
激光
Pew pew! Classic beam
playPreset('laser')
🪙
金币
Collect that gold!
playPreset('coin')
🏃
跳跃
Bouncy platformer hop
playPreset('jump')
💣
爆炸
Big boom noise burst
playPreset('explosion')
Power-Up
Level up rising sweep
playPreset('powerup')
💢
命中
Enemy damage impact
playPreset('hit')
💬
嘟声
Menu cursor / UI click
playPreset('blip')
🔊
贝斯
Deep triangle thump
playPreset('bass')
🔫
射击
Rapid fire zap shot
playPreset('shoot')
💚
1-UP
Extra life fanfare
playPreset('1up')
连击 — 连接多个音效
// Coin rush — rapid fire coins
for (let i = 0; i < 5; i++)
    setTimeout(() => synth.playPreset('coin'), i * 120);

// Battle: shoot → hit → explosion
synth.playPreset('shoot');
setTimeout(() => synth.playPreset('hit'), 200);
setTimeout(() => synth.playPreset('explosion'), 450);
Quick API
const synth = new ChiptuneSynth();
await synth.init();

// Play any built-in preset
synth.playPreset('laser');
synth.playPreset('coin');
synth.playPreset('explosion');

// Get all preset names
const names = ChiptuneSynth.getPresetNames();
// ['laser','coin','jump','explosion','powerup','hit','blip','bass','shoot','1up']

// Load preset params without playing
synth.loadPreset('powerup');
由...驱动 8Binami