JSFiddle - React, Tailwind, and code Playground

by Eve Weinberg

HTML

<script src="https://tonejs.github.io/CDN/r6/Tone.js"></script>
<script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>

JavaScript

var sampleURL = "http://tonejs.github.io/Tone.js/examples/audio/FWDL.mp3";

var player = new Tone.Player(sampleURL);

//trigger the start of the sample once its loaded
Tone.Buffer.on("load", function(){
	player.start();
});



var x = new Tone.Freeverb (1,3000).toMaster();
x.wet.value = 1;

player.connect(x);