Demo Principal
CDN v3.0.0

Adicione estas tags à sua página — antes de </body> ou em <head> :

Motor Synth
<script src="https://cdn.chiptune-synth.8binami.com/3.0.0/chiptune-synth.min.js"></script>
Sound Font (170+ instruments)
<script src="https://cdn.chiptune-synth.8binami.com/3.0.0/chiptune-sound-font.min.js"></script>
Melodias e Sequências

Composições musicais completas usando todas as 4 faixas. Lead, baixo, bateria e FX trabalhando juntos.

Forma de Onda
Pronto
Aventura de Plataforma
Lead (square) + Baixo (triangle) + Hi-hat (noise) · 140 BPM
3 faixas
Cavernas de Cristal
Arpeggiated sawtooth + deep bass + filter sweep · 120 BPM
filtro + uníssono
Batalha do Chefe
Aggressive square lead + driving bass + drum pattern · 160 BPM
4 faixas
Campo Estelar (Pad Uníssono)
8-voice unison pad + vibrato + filter LFO · Ambient
LFOs + uníssono
Como Funciona
const synth = new ChiptuneSynth();
await synth.init();

const BPM = 140, beat = 60 / BPM;
const n = ChiptuneSynth.noteToFrequency;

// Schedule notes with setTimeout
function play(note, oct, track, time, dur) {
    setTimeout(() => {
        synth.playNote(n(note, oct), track, dur);
    }, time * 1000);
}

// Lead melody on track 0 (square)
play('E', 5, 0, 0,        beat * 0.4);
play('E', 5, 0, beat*0.5, beat * 0.4);
play('G', 5, 0, beat*1.5, beat);

// Bass on track 1 (triangle)
play('C', 3, 1, 0, beat * 0.8);

// Hi-hat on track 2 (noise)
for (let i = 0; i < 8; i++)
    play('A', 5, 2, i * beat/2, 0.05);
Desenvolvido por 8Binami