Strudelify
Ruiner cover art

1994 · The Downward Spiral

Ruiner

Nine Inch Nails

KeyA minorTempo116 bpm
0:00/0:00
// Ruiner — Nine Inch Nails
// 116 bpm, 4/4, key A minor. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: pitch bends are ignored
// note: duplicate parts dropped: ch 9 "BRASS 1" brass section (copy of ch 2 "TRUMPET" trumpet)
// note: Full arrangement: all 144 bars on a 16-step grid, each part at one level. Source detail keeps the original performance.
setcpm(116/4)

// Notation: c3@3 lasts 3 steps · ~ is a rest · [c3,e3] is a chord · "a, b" plays two voices at once · [...]/2 spreads a riff over 2 bars.
// A part's distinct bars are riffs (A, B, C...) played in order: edit a riff to change every repeat.

// other · pad poly · "POLYSYNTH"
const pad_poly = note(`<
  ~@8 A@2 B C A@2 B C A@2 B C A@2 B C ~@16 A@2 B C A@2 B C A@2 B C A@2 B C A@2 B C A@2 B C ~@80
>`.pickRestart({
  A: "a3!5 a#3 a3!7 g4 a3 a4", B: "f3!5 f#3 f3!7 g4 f3 a4", C: "d3!5 d#3 d3!7 g4 d3 a4",
})).s("gm_pad_poly").gain(0.41)

// chords · trumpet
const trumpet = note(`<
  ~@24 A@2 B@2 A@2 C@2 A@2 B@2 A@2 C@2 ~@24 A@2 B@2 A@2 C@2 A@2 B@2 A@2 C@2 ~@44 A@2 C@2 A@2 B@2 A@2 C@2 A@2 B@2 A@2 C@2
>`.pickRestart({
  A: "[e4@2 f4 g4, a4]/2", B: "[d4@4 c#4@3 ~, a4@7 ~]/2", C: "[d4@2 ~ c#5, a4@3 ~, ~ c#4]/2",
})).s("gm_trumpet").gain(0.8)

// other · piano · "A.PIANO 1"
const piano = note("<A@8 ~@136>".pickRestart({
  A: "c5/8",
})).s("gm_piano").gain(0.41)

// bass · fretless bass · "FRETLESS"
const bass = note(`<
  ~@24 A@16 ~@24 B@16 C D E F G H B@2 C D E F G H B@2 C D E F G H B@2 C D E F G H B@2 ~@12 B@20
>`.pickRestart({
  A: "a1!16", B: "a1!8", C: "c2@4 c2@3 d2", D: "g1!2 g1@2 ~@4", E: "d2@4 d2@3 e2", F: "a1 g1 a1@2 ~@4", G: "c2@2 c2!2",
  H: "b1!2 a#1!2",
})).s("gm_fretless_bass").gain(0.22)

// other · overdriven guitar · "OVERDRIVE"
const overdriven_guitar = note("<~@87 A B C D E@2 F G H I J K L M N O P Q R S T@2 U V W ~@32>".pickRestart({
  A: "~@4 e4 d4 c4@2", B: "g3@4 c4 d4!2 c4", C: "e4@2 d4 c4 a3@4 ~@4 a3@2 c4@2", D: "d4@3 d4@3 d4@2 d4@2 ~ d4@3 d4@2",
  E: "[e4 g4 a4@2 ~@2 d5@6 e5 d5 c5@2]/2", F: "g4@8 ~@2 c5 d5 c5@2 d5@2", G: "d5 e5!2 g5 d5 e5 d5 c5",
  H: "e5@2 g5@2 e5@2 g5@2 g5@3 g5@3 g5@2", I: "a5@2 a5!2", J: "a5 ~", K: "c4@4 d4@2 c4@2 d4@3 d4@3 d4@2",
  L: "d4@2 c4 a3 c4@4 ~@4 c4 d4 c4 g3", M: "c4@3 e4@3 g4@2 d5@6 d5 c5", N: "e5@2 e5 d5", O: "g4 a4 c5 a4 c5 a4 g4 a4",
  P: "e4 d4 c4@2 a4@4", Q: "g5", R: "d5 c5!2 d5 ~@4", S: "d5@2 c5@3 ~ d5@3 ~ e5@3 ~ e5@2",
  T: "[d5 c5 d5 c5 ~@2 d5@4 c#5 c5 d5 c5@2 c5]/2", U: "b4@3 b4@3 g3@2 e3@2 g3@4 e3@2",
  V: "a3@3 ~ a3@3 ~ d3 e3 f3 g3 a3 b3 c4 d4", W: "e4 f4 g4 a4 b4 c5 d5 e5 f5 g5 a5 b5 c6 d6 e6@2",
})).s("gm_overdriven_guitar").gain(0.41).pan(0)

// chords · distortion guitar · "DISTORTION"
const distortion_guitar = note("<~@112 A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 C>".pickRestart({
  A: "[a2,e3,a3]!8", B: "[d#3,a#3,d#4]!3 [c3,g3,c4]@3 [g2,d3,g3]@2",
  C: "[d#3,a#3,d#4]@2 [d#3,a#3,d#4]@2 [d#3,a#3,d#4]@2 [c3,g3,c4]@6 [g2,d3,g3]@3 ~", // D#5 C5 G5
})).s("gm_distortion_guitar").gain(0.19)

// drums · kick
const kick = s("bd").struct(`<
  A B A B A B A B A B A B A B A B C D C D C D C D E@16 A B A B A B A B A@8 C D C D C D C D E@16 ~@14 F@2 G H G H G H ~@2
  G H G I J H F@2 E@32
>`.pickRestart({
  A: "x ~@2 x ~@3 x!2 ~ x ~@4 x", B: "x ~@2 x ~@3 x!2 ~ x ~@2 x ~ x", C: "x ~@2 x!2 ~@2 x!2 ~ x ~ x ~@2 x",
  D: "x ~@2 x!2 ~@2 x!2 ~ x ~ x!2 ~ x", E: "x!2 ~ x", F: "~@3 x ~@3 x", G: "x ~@2 x ~@3 x", H: "x!2 ~ x ~ x ~ x",
  I: "x!4 ~@3 x", J: "x ~@2 x ~ x ~ x",
})).gain(0.51)

// drums · snare
const snare = s("sd").struct("<A@24 B@16 A@24 B@16 ~@14 C ~ B@6 D E B@6 C ~ B@32>".pickRestart({
  A: "~ x ~ x", B: "~ x", C: "x!3 ~@5", D: "x!8", E: "x ~ x ~ x ~ x ~ x!2 ~@6",
})).gain(0.51)

// drums · low tom
const low_tom = s("lt").struct("<~@95 [x!3 ~ x!3 ~] ~@7 [~@6 x!2] ~@7 [x!3 ~ x!3 ~] ~@32>").gain(0.41)

// drums · hihat
const hihat = s("hh").struct("<[x!8]!24 ~@16 [x!8]!8 [x!7 ~]!16 ~@80>").gain(0.31)

// drums · mid tom
const mid_tom = s("mt").struct("<~@94 [~@4 x!3 ~] ~@8 [~@5 x ~@2] ~@6 [~@4 x!3 ~] ~@33>").gain(0.41)

// drums · open hat
const open_hat = s("oh").struct("<~@48 [~@7 x]!16 ~@32 [x!4]!6 x ~ [x!4]!6 ~@34>").gain(0.31)

// drums · china
const china = s("cr").struct("<~@16 A@8 ~@32 A@8 ~@32 B ~ B ~@5 B ~ B ~@37>".pickRestart({
  A: "~ x ~ x", B: "x",
})).gain(0.51)

// drums · ride bell
const ride_bell = s("rd").struct("<~@16 [~ x ~ x]!8 ~@32 [~ x ~ x]!8 ~@80>").gain(0.51)

stack(
  pad_poly, trumpet, piano, bass, overdriven_guitar, distortion_guitar, kick, snare, low_tom, hihat, mid_tom, open_hat,
  china, ride_bell
)

More by Nine Inch Nails