mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-22 02:58:32 +00:00
add web package example using script tag
This commit is contained in:
parent
5419ca431b
commit
a89e87ca2e
9
examples/buildless/web.html
Normal file
9
examples/buildless/web.html
Normal 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>
|
||||||
Loading…
x
Reference in New Issue
Block a user