JSFiddle - React, Tailwind, and code Playground

by kdoodoo

JavaScript

var sampleURL = "http://doyoki.com/project/interactivemusic/week2/intmus3.mp3";

var player = new Tone.Player(sampleURL).toMaster();

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