mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-12 22:15:27 -04:00
add web package example using script tag
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user