add web package example using script tag

This commit is contained in:
Felix Roos 2024-02-23 14:21:59 +01:00
parent 5419ca431b
commit a89e87ca2e

View File

@ -0,0 +1,9 @@
<script src="https://unpkg.com/@strudel/web@1.0.2/dist/index.js"></script>
<button id="play">PLAY</button>
<script>
initStrudel({
prebake: () => samples('github:tidalcycles/dirt-samples'),
});
document.getElementById('play').addEventListener('click', () => s('bd sd').play());
</script>