fix failing format test

This commit is contained in:
Jade (Rose) Rowland 2024-04-28 14:36:52 -04:00
parent 19ef941c9d
commit ce79a44848

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>