mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 21:58:37 +00:00
32 lines
870 B
JavaScript
32 lines
870 B
JavaScript
export default `samples('github:tidalcycles/dirt-samples')
|
|
setcps(1)
|
|
stack(
|
|
// amen
|
|
n("0 1 2 3 4 5 6 7")
|
|
.sometimes(x=>x.ply(2))
|
|
.rarely(x=>x.speed("2 | -2"))
|
|
.sometimesBy(.4, x=>x.delay(".5"))
|
|
.s("amencutup")
|
|
.slow(2)
|
|
.room(.5)
|
|
,
|
|
// bass
|
|
sine.add(saw.slow(4)).range(0,7).segment(8)
|
|
.superimpose(x=>x.add(.1))
|
|
.scale('G0 minor').note()
|
|
.s("sawtooth").decay(.1).sustain(0)
|
|
.gain(.4).cutoff(perlin.range(300,3000).slow(8)).resonance(10)
|
|
.degradeBy("0 0.1 .5 .1")
|
|
.rarely(add(note("12")))
|
|
,
|
|
// chord
|
|
note("Bb3,D4".superimpose(x=>x.add(.2)))
|
|
.s('sawtooth').cutoff(1000).struct("<~@3 [~ x]>")
|
|
.decay(.05).sustain(.0).delay(.8).delaytime(.125).room(.8)
|
|
,
|
|
// alien
|
|
s("breath").room(1).shape(.6).chop(16).rev().mask("<x ~@7>")
|
|
,
|
|
n("0 1").s("east").delay(.5).degradeBy(.8).speed(rand.range(.5,1.5))
|
|
).reset("<x@7 x(5,8)>")`;
|