Skip to content

Instantly share code, notes, and snippets.

@BitPatty
Last active July 16, 2025 08:21
Show Gist options
  • Save BitPatty/2030e06cbed0d5caabff013872e72c3b to your computer and use it in GitHub Desktop.
Save BitPatty/2030e06cbed0d5caabff013872e72c3b to your computer and use it in GitHub Desktop.
setcpm(120)
const i_dr = "rolandtr505"
const i_gt = "gm_electric_guitar_jazz"
const i_gt2 = "gm_acoustic_guitar_nylon"
$: sound("gm_seashore").gain(2).sometimesBy(.3, x => x.gain(3))
$: sound("<0 - 1? - - - 0 - - 0 - ->".pick(["bd", "bd sd"])).bank(i_dr).gain(.3).lpf(800);
$: sound("<-@4 1 -@5 1 0? ->".pick(["cp cp", "hh hh"])).bank(i_dr).gain(.2).lpf(1100)
$: note("<0@3 1@3 2@3 3@3>".pick([
"<- 3 [0,7]>*2".add(45).attack(.05).release(.3),
"<- [3,12] [0,7,15]>".add(47).attack(.05).release(.3),
"<- [12,15] [0,12]>*2".add(45).attack(.05).release(.3),
"<- 3 [12,15]>".add(47).attack(.05).release(.3)
])).sound(i_gt2).room(.8).gain(cosine.range(.3, .8))._pianoroll()
$: note("<0@3 1@3 2@3 3@3>".pick([
"<[0,12]!2 - ->*2".add(45),
"<[3,15] - ->*2".add(47).sustain(.5),
"<[3,15]!2 - ->*2".add(45),
"<[0,12] - ->*2".add(47)
])).sound(i_gt).gain(.3).room(.5)
$: note("<0@3 1@3 2@3 3@3>".pick([
"<[0,12]!2 12 0>*2".add(45).attack(.2).sustain(1),
"<[3,15] 15 3>*2".add(47).attack(.2).sustain(1),
"<[3,15]!2 15 3>*2".add(45).attack(.2).sustain(1),
"<[0,12] 12 0>*2".add(47).attack(.2).sustain(1),
])).sound(i_gt2).gain(.3).room(.4)
$: note(`
<
- - - - [- 12] [0,12] 0 - - [- 12] [15 12]
- - - - [- 12] [0,12] 0 - - [- 0] [15 12]!2
- - - - [- 12] [0,12] 0 - - [- 0] 15
>
`.add(45)).sound(i_gt).gain(sine).room(.8).jux(rev).attack(.2).sustain(1).decay(.5)
$: note("<-@11 1>").add(47).sound("glockenspiel").gain(.7)
$: note("<[0,1] [0,1] [0,2] [0,3] [0 4] [0 5] 3 [7 3] [1 7] [2 4] [0,1] [3 4] [5,2]>*2"
.shuffle(2).add(40)).sound("bongo").gain(sine.range(1, 1.5)).room(.6).sometimesBy(0.25, x => x.gain(3)).lpf(1200)
$: note("<-@5 48?>").sound("east").gain(.4);
$: note("<-@6 0 0? [0,1]? [- 0,1] - - -@6 1 [0,1] - 1 [- 1] [0,1]>".add(45)).sound("woodblock").gain(.6).room(.5)._spectrum()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment