Files
hello-strudel/angel-dust.js
T
2026-10-06 20:14:13 +02:00

73 lines
2.8 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// angel dust — a switch angel–style live-coded trance tune
// paste into https://strudel.cc and press ctrl+enter
// mute a part by prefixing its label with _ (e.g. _$: ), solo with S$:
setcpm(140 / 4)
// i – VI – III – VII in A minor, one chord per bar
const chords = "<Am F C G>"
const roots = "<a1 f1 c2 g1>"
// 64-bar arc: intro (8) → build (8) → drop (32) → break (8) → drop (8)
const drums = "<0@8 1@8 1@32 0@8 1@8>"
const drop = "<0@16 1@32 0@8 1@8>"
const brk = "<0@48 1@8 0@8>"
const build = "<0@8 1@8 0@32 1@8 0@8>"
// ── drums ──────────────────────────────────────────────
$: s("bd*4").bank("RolandTR909").gain(1.1)
.mask(drums)
$: s("~ cp ~ cp").bank("RolandTR909").room(.3).gain(.8)
.mask(drop)
$: s("[~ oh]*4").bank("RolandTR909").gain(.55).hpf(6000)
.mask(drums)
$: s("hh*16").bank("RolandTR909")
.gain("[.5 .25 .8 .25]*4").hpf(8000).pan(sine.fast(2).range(.3, .7))
.mask(drop)
// ── rolling offbeat bass ───────────────────────────────
$: note(roots).struct("[~ x x x]*4")
.s("sawtooth").lpf(500).lpenv(2).lpq(4)
.decay(.12).sustain(0).gain(.9)
.mask(drums)
// ── acid 303 — the switch angel signature ─────────────
$: n("0 0 7 0 3 0 <10 12> 5 0 0 7 3 <8 15> 0 3 <7 -2>")
.scale("A2:minor")
.s("sawtooth")
.lpf(sine.slow(16).range(300, 3200)).lpq(14).lpenv(3).ftype("ladder")
.decay(.15).sustain(.2)
.shape(.35).delay(.25).delaytime(3 / 16).delayfeedback(.4)
.gain(.55)
.mask("<0@8 1@56>")
// ── trance-gated supersaw chords ───────────────────────
$: chord(chords).voicing().add(note(12))
.struct("x x ~ x x ~ x x x ~ x x ~ x x x")
.s("supersaw").unison(7).detune(.35).spread(.8)
.lpf(perlin.range(2500, 6000)).attack(.005).decay(.1).sustain(.6).release(.1)
.room(.5).size(4).gain(.45)
.mask(drop)
// ── breakdown pad + lead ───────────────────────────────
$: chord(chords).voicing()
.s("supersaw").unison(5).detune(.2)
.attack(1).release(2).lpf(sine.slow(8).range(800, 4000))
.room(.9).size(8).gain(.35)
.mask("<1@8 0@40 1@8 0@8>")
$: note("<[e5 ~ a5 c6] [c6 ~ a5 f5] [g5 ~ e5 c5] [d5 ~ g5 b5]>")
.s("triangle").delay(.5).delaytime(3 / 8).delayfeedback(.5)
.room(.7).gain(.4)
.mask(brk)
// ── risers ─────────────────────────────────────────────
$: s("white").hpf(saw.slow(8).range(400, 9000)).gain(saw.slow(8).range(0, .3))
.mask(build)
$: s("sd*16").bank("RolandTR909").gain(saw.slow(8).range(.1, .7))
.mask(build)