Skip to content

Instantly share code, notes, and snippets.

@jchris
Created November 12, 2025 18:44
Show Gist options
  • Select an option

  • Save jchris/bacc104a4dbfbd0be88169ca6518962e to your computer and use it in GitHub Desktop.

Select an option

Save jchris/bacc104a4dbfbd0be88169ca6518962e to your computer and use it in GitHub Desktop.
aneurysm
// UK Garage Streets Sparse Happy
// Based on "Breed" chord progression and structure with spoken lyrics
// Intro/Interlude riff - D minor with balafon and kalimba textures
const introRiff = stack(
note("<d3 ~ ~ ~ a2 ~ ~ ~>")
.s("balafon")
.lpf(3500)
.gain(0.6)
.room(0.35)
.release(0.2),
note("<[d4,f4,a4] ~ ~ ~ [a3,c#4,e4] ~ ~ ~>")
.s("kalimba")
.attack(0.01)
.release(0.18)
.gain(0.45)
.room(0.4)
);
// Verse progression - layered mallets in D minor
const verseChords = stack(
note("d5 ~ ~ ~ a5 ~ ~ ~ f5 ~ ~ ~ ~ ~ ~ ~")
.s("gm_electric_guitar_muted")
.gain(0.65)
.room(0.5)
.delay(0.25)
.release(0.22),
note("d3 f3 a3 d4 f4 a3 f3 d3").euclid(5,8)
.s("gm_electric_guitar_muted")
.gain(0.75)
.room(0.45)
.release(0.25)
.lpf(2000)
);
// Chorus - glockenspiel melody with shimmer
const chorusRiff = note("<d4 f4 a4 d5>")
.s("gm_acoustic_guitar_nylon")
.gain(0.5)
.attack(0.3)
.release(0.5)
.room(0.6)
.lpf(4000);
// Bridge - vibraphone warmth
const bridgeRiff = note("<d3 a2 f3 a3>")
.s("vibraphone")
.gain(0.4)
.attack(0.4)
.release(0.6)
.room(0.7)
.lpf(3000);
// Bass line following D minor roots
const bassLine = note("<d2 a1 f2 a2>")
.s("sawtooth")
.gain(0.6)
.lpf(300)
.attack(0.005)
.release(0.08);
// Sparse UK garage-style drums with minimal subbler low-end emphasis
const drums = stack(
s("bd ~ ~ ~ bd ~ ~ ~ ~ ~ ~ ~ bd ~ ~ ~").gain(0.9),
s("~ ~ sd ~ ~ ~ ~ ~ ~ ~ sd ~ ~ ~ ~ ~").gain(0.75),
s("~ hh ~ ~ ~ hh ~ ~ ~ hh ~ ~ ~ hh ~ ~").gain(0.35),
s("~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ rim ~ ~ ~").gain(0.6)
).swing(0.15);
const drums2 = stack(
s("bd ~ ~ ~ ~ ~ bd ~ ~ ~ ~ ~ ~ bd ~ ~").gain(1.0),
s("~ ~ sd ~ ~ ~ ~ ~ sd ~ ~ ~ ~ ~ ~ ~").gain(0.85),
s("hh ~ ~ hh ~ ~ ~ ~ hh ~ ~ ~ ~ ~ hh ~").gain(0.4),
s("~ ~ ~ ~ ~ ~ ~ ~ ~ ~ rim ~ ~ ~ ~ ~").gain(0.65),
s("~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ cp ~").gain(0.5)
).swing(0.1);
// Sparse happy drums - minimal uplifting pattern
const alignedDrums = stack(
s("bd ~ ~ ~ ~ ~ ~ ~ bd ~ ~ ~ ~ ~ ~ ~").gain(0.85),
s("~ ~ ~ ~ sd ~ ~ ~ ~ ~ ~ ~ sd ~ ~ ~").gain(0.7),
s("~ hh ~ ~ ~ ~ hh ~ ~ hh ~ ~ ~ ~ hh ~").gain(0.45),
s("~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ rim ~ ~ ~ ~").gain(0.55),
s("~ ~ ~ cp ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~").gain(0.4)
).swing(0.08).gain(.6);
// Deep sub bass line with distortion and strategic rests
const subBass = note("<d1 ~ a0 ~ f1 ~ a1 ~>")
.s("sawtooth")
.gain(0.8)
.lpf(250)
.hpf(40)
.resonance(8)
.attack(0.01)
.release(0.15)
.dist(0.6);
// Verse 1 and Verse 2 lyrics with text-to-speech
const verse1Vocals = cat(
"come on over ~", "and do the twist",
"overdo it ~", "and have a fit",
"love you so much", "it makes me sick ~",
"come on over", "and do the twist"
).speak("en", 0).slow(1);
const verse2Vocals = cat(
"she keeps it pumpin straight to my heart",
).speak("en", 1).slow(2);
const verse3Vocals = cat(
"keeps it pumpin", "straight to my heart",
).speak("en", 4);
// Song structure: Intro -> Verse 1 with vocals -> Chorus -> Verse 2 with vocals -> Chorus -> Interlude -> Bridge -> Chorus
stack(
cat(
introRiff, // Intro
verseChords.slow(2), // Verse 1 (with vocals)
chorusRiff.slow(2), // Chorus 1
verseChords.slow(2), // Verse 2 (with vocals)
chorusRiff.slow(2), // Chorus 2
introRiff.slow(2), // Interlude
bridgeRiff.slow(2), // Bridge
chorusRiff.slow(2) // Final Chorus
).fast(2),
cat(bassLine.slow(2), subBass),
alignedDrums,
cat(
"~ ~ ".slow(2), // Silent during intro
verse1Vocals, // Vocals during verse 1
"~".slow(2), // Silent during chorus 1
verse2Vocals, // Vocals during verse 2
"~".slow(2), // Silent during chorus 2
verse3Vocals, // Vocals during interlude (Italian verse)
"~".slow(4) // Silent for rest (bridge, final chorus)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment