better names + more readme
This commit is contained in:
parent
5d6ccf56d7
commit
c13feccdcd
10 changed files with 5 additions and 22 deletions
5
examples/buildless/README.md
Normal file
5
examples/buildless/README.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
# buildless examples
|
||||||
|
|
||||||
|
These examples show you how strudel can be used in a regular html file, without the need for a build tool.
|
||||||
|
|
||||||
|
Most examples are using [skypack](https://www.skypack.dev/)
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
<!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', () => note('<c a f e>(3,8)').play());
|
|
||||||
document.getElementById('stop').addEventListener('click', () => hush());
|
|
||||||
</script>
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
<!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({
|
|
||||||
prebake: () => samples('github:tidalcycles/Dirt-Samples/master'),
|
|
||||||
});
|
|
||||||
document.getElementById('play').addEventListener('click', () => s('[bd sd](3,8)').play());
|
|
||||||
document.getElementById('stop').addEventListener('click', () => hush());
|
|
||||||
</script>
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue