Immutable gratitude to The Ordinal Based 1 Team, for inscribing the Tone.js library on The Blockchain.
Also to Audionals and jim.btc for building this bridge to make it more accessible for everyone.
View Example Implementation: How to use this script in your own Web3 music apps
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My Web3 App with ToneJS</title>
<style>
body { font-family: Arial, sans-serif; margin: 20px; background-color: #ffffff; color: #000000; }
#playButton { padding: 10px 20px; font-size: 16px; cursor: pointer; }
#status { margin-top: 20px; }
</style>
</head>
<body>
<button id="playButton">Play a Note</button>
<div id="status">Status: Loading ToneJS...</div>
<!-- Include the link to the ToneJS Bridge by Audionals (v14.7.40) Script -->
<script src="path/to/tonejs-bridge.html"></script>
<!-- Replace "path/to/" with the actual web3 URL for the bridge file (/content/{ordinalID}) -->
<script>
// Your JavaScript code to use ToneJS goes here
</script>
</body>
</html>