mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-20 18:18:32 +00:00
simplify web example
This commit is contained in:
parent
2854f0cf34
commit
c23d7850c7
@ -1,9 +1,8 @@
|
|||||||
<script src="https://unpkg.com/@strudel/web@1.0.2/dist/index.js"></script>
|
<script src="https://unpkg.com/@strudel/web@1.0.3"></script>
|
||||||
<button id="play">PLAY</button>
|
<button id="play">PLAY</button>
|
||||||
<script>
|
<script>
|
||||||
initStrudel({
|
initStrudel({
|
||||||
prebake: () => samples('github:tidalcycles/dirt-samples'),
|
prebake: () => samples('github:tidalcycles/dirt-samples'),
|
||||||
});
|
});
|
||||||
|
|
||||||
document.getElementById('play').addEventListener('click', () => s('bd sd').play());
|
document.getElementById('play').addEventListener('click', () => s('bd sd').play());
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user