move all examples to separate examples folder

This commit is contained in:
Felix Roos 2023-12-29 16:05:10 +01:00
parent f31fdb0988
commit 0323f75bae
37 changed files with 76 additions and 180 deletions

View file

@ -0,0 +1,10 @@
<!DOCTYPE html>
<button id="play">play</button>
<button id="stop">stop</button>
<script type="module">
import { initStrudel } from 'https://cdn.skypack.dev/@strudel/web@0.8.2';
initStrudel();
document.getElementById('play').addEventListener('click', () => evaluate('note("c a f e").jux(rev)'));
document.getElementById('play').addEventListener('stop', () => hush());
</script>