add missing sounds by hand

This commit is contained in:
Felix Roos 2023-06-08 20:43:45 +02:00
parent eccce6fa84
commit f8c3e3d5aa
5 changed files with 39 additions and 38 deletions

View File

@ -25,14 +25,14 @@ Los geht's mit ein paar Sounds:
</Box> </Box>
Glückwunsch, du bist nun am live coden! Glückwunsch, du kannst nun live coden!
Die ganze Seite ist voller interaktiver Textfelder. Die ganze Seite ist voller interaktiver Textfelder.
In jedes kannst du hineinklicken und mit `Strg`+`Enter` starten / aktualisieren und mit `Strg+.` stoppen. In jedes kannst du hineinklicken und mit `Strg`+`Enter` starten / aktualisieren und mit `Strg+.` stoppen.
**Probiere mehr Sounds aus** **Probiere mehr Sounds aus**
Mit ":" kannst du einen anderen Sound aus dem Set wählen: Mit `:` gefolgt von einer Zahl kannst du einen anderen Sound aus dem Set wählen:
<MiniRepl hideHeader client:visible tune={`sound("casio:0")`} hideHeader /> <MiniRepl hideHeader client:visible tune={`sound("casio:0")`} hideHeader />
@ -44,7 +44,7 @@ Ohne Zahl ist gleichbedeutend mit `:0`
Hier sind ein paar mehr Sounds zum ausprobieren: Hier sind ein paar mehr Sounds zum ausprobieren:
``` ```
insect wind jazz metal east crow casio insect wind jazz metal east crow casio space numbers
``` ```
Probier verschiedene Kombinationen von Sounds und Nummern! Es kann sein dass du kurz nichts hörst während ein neuer Sound lädt. Probier verschiedene Kombinationen von Sounds und Nummern! Es kann sein dass du kurz nichts hörst während ein neuer Sound lädt.
@ -195,8 +195,7 @@ Es kommt öfter vor dass man die gleiche Idee auf verschiedene Arten ausdrücken
client:visible client:visible
tune={`sound(\`bd*2, ~ cp, tune={`sound(\`bd*2, ~ cp,
~ ~ ~ oh, hh*4, ~ ~ ~ oh, hh*4,
[~ perc:1*2]*2, [~ sawtooth]*2\`)`}
[~ jvbass]*2\`)`}
punchcard punchcard
/> />

View File

@ -161,23 +161,10 @@ Probier `ply` mit einem pattern zu automatisieren, z.b. `"<1 2 1 3>"`
<Box> <Box>
In der notation `x=>x.`, das `x` ist das pattern das wir bearbeiten. In der notation `x=>x.`, das `x` ist das Pattern das wir bearbeiten.
</Box> </Box>
Das Beispiel oben sieht ohne `off` so aus:
<MiniRepl
hideHeader
client:visible
tune={`stack(
n("<0 [4 <3 2>] <2 3> [~ 1]>*2").color("cyan"),
n("<0 [4 <3 2>] <2 3> [~ 1]>*2".add(7).late(1/8)).color("magenta")
).scale("<C4:minor Db4:mixolydian>/2")
.s("triangle").adsr(".01:.1:0").room(.5)`}
punchcard
/>
`off` ist auch nützlich für sounds: `off` ist auch nützlich für sounds:
<MiniRepl <MiniRepl

View File

@ -11,8 +11,6 @@ import QA from '@components/QA';
This is the first chapter of the Strudel Workshop, nice to have you on board! This is the first chapter of the Strudel Workshop, nice to have you on board!
## Make a Sound
Let's start by making some noise: Let's start by making some noise:
<MiniRepl hideHeader client:visible tune={`sound("casio")`} dirt /> <MiniRepl hideHeader client:visible tune={`sound("casio")`} dirt />
@ -34,7 +32,7 @@ You can always click inside and hit `ctrl`+`enter` to start / update and `ctrl+.
**Try more Sounds** **Try more Sounds**
You can pick a different sample from the same set, with ':' You can pick a different sample from the same set, with `:`, followed by a number:
<MiniRepl hideHeader client:visible tune={`sound("casio:0")`} hideHeader /> <MiniRepl hideHeader client:visible tune={`sound("casio:0")`} hideHeader />
@ -46,7 +44,7 @@ Not using a number is like doing `:0`
Here are some more sound sets to try: Here are some more sound sets to try:
``` ```
insect wind jazz metal east crow casio insect wind jazz metal east crow casio space numbers
``` ```
Try out different Combinations of sounds and numbers! You might hear a little pause while the sound is loading Try out different Combinations of sounds and numbers! You might hear a little pause while the sound is loading
@ -197,8 +195,7 @@ It is quite common that there are many ways to express the same idea.
client:visible client:visible
tune={`sound(\`bd*2, ~ cp, tune={`sound(\`bd*2, ~ cp,
~ ~ ~ oh, hh*4, ~ ~ ~ oh, hh*4,
[~ perc:1*2]*2, [~ sawtooth]*2\`)`}
[~ jvbass]*2\`)`}
punchcard punchcard
/> />

View File

@ -163,19 +163,6 @@ In the notation `x=>x.`, the `x` is the shifted pattern, which where modifying.
</Box> </Box>
The above is like writing:
<MiniRepl
hideHeader
client:visible
tune={`stack(
n("<0 [4 <3 2>] <2 3> [~ 1]>*2").color("cyan"),
n("<0 [4 <3 2>] <2 3> [~ 1]>*2".add(7).late(1/8)).color("magenta")
).scale("<C4:minor Db4:mixolydian>/2")
.s("triangle").adsr(".01:.1:0").room(.5)`}
punchcard
/>
off is also useful for sounds: off is also useful for sounds:
<MiniRepl <MiniRepl

View File

@ -76,6 +76,37 @@ export async function prebake() {
'east/007_taiko_2.wav', 'east/007_taiko_2.wav',
'east/008_taiko_3.wav', 'east/008_taiko_3.wav',
], ],
space: [
'space/000_0.wav',
'space/001_1.wav',
'space/002_11.wav',
'space/003_12.wav',
'space/004_13.wav',
'space/005_14.wav',
'space/006_15.wav',
'space/007_16.wav',
'space/008_17.wav',
'space/009_18.wav',
'space/010_2.wav',
'space/011_3.wav',
'space/012_4.wav',
'space/013_5.wav',
'space/014_6.wav',
'space/015_7.wav',
'space/016_8.wav',
'space/017_9.wav',
],
numbers: [
'numbers/0.wav',
'numbers/1.wav',
'numbers/2.wav',
'numbers/3.wav',
'numbers/4.wav',
'numbers/5.wav',
'numbers/6.wav',
'numbers/7.wav',
'numbers/8.wav',
],
}, },
'github:tidalcycles/Dirt-Samples/master/', 'github:tidalcycles/Dirt-Samples/master/',
), ),