JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://unpkg.com/tone@next"></script>

JavaScript

var synth = new Tone.Synth().toMaster()
synth.triggerAttackRelease("C4", "8n")