Démo Principale
CDN v3.0.0

Ajoutez ces deux balises à votre page — avant </body> ou dans <head> :

Moteur 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>
Galerie d'Instruments

12 préréglages d'instruments qui transforment le moteur de synthèse en vrais instruments. Cliquez sur un, puis jouez sur le clavier ci-dessous (ou utilisez votre contrôleur MIDI). Chaque préréglage configure la forme d'onde, l'enveloppe, le filtre, l'unisson et le vibrato.

Forme d'Onde
Piano
Octave 4
Cliquez sur les touches ou utilisez le clavier PC (Q-M)
Démos Musicales — Écoutez Chaque Instrument en Contexte
Ensemble de Chambre
Violin melody + Cello harmony + Piano chords · Canon style
Combo Jazz
Organ chords + Synth Basse walk + Brass stabs · Swing feel
Synthwave Drive
Synth Lead + Synth Pad + Synth Basse + Drums · 128 BPM
World Fusion
Marimba + Flute + Harmonica + Guitar · Pentatonic
Charger des Instruments Programmatiquement
const synth = new ChiptuneSynth();
await synth.init();

// Load instruments onto tracks
synth.loadInstrument('violin', 0);   // Track 0 = Violin
synth.loadInstrument('piano', 1);    // Track 1 = Piano

// Play a chord
synth.playNoteByName('A', 4, 0, 2);  // Violin A4
synth.playNoteByName('C', 4, 1, 2);  // Piano C4
synth.playNoteByName('E', 4, 1, 2);  // Piano E4

// List all instruments
console.log(ChiptuneSynth.getInstrumentNames());
// ['piano','violin','cello','flute','organ','brass',
//  'harmonica','synthLead','synthPad','synthBass','marimba','electricGuitar']

// Enable MIDI controller
const devices = await synth.enableMIDI({ track: 0 });
console.log('MIDI devices:', devices);
Propulsé par 8Binami