Merge pull request #1077 from daslyfe/fix_formatting_test

fix failing format test
This commit is contained in:
Jade (Rose) Rowland 2024-04-28 14:44:29 -04:00 committed by GitHub
commit 4015a11bd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 40 additions and 41 deletions

View File

@ -83,15 +83,15 @@ Let's combine all of the above into a little tune:
<MiniRepl <MiniRepl
client:visible client:visible
tune={`stack( tune={`stack(
stack( stack(
sound("hh*8").gain("[.25 1]*4"), sound("hh*8").gain("[.25 1]*4"),
sound("bd*4,[~ sd:1]*2") sound("bd*4,[~ sd:1]*2")
), ),
note("<[c2 c3]*4 [bb1 bb2]*4 [f2 f3]*4 [eb2 eb3]*4>") note("<[c2 c3]*4 [bb1 bb2]*4 [f2 f3]*4 [eb2 eb3]*4>")
.sound("sawtooth").lpf("200 1000 200 1000"), .sound("sawtooth").lpf("200 1000 200 1000"),
note("<[c3,g3,e4] [bb2,f3,d4] [a2,f3,c4] [bb2,g3,eb4]>") note("<[c3,g3,e4] [bb2,f3,d4] [a2,f3,c4] [bb2,g3,eb4]>")
.sound("sawtooth").vowel("<a e i o>") .sound("sawtooth").vowel("<a e i o>")
) `} )`}
/> />
<Box> <Box>
@ -152,9 +152,9 @@ Can you guess what they do?
<MiniRepl <MiniRepl
client:visible client:visible
tune={`stack( tune={`stack(
note("[~ [<[d3,a3,f4]!2 [d3,bb3,g4]!2> ~]]*2") note("[~ [<[d3,a3,f4]!2 [d3,bb3,g4]!2> ~]]*2")
.sound("gm_electric_guitar_muted"), .sound("gm_electric_guitar_muted"),
sound("<bd rim>").bank("RolandTR707") sound("<bd rim>").bank("RolandTR707")
).delay(".5")`} ).delay(".5")`}
/> />
@ -200,12 +200,12 @@ Add a delay too!
<MiniRepl <MiniRepl
client:visible client:visible
tune={`stack( tune={`stack(
note("[~ [<[d3,a3,f4]!2 [d3,bb3,g4]!2> ~]]*2") note("[~ [<[d3,a3,f4]!2 [d3,bb3,g4]!2> ~]]*2")
.sound("gm_electric_guitar_muted").delay(.5), .sound("gm_electric_guitar_muted").delay(.5),
sound("<bd rim>").bank("RolandTR707").delay(.5), sound("<bd rim>").bank("RolandTR707").delay(.5),
n("<4 [3@3 4] [<2 0> ~@16] ~>") n("<4 [3@3 4] [<2 0> ~@16] ~>")
.scale("D4:minor").sound("gm_accordion:2") .scale("D4:minor").sound("gm_accordion:2")
.room(2).gain(.5) room(2).gain(.5)
)`} )`}
/> />
@ -214,15 +214,15 @@ Let's add a bass to make this complete:
<MiniRepl <MiniRepl
client:visible client:visible
tune={`stack( tune={`stack(
note("[~ [<[d3,a3,f4]!2 [d3,bb3,g4]!2> ~]]*2") note("[~ [<[d3,a3,f4]!2 [d3,bb3,g4]!2> ~]]*2")
.sound("gm_electric_guitar_muted").delay(.5), .sound("gm_electric_guitar_muted").delay(.5),
sound("<bd rim>").bank("RolandTR707").delay(.5), sound("<bd rim>").bank("RolandTR707").delay(.5),
n("<4 [3@3 4] [<2 0> ~@16] ~>") n("<4 [3@3 4] [<2 0> ~@16] ~>")
.scale("D4:minor").sound("gm_accordion:2") .scale("D4:minor").sound("gm_accordion:2")
.room(2).gain(.4), .room(2).gain(.4),
n("[0 [~ 0] 4 [3 2] [0 ~] [0 ~] <0 2> ~]/2") n("[0 [~ 0] 4 [3 2] [0 ~] [0 ~] <0 2> ~]/2")
.scale("D2:minor") .scale("D2:minor")
.sound("sawtooth,triangle").lpf(800) .sound("sawtooth,triangle").lpf(800)
)`} )`}
/> />
@ -237,7 +237,7 @@ Try adding `.hush()` at the end of one of the patterns in the stack...
<MiniRepl <MiniRepl
client:visible client:visible
tune={`sound("numbers:1 numbers:2 numbers:3 numbers:4") tune={`sound("numbers:1 numbers:2 numbers:3 numbers:4")
.pan("0 0.3 .6 1")`} .pan("0 0.3 .6 1")`}
/> />
**speed** **speed**
@ -295,8 +295,8 @@ We can change the automation speed with slow / fast:
<MiniRepl <MiniRepl
client:visible client:visible
tune={`note("<[c2 c3]*4 [bb1 bb2]*4 [f2 f3]*4 [eb2 eb3]*4>") tune={`note("<[c2 c3]*4 [bb1 bb2]*4 [f2 f3]*4 [eb2 eb3]*4>")
.sound("sawtooth") .sound("sawtooth")
.lpf(sine.range(100, 2000).slow(4))`} .lpf(sine.range(100, 2000).slow(4))`}
/> />
<Box> <Box>

View File

@ -270,16 +270,16 @@ This is shorter and more readable than:
Now we've learned the basics of the so called Mini-Notation, the rhythm language of Tidal. Now we've learned the basics of the so called Mini-Notation, the rhythm language of Tidal.
This is what we've learned so far: This is what we've learned so far:
| Concept | Syntax | Example | | Concept | Syntax | Example |
| ------------------- | -------- | ----------------------------------------------------------------------- | | ----------------- | -------- | ----------------------------------------------------------------------- |
| Sequence | space | <MiniRepl client:visible tune={`sound("bd bd sd hh")`} /> | | Sequence | space | <MiniRepl client:visible tune={`sound("bd bd sd hh")`} /> |
| Sample Number | :x | <MiniRepl client:visible tune={`sound("hh:0 hh:1 hh:2 hh:3")`} /> | | Sample Number | :x | <MiniRepl client:visible tune={`sound("hh:0 hh:1 hh:2 hh:3")`} /> |
| Rests | - or ~ | <MiniRepl client:visible tune={`sound("metal - jazz jazz:1")`} /> | | Rests | - or ~ | <MiniRepl client:visible tune={`sound("metal - jazz jazz:1")`} /> |
| Alternate | \<\> | <MiniRepl client:visible tune={`sound("<bd hh rim oh bd rim>")`} /> | | Alternate | \<\> | <MiniRepl client:visible tune={`sound("<bd hh rim oh bd rim>")`} /> |
| Sub-Sequences | \[\] | <MiniRepl client:visible tune={`sound("bd wind [metal jazz] hh")`} /> | | Sub-Sequences | \[\] | <MiniRepl client:visible tune={`sound("bd wind [metal jazz] hh")`} /> |
| Sub-Sub-Sequences | \[\[\]\] | <MiniRepl client:visible tune={`sound("bd [metal [jazz [sd cp]]]")`} /> | | Sub-Sub-Sequences | \[\[\]\] | <MiniRepl client:visible tune={`sound("bd [metal [jazz [sd cp]]]")`} /> |
| Speed up | \* | <MiniRepl client:visible tune={`sound("bd sd*2 cp*3")`} /> | | Speed up | \* | <MiniRepl client:visible tune={`sound("bd sd*2 cp*3")`} /> |
| Parallel | , | <MiniRepl client:visible tune={`sound("bd*2, hh*2 [hh oh]")`} /> | | Parallel | , | <MiniRepl client:visible tune={`sound("bd*2, hh*2 [hh oh]")`} /> |
The Mini-Notation is usually used inside some function. These are the functions we've seen so far: The Mini-Notation is usually used inside some function. These are the functions we've seen so far:

View File

@ -164,7 +164,6 @@ off is also useful for modifying other sounds, and can even be nested:
.off(3/16, y=>y.vowel("<a e i o>*8")))`} .off(3/16, y=>y.vowel("<a e i o>*8")))`}
/> />
| name | description | example | | name | description | example |
| ---- | ------------------------------ | ------------------------------------------------------------------------------------------- | | ---- | ------------------------------ | ------------------------------------------------------------------------------------------- |
| rev | reverse | <MiniRepl client:visible tune={`n("0 2 4 6 ~ 7 9 5").scale("C:minor").rev()`} /> | | rev | reverse | <MiniRepl client:visible tune={`n("0 2 4 6 ~ 7 9 5").scale("C:minor").rev()`} /> |