TrifToneJSdemo

Ton


var synth = new Tone.Synth().toMaster();
synth.triggerAttackRelease('A3','4n');

Akkord


var polySynth = new Tone.PolySynth(3, Tone.Synth).toMaster();
polySynth.triggerAttackRelease(["C3", "D4", "G4"], "2n");

Oszillator


osc = new Tone.Oscillator(440,"sine").toMaster().start();

MIDI