// Import ES6 module import {ChiptuneJsPlayer} from 'https://DrSnuggles.github.io/chiptune/chiptune3.js' // Create instance (wherever you want) window.chiptune = new ChiptuneJsPlayer() // if you already have an audioContext you can provide here, but then chiptune does not route to speakers! Connect chiptune.gain // Wait for ready chiptune.onInitialized(() => { // Play awesome music chiptune.load('https://deskjet.github.io/chiptune2.js/tunes/chipsounds.mod') })