Demo Principal
CDN v3.0.0

Añade estas dos etiquetas a tu página — antes de </body> o en <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>
Melodías y Secuencias

Composiciones musicales completas usando las 4 pistas. Lead, bajo, batería y FX trabajando juntos.

Forma de Onda
Listo
Aventura de Plataformas
Lead (square) + Bajo (triangle) + Hi-hat (noise) · 140 BPM
3 pistas
Cuevas de Cristal
Arpeggiated sawtooth + deep bass + filter sweep · 120 BPM
filtro + unísono
Batalla Final
Aggressive square lead + driving bass + drum pattern · 160 BPM
4 pistas
Campo Estelar (Pad Unísono)
8-voice unison pad + vibrato + filter LFO · Ambient
LFOs + unísono
Cómo 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);
Desarrollado con 8Binami