Strudelify

Machinehead

Bush

KeyE majorTempo113 bpm
0:00/0:00
// Machinehead — Bush
// 113 bpm, 4/4, key E major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: metre changes (4/4 at bar 1, 2/4 at bar 107, 4/4 at bar 108) are rendered on a constant 4/4 grid of one bar per cycle
// note: pitch bends are ignored
// note: sustain pedal (CC 64) lengthens the held notes
// note: duplicate parts dropped: ch 5 "Guitar 2" distortion guitar (copy of ch 4 "Guitar 2" distortion guitar)
// note: Full arrangement: all 114 bars on a 32-step grid, each part at one level. Source detail keeps the original performance.
// note: Guitar parts that double another keep only their own notes (fills, solos): Guitar 2.
setcpm(113/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.

// bass · electric bass finger · "Bass"
const bass = note(`<
  ~@2 A ~ B@2 C@2 B@2 D E F B D G H I D G H B D E H B D G H B D G H B D G F B J K J K L M N O P Q R S D G H B D G H B D
  G H B D G H B T U T V W X W Y Z AA Z AB AC AD AE ~ D AD H B D AF AG AH AI AJ AI AJ AI AJ AI AK@7 AL@2 ~@8
>`.pickRestart({
  A: "c#2@13 ~@3", B: "a1@3 ~ a1@6 ~@2 a1 ~ a1@3 ~ a1@5 ~ a1@6 ~@2",
  C: "c#2@3 ~ c#2@6 ~@2 c#2 ~ c#2@3 ~ c#2@5 ~ c#2@6 ~@2", D: "c#2@3 ~ c#2@3 ~ c#2 ~@5 c#2@3 ~ c#2@2 c#2@3 ~ c#2@7 ~",
  E: "c#2@3 ~ c#2@3 ~ c#2 ~@3 c#2 ~ c#2@3 ~ c#2@2 c#2@4 c#2@5 ~ g#1@2", F: "a1@3 ~ a1@6 ~@4 a1@6 a1@5 ~@7",
  G: "c#2@3 ~ c#2@3 ~ c#2 ~@3 c#2 ~ c#2@3 ~ c#2@2 c#2@3 ~ c#2@5 ~ g#1@2", H: "a1@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e3@3 ~ e3@3 a2, ~@15 f#2@4 f#2@4 f#2@4 f#2@4 f#2@4 f#2@4 f#2@4 ~@4 a2@4 a2@4 a2@4 a2@4 a2@4 a2@4 a2@4 a2@4 f#2@4 f#2@4 f#2@4 f#2@4 f#2@4 f#2@4 f#2@4 ~@4 a2@4 a2@4 a2@4 a2@4 a2@4 a2@4 a2@4 a2@4 f#2@4 f#2@4 f#2@4 f#2@4 f#2@4 f#2@4 f#2@4 ~@4 a2@4 a2@4 a2@4 a2@4 ~]/6",
  J: "[e3@3 ~ e3@3 ~ e3@3 e2@2 e2@2 ~ [b2,e3]@64 ~@16, ~@3 a2@4 a2@4 ~@4 e2@64 ~@17]/3", // E5
})).s("gm_distortion_guitar").gain(0.11)

// chords · string ensemble 2 · "Strings" · Fm G#5 E
const string_ensemble_2 = note(`<
  ~@62
  [f#4@16 [f4,g#4]@15 ~]
  [[f4,g#4]@15 ~ [d#4,g#4]@15 ~]
  [[e4,g#4]]
  [[e4,g#4]@13 ~@3]
  ~@48
>`).s("gm_string_ensemble_2").gain(0.22).pan(0.7)

// drums · kick
const kick = s("bd").struct(`<
  ~@2 A ~ B C D@2 E B D@8 F G F G F G F G F G F G F G F G F G F G ~@7 H I@3 J D@4 F G F G F G F G F G F G K F K F K F@2
  ~ I@3 J F G F G F G F G F@2 D F K F K F K F@2 L M N M N M N O P ~@8
>`.pickRestart({
  A: "x", B: "x ~ x ~@4 x ~ x ~@6", C: "x ~ x ~@4 x ~ x!2 ~@5", D: "x ~ x ~@4 x ~@8", E: "~@7 x ~ x ~@6",
  F: "x ~ x ~@4 x ~@2 x ~@5", G: "x ~ x ~@2 x ~ x ~@2 x ~@5", H: "x!8", I: "x ~@6 x ~@2 x ~@3 x ~",
  J: "x ~@6 x ~@2 x ~@5", K: "x ~ x ~@4 x ~@2 x ~@3 x ~", L: "x ~@3 x ~@9 x ~@5 x ~@10 x",
  M: "~@3 x ~@9 x ~@5 x ~@7 x ~@3 x", N: "~@3 x ~@9 x ~@5 x ~@11 x", O: "~@3 x ~@9 x ~@5 x ~@12", P: "~@5 x ~@26",
})).gain(0.36)

// drums · snare
const snare = s("sd").struct(`<
  ~@4 A B C@2 D E C@3 E C@2 D F C@3 B C@3 F C@3 B C@3 F C@2 D G ~@7 H I@3 J C@2 D F C@3 E C B C F C@2 D K C L C I C L C
  I@4 M C@3 L C@3 E C@3 E C L C N C L C O P Q P R P S P ~@9
>`.pickRestart({
  A: "~@4 x ~@7 x ~@2 x", B: "~@4 x ~@4 x ~@2 x!3 ~", C: "~@4 x ~@4 x ~@2 x ~@2 x", D: "~ x ~@2 x ~@4 x ~@2 x ~@2 x",
  E: "~@4 x ~@4 x ~@2 x!4", F: "~ x ~@2 x ~@4 x ~@2 x!4", G: "~ x ~@2 x ~@7 x!3 ~", H: "~ x!7",
  I: "~@4 x ~@4 x ~@2 x ~@3", J: "~@4 x ~@7 x!4", K: "~ x ~@2 x ~@4 x ~@2 x!3 ~", L: "~@4 x ~@4 x ~@2 x ~ x!2",
  M: "~@4 x ~@3 x ~@3 x!4", N: "~@4 x ~@4 x ~@2 x!2 ~@2", O: "~@8 x ~@9 x ~@5 x ~ x ~ x!2 ~@2",
  P: "~@7 x ~@9 x ~@5 x ~@5 x ~@2", Q: "~@7 x ~@9 x ~@5 x ~ x ~ x ~ x ~@2", R: "~@7 x ~@9 x ~@5 x ~ x ~@6",
  S: "~@7 x ~@9 x ~@5 x ~@3 x ~ x ~@2",
})).gain(0.5)

// drums · low tom
const low_tom = s("lt").struct("<~@69 [~@7 x] ~@23 [~@14 x!2] ~@7 [~@27 x ~ x ~@2] ~@12>").gain(0.21)

// drums · hihat
const hihat = s("hh").struct("<~@4 A B A B@2 C ~@28 B@6 D ~@69>".pickRestart({
  A: "~ x!7", B: "x!8", C: "x!5 ~@3", D: "x!6 ~@2",
})).gain(0.43)

// drums · open hat
const open_hat = s("oh").struct(`<
  ~@9 A B C B D B C@3 B C@2 E F G F H B I@2 J F I K L B I@2 M ~@6 N ~ B@3 O B C@3 B C@2 I F P F H B I@2 J Q R S O S R B
  C B@3 O B C@2 E F G F H B@2 Q O Q R S O S R B R T U V W V U X ~@9
>`.pickRestart({
  A: "~@5 x ~@2", B: "~ x!7", C: "x!8", D: "x ~ x ~ x ~ x ~ x ~ x ~ x!2 ~@2",
  E: "x ~@4 x ~@3 x ~@3 x ~@3 x ~@3 x ~@3 x ~@6", F: "~@5 x ~@3 x ~@3 x ~@3 x ~@3 x ~@3 x ~@3 x ~@2",
  G: "x ~@4 x ~@3 x ~@3 x ~@3 x ~@3 x ~@2 x ~@3 x ~@3", H: "x ~@4 x ~@3 x ~@3 x ~@3 x ~@2 x ~@11",
  I: "x ~@4 x ~@3 x ~@3 x ~@3 x ~@3 x ~@3 x ~@3 x ~@2", J: "x ~@4 x ~@3 x ~@3 x ~@2 x ~@3 x ~@7 x ~@3",
  K: "x!2 ~@3 x ~@3 x ~@3 x ~@3 x ~@3 x ~@3 x ~@3 x ~@2", L: "~ x ~@3 x ~@3 x ~@3 x ~@3 x ~@3 x ~@3 x ~@3 x ~@2",
  M: "x ~@4 x ~@3 x ~@3 x ~@2 x ~@7 x ~@7", N: "~@3 x", O: "~ x!5 ~@2", P: "x ~@4 x ~@3 x ~@3 x ~@3 x ~@3 x ~@6 x ~@3",
  Q: "~ x!3 ~ x!3", R: "~ x!6 ~", S: "~ x!2 ~@2 x!3", T: "~@3 x ~@3 x ~@3 x ~@7 x ~@3 x ~@3 x ~@4",
  U: "~@3 x ~@3 x ~@3 x ~@3 x ~@3 x ~@3 x ~@8", V: "~@3 x ~@3 x ~@11 x ~@3 x ~@3 x ~@4",
  W: "~@3 x ~@3 x ~@3 x ~@3 x ~@3 x ~@12", X: "~@3 x ~@3 x ~@3 x ~@3 x ~@3 x ~@3 x ~@3 x ~@4",
})).gain(0.36)

// drums · crash
const crash = s("cr").struct(`<
  ~@2 A ~ A ~ A ~@3 A ~ A ~ A ~@3 A ~@3 A ~ A ~ A ~@3 A ~@3 A ~@11 A@5 ~@3 A ~@3 A ~ A ~ A ~@3 B A C A C A@2 ~ A@5 ~@3 A
  ~ A ~ A@2 B A B A C A C A@2 D E F G F G F@2 H ~@8
>`.pickRestart({
  A: "x", B: "x ~@6 x ~@8", C: "x ~@2 x ~@4", D: "x ~@30 x", E: "~@13 x ~@17 x", F: "~@31 x", G: "~@11 x ~@19 x",
  H: "~@7 x ~@24",
})).gain(0.36)

// drums · ride
const ride = s("rd").struct("<~@38 x ~@3 x!2 ~@70>").gain(0.36)

stack(
  bass, distortion_guitar, distortion_guitar_2, distortion_guitar_3, string_ensemble_2, kick, snare, low_tom, hihat,
  open_hat, crash, ride
)

More by Bush