notebook/strudel/slow wave.md
2025-11-30 16:12:29 +09:00

1.1 KiB

setcps(30/60/2)

samples('github:bubobubobubobubo/dough-waveforms')
$:sound("[sbd - sbd -]")
  .off(.35,x=>x.delay(1/4).dt(1/4).room(1/8)).dec(0.3).gain(0.2).lpf(200)

$:sound("[- hh - -]")
  .off(.25,x=>x.delay(1/2).dt(1/4).dfb(1/2)).dec(0.5).gain(0.3)

$:stack(
note("a2 f2 c2 g2").sound("wt_11").slow(1)
  .n(run("8").add("<8 16 4>")).dec(2/3)
  .lpf(perlin.range(100,300).slow(7)).lpq("<0 10>").lpenv(-1)
  .sometimes(x=>x.mask("0|1|0|1")),

note("e3 a3 e3 b3").sound("wt_12").slow(2)
  .n(run(8).add("<7 14 28>")).dec(1/2)
  .lpf(tri.range(100,1200).slow(16)).lpenv(1).lpa(.1)
  .sometimes(x=>x.mask("1|1|0|0")),

note("e3 c3 g3 d3").sound("wt_08").slow(2)
  .n(run(8).add("<81 9 3>")).dec(1/2)
  .lpf(berlin.range(300,900).slow(8))
  .sometimes(x=>x.mask("0|0|1|1")),

note("a3 c4 e4 e4 gs4 b4 d4 a3 c4 e4").sound("wt_12").fast(2)
   .n(run(8).add("<4 16 24>")).dec(0.5)
  .lpf(sine.range(200,600).slow(6))
  .sometimes(x=>x.mask("0")).someCycles(x=>x.rev().late(1/8)),
).delay(1/2).dt(1/8).dfb(2/3).room(2)

all(x=>x.postgain(1))