notebook/strudel/20251222.md

1.3 KiB

await initHydra({feedStrudel:1})
gradient(1).mask(voronoi(1,1,1,1),2,0.3)
.repeat(2,2).color(1,H("<1 0 1 0>".slow(8),1,0))
.modulateRotate(osc(0.25,-0.5,-0.5),0.2,0.2)
.modulateRepeat(osc(0.5), 2.0, 2.0, 0.5, 0.5)
.scroll(2).hue(() => Math.sin(time)/8)
.out()
setcps(140/60/4)
$_:sound("- - sbd -").dec(perlin.range(0.3,1).slow(4)).gain(1/4).fast(1)
$:sound((rand.range(0,3).seg(4).slow(4))
        .pick(["- hh white hh",
               "hh white - hh",
               "hh hh - cr",
               "hh - hh oh"
              ])
        .off(1/16,x=>x.gain(1/8))
       ).fast(1)
  .dec(1/16).degradeBy(1/4)
  .sometimes(x=>x.ply(2)).pan(rand.slow(2.1))

$_:note("c1!2".off(1/32,x=>x.add(0.05,0.1,0.15))).sound("supersaw")
  .fm(2.1).fmh(1.1).dec(0.8)
  .lpf(sine.range(100,300).slow(12)).gain(0.2)

$_:note("c3!4").sound((rand.range(0,2).seg(3))
                     .pick(["gm_synth_bass_2:<2 0 7>",
                            "gm_pad_halo:<1 7 5>",
                            "gm_pad_metallic:<3 0 4>",
                           ]))
  .hpf(sine.range(300,800).seg(6).slow(7)).hpq(perlin.range(0,15).seg(16).slow(16))
  .sometimesBy(perlin.range(0.7,1).slow(4),x=>x.mask(0))
  .att(1/2).dec(1/4).sus(1/4).rel(1/2)
  .delay(1/2).dt(2/3).dfb(1/2).room(2).roomsize(2).gain(0.3)
  .pan(rand.slow(3.1)).rlp(3000).fast(1)

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