Skip to content

Instantly share code, notes, and snippets.

@xxAROX
Created June 7, 2026 14:04
Show Gist options
  • Select an option

  • Save xxAROX/cffd2b86e2a623164f05f147f0896157 to your computer and use it in GitHub Desktop.

Select an option

Save xxAROX/cffd2b86e2a623164f05f147f0896157 to your computer and use it in GitHub Desktop.
setcpm(97 / 4)
const key = "c:major"
const drums = stack(
s("bd").beat("<[0] [0, 3, 6]@3>", 16).bank("RolandTR909").gain(1.5),
s("bd").beat("<[0] [0, 3, 6]@3>", 16).bank("bossdr110").gain(1.5).room(0.5),
s("cp").beat("1, 3", 4).bank("mc303").gain(3),
s("cp").beat("1, 3", 4).bank("RolandTR808").gain(1.5),
s("dantranh_vibrato").beat("1, 3, 7", 8).decay(.9).gain(.4).speed(1.9),
)._pianoroll()
const melody = note("<[4 ~ [4 ~] [2 ~] [6 ~ ~] [4 ~] [5 ~] [6 ~]] [[7] ~ [8 ~] [6 ~] [6 ~] [6]]>")
.s("saw").room(0.3).scale(key).transpose(12).gain(0.6)._pianoroll()
const bass = note("<[0@2 -1@2 2 ~@1.5 2@2]>").lpf(2000).orbit("5").room(.8).gain(3)._pianoroll()
stack(
drums,
melody,
bass,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment