Melodie e sequenze

Composizioni musicali complete che utilizzano tutte e 4 le tracce. Lead, basso, batteria ed effetti che interagiscono tra loro.

Forma d'onda
Pronto
Avventura su piattaforma
Melodia (quadrata) + Basso (triangolare) + Hi-hat (rumore) · 140 BPM
3 tracce
Grotte di cristallo
Arpeggiato a dente di sega + basso profondo + sweep del filtro · 120 BPM
filtro + unisono
Boss Battle
Lead a onda quadra aggressivo + basso trascinante + pattern di batteria · 160 BPM
4 tracce
Starfield (Pad all'unisono)
Pad all'unisono a 8 voci + vibrato + LFO del filtro · Ambient
LFO + unisono
Come funziona
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);
Realizzato da 8Binami