mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-23 19:48:31 +00:00
fix: example encoding for testing builds locally without server
This commit is contained in:
parent
3a4ffb13ad
commit
915a4d2149
@ -1,9 +1,18 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<script src="https://unpkg.com/@strudel/web@1.0.3"></script>
|
<html>
|
||||||
<button id="play">play</button>
|
<head>
|
||||||
<button id="stop">stop</button>
|
<meta charset="UTF-8" />
|
||||||
<script>
|
</head>
|
||||||
strudel.initStrudel();
|
<body>
|
||||||
document.getElementById('play').addEventListener('click', () => evaluate('note("c a f e").jux(rev)'));
|
<!-- <script src="../../packages/web/dist/index.js"></script> -->
|
||||||
document.getElementById('play').addEventListener('stop', () => hush());
|
<script src="https://unpkg.com/@strudel/web@1.0.3"></script>
|
||||||
</script>
|
|
||||||
|
<button id="play">play</button>
|
||||||
|
<button id="stop">stop</button>
|
||||||
|
<script>
|
||||||
|
strudel.initStrudel();
|
||||||
|
document.getElementById('play').addEventListener('click', () => evaluate('note("c a f e").jux(rev)'));
|
||||||
|
document.getElementById('stop').addEventListener('click', () => strudel.hush());
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|||||||
@ -1,16 +1,24 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<script src="https://unpkg.com/@strudel/web@1.0.3"></script>
|
<html>
|
||||||
<button id="a">A</button>
|
<head>
|
||||||
<button id="b">B</button>
|
<meta charset="UTF-8" />
|
||||||
<button id="c">C</button>
|
</head>
|
||||||
<button id="stop">stop</button>
|
<body>
|
||||||
<script>
|
<!-- <script src="../../packages/web/dist/index.js"></script> -->
|
||||||
initStrudel({
|
<script src="https://unpkg.com/@strudel/web@1.0.3"></script>
|
||||||
prebake: () => samples('github:tidalcycles/dirt-samples'),
|
<button id="a">A</button>
|
||||||
});
|
<button id="b">B</button>
|
||||||
const click = (id, action) => document.getElementById(id).addEventListener('click', action);
|
<button id="c">C</button>
|
||||||
click('a', () => evaluate(`s('bd,jvbass(3,8)').jux(rev)`));
|
<button id="stop">stop</button>
|
||||||
click('b', () => s('bd*2,hh(3,4),jvbass(5,8,1)').jux(rev).play());
|
<script>
|
||||||
click('c', () => s('bd*2,hh(3,4),jvbass:[0 4](5,8,1)').jux(rev).stack(s('~ sd')).play());
|
initStrudel({
|
||||||
click('stop', () => hush());
|
prebake: () => samples('github:tidalcycles/dirt-samples'),
|
||||||
</script>
|
});
|
||||||
|
const click = (id, action) => document.getElementById(id).addEventListener('click', action);
|
||||||
|
click('a', () => evaluate(`s('bd,jvbass(3,8)').jux(rev)`));
|
||||||
|
click('b', () => s('bd*2,hh(3,4),jvbass(5,8,1)').jux(rev).play());
|
||||||
|
click('c', () => s('bd*2,hh(3,4),jvbass:[0 4](5,8,1)').jux(rev).stack(s('~ sd')).play());
|
||||||
|
click('stop', () => hush());
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user