Hacker News new | ask | show | jobs
by huhtenberg 1175 days ago
Whoopses shortly after a load with

    Uncaught Error: buffer is either not set or not loaded
        ti https://unpkg.com/tone@14.7.77:1
        start https://unpkg.com/tone@14.7.77:21
        triggerAttack https://unpkg.com/tone@14.7.77:21
        triggerAttack https://unpkg.com/tone@14.7.77:21
        processPianoState https://kevinzakka.github.io/robopianist-demo/examples/main.js:174
        render https://kevinzakka.github.io/robopianist-demo/examples/main.js:255
        onAnimationFrame https://kevinzakka.github.io/robopianist-demo/node_modules/three/build/three.module.js:27951
        onAnimationFrame https://kevinzakka.github.io/robopianist-demo/node_modules/three/build/three.module.js:12661
This is in a recent Firefox.
1 comments

I needed to reload the page once and click on it to start. It might have to do with autoplay blocking.
Indeed, browsers are pretty aggressive about not autoplaying sound, you need to interact with the screen (mouse click or finger tap + make sure your sound is up / ringer not on silent).