fix example

This commit is contained in:
Felix Roos 2022-05-02 22:40:40 +02:00
parent b01865f0f5
commit 6e8bd1ff33
2 changed files with 24 additions and 25 deletions

View File

@ -7,20 +7,20 @@ This package contains a embeddable web component for the Strudel REPL.
Either install with `npm i @strudel.cycles/embed` or just use a cdn to import the script: Either install with `npm i @strudel.cycles/embed` or just use a cdn to import the script:
```html ```html
<script src="https://unpkg.com/@strudel.cycles/embed@latest"> <script src="https://unpkg.com/@strudel.cycles/embed@latest"></script>
<strudel-repl> <strudel-repl>
<!-- <!--
"a4 [a3 c3] a3 c3".color('#F9D649') "a4 [a3 c3] a3 c3".color('#F9D649')
.sub("<7 12 5 12>".slow(2)) .sub("<7 12 5 12>".slow(2))
.off(1/4,x=>x.add(7).color("#FFFFFF #0C3AA1 #C63928")) .off(1/4,x=>x.add(7).color("#FFFFFF #0C3AA1 #C63928"))
.off(1/8,x=>x.add(12).color('#215CB6')) .off(1/8,x=>x.add(12).color('#215CB6'))
.slow(2) .slow(2)
.legato(sine.range(0.3, 2).slow(28)) .legato(sine.range(0.3, 2).slow(28))
.wave("sawtooth square".fast(2)) .wave("sawtooth square".fast(2))
.filter('lowpass', cosine.range(500,4000).slow(16)) .filter('lowpass', cosine.range(500,4000).slow(16))
.out() .out()
.pianoroll({minMidi:20,maxMidi:120,background:'#202124'}) .pianoroll({minMidi:20,maxMidi:120,background:'#202124'})
--> -->
</strudel-repl> </strudel-repl>
``` ```

View File

@ -1,16 +1,15 @@
<script src="./embed.js"></script> <script src="https://unpkg.com/@strudel.cycles/embed@latest"></script>
<strudel-repl> <strudel-repl>
<!-- <!--
"a4 [a3 c3] a3 c3".color('#F9D649') "a4 [a3 c3] a3 c3".color('#F9D649')
.sub("<7 12 5 12>".slow(2)) .sub("<7 12 5 12>".slow(2))
.off(1/4,x=>x.add(7).color("#FFFFFF #0C3AA1 #C63928")) .off(1/4,x=>x.add(7).color("#FFFFFF #0C3AA1 #C63928"))
.off(1/8,x=>x.add(12).color('#215CB6')) .off(1/8,x=>x.add(12).color('#215CB6'))
.slow(2) .slow(2)
.legato(sine.range(0.3, 2).slow(28)) .legato(sine.range(0.3, 2).slow(28))
.wave("sawtooth square".fast(2)) .wave("sawtooth square".fast(2))
.filter('lowpass', cosine.range(500,4000).slow(16)) .filter('lowpass', cosine.range(500,4000).slow(16))
.out() .out()
.pianoroll({minMidi:20,maxMidi:120,background:'#202124'}) .pianoroll({minMidi:20,maxMidi:120,background:'#202124'})
--> -->
</strudel-repl> </strudel-repl>