Strudelify
Maxwell's Silver Hammer cover art

Abbey Road

Maxwell's Silver Hammer

The Beatles

KeyA majorTempo138 bpm
0:00/0:00
// Maxwell's Silver Hammer — The Beatles
// 138 bpm, 4/4, key A major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: pitch bends are ignored
// note: duplicate parts dropped: ch 2 "Brass" brass section (copy of ch 1 "Flute (voice)" flute)
// note: Full arrangement: all 112 bars on a 16-step grid, each part at one level. Source detail keeps the original performance.
setcpm(138/4)

// Notation: c3@3 lasts 3 steps · ~ is a rest · [...]/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 · fretless bass · "Bass"
const bass = note(`<
  A B C D E F G H A B C D E F G I J@2 K@2 L@2 C M E N O@2 A P Q R A B C D E F G H A B C D E F G I J@2 K@2 L@2 C M E N C
  S L T C U V W X Y A P Q R A B C D E F G H A B C D E F G I J@2 K@2 L@2 C M E N C S L T C U V W X Y A P Q Z
>`.pickRestart({
  A: "d3 c#3", B: "b2@2 f#2 b2", C: "e3 b2", D: "e3 d3 c#3 b2", E: "a2 c#3", F: "e3@2 a2 c#3", G: "d3@2 c#3 b2",
  H: "a2!2 b2 c#3", I: "a2@2 a2@2 a2 c#3 e3@2", J: "[b3@7 b3]/2", K: "[g3@5 a2 b2 c#3]/2", L: "d3 a2",
  M: "b2@3 g2 g#2@2 b2@2", N: "e3 a2", O: "[e3@4 a3 a3@2 f#3@3 a2@2 d3@2 ~@2]/2", P: "b2 a2", Q: "g2 a2 b2 c#3",
  R: "d3 e3 c#3@2 d3@2 a2@2", S: "a2 b2 c#3 a2", T: "d3@3 a2 d3@2 d#3@2", U: "g#2 b2 g#2 e2 f#2@2 e2@2", V: "a2 e2",
  W: "a2@2 e2 a2", X: "e3 b2 a2 c#3", Y: "d3 a2 d2 ~", Z: "d3 e3 a2@2 d2@2 ~@2",
})).s("gm_fretless_bass").gain(0.56)

// other · piano · "El Piano"
const piano = note(`<
  A B C@2 D@2 E@2 A B C@2 D@2 F@2 G@2 H I J K L@2 M N O ~ P Q R S A B C@2 D@2 E@2 A B C@2 D@2 F@2 G@2 H I J K L@2 M N T
  U V@2 W@2 X@2 Y Z AA AB AC@2 A B C@2 D@2 E@2 A B C@2 D@2 F@2 G@2 H I J K L@2 M N T U V@2 W@2 X@2 Y Z AD AE AF AG
>`.pickRestart({
  A: "~ d4 ~ a3", B: "~ d#4 ~ a4", C: "[~@2 e4@2 ~@2 e4 e4@3 e4@2 e4@2 e4@2]/2",
  D: "[~@2 e4@2 ~@2 c#4 g4@2 ~@2 e4@2 e4@3]/2", E: "[~@2 d4@2 f#4 d4@2 c#4@3 c#4@2 d4@2 e4@2]/2",
  F: "[~@2 d4@2 f#4 d4@2 c#4@7 ~@2]/2", G: "[d4@7 d4]/2", H: "c#4!2 d4 d#4", I: "e4 c#4 d4 e4", J: "~ f#4 ~ f#4",
  K: "~@2 f#4 d4@2 ~@3", L: "[~@2 d4@2 d4 g#4@2 g#4@2 b4 g#4 e4 f#4@2 e4@2]/2", M: "~ g4 ~ g4",
  N: "~@2 g4 e4@2 ~ c#4@2", O: "~@2 b3@2 e4 c#4@2 ~", P: "f#4 a#4", Q: "d5 c5", R: "b4 d5 g5 e5",
  S: "f#5 g5 e5@2 f#5@2 d5@2", T: "~ b3 ~ b3", U: "e4!4", V: "[f#4 a4@2 d5@2 b4 a4 f#4]/2",
  W: "[g#4@2 b4@4 e5@4 g#4!2 f#4@2 e4@2]/2", X: "[a4@2 b4@4 e5@4 d5@2 c#5@2 a4 d4]/2", Y: "e4@4 d4@4 f4 e4@3 d4 e4@3",
  Z: "d4@2 d5 ~", AA: "f#4@4 d4 f#4@2 a4 a#4@4 e4 f#4@2 a4", AB: "b4@4 d4 f#4@2 b4 c5@4 d4 f#4@2 c5", AC: "b4/2",
  AD: "d4 e4", AE: "d4!2", AF: "d5 b4 f4 e4", AG: "f#4@2 d5 ~",
})).s("gm_piano").gain(0.53).pan(0.1)

// other · piano · "Piano 2"
const piano_2 = note(`<
  A B C@2 D@2 E@2 A B C@2 D@2 F@2 G@2 H@2 I ~ J K L M N@2 O P Q R A B C@2 D@2 E@2 A B C@2 D@2 F@2 G@2 H@2 I ~ J K L M S
  T U@2 V@2 W@2 X Y Z AA AB@2 A B C@2 D@2 E@2 A B AC ~@29
>`.pickRestart({
  A: "~ a3 ~ f#3", B: "~ a3 ~ d#4", C: "[~@2 b3@2 ~@2 b3 b3@3 b3@2 b3@2 b3@2]/2",
  D: "[~@2 c#4@2 ~@3 c#4@2 ~@2 c#4@2 c#4@3]/2", E: "[~@2 a3@2 ~@3 a3@3 ~@6]/2", F: "[~@2 a3@2 ~@3 a3@7 ~@2]/2",
  G: "[g#3@7 g#3]/2", H: "[a2@5 ~@3]/2", I: "~ d4 ~ d4", J: "~ g#3 ~@2", K: "~@2 d4!2", L: "~ e4 ~ e4",
  M: "~@2 c#4 c#4@2 ~@3", N: "[~@2 g3@2 c#4 a3@2 d3@3 ~@6]/2", O: "d4 f#4", P: "b4 f#4", Q: "g4 b4 d5 c#5",
  R: "d5 c#5 d5 a4", S: "~ g3 ~ g3", T: "c#4!4", U: "[d4 f#4@2 a4@2 a4 f#4 ~]/2",
  V: "[e4@2 g#4@4 b4@4 e4!2 d4@2 c#4@2]/2", W: "[f#4@2 a4@4 c#5@4 b4@2 a4@2 f#4 ~]/2", X: "g3 c#4", Y: "a3@2 a4 ~",
  Z: "d4 ~ f#4 ~", AA: "f#4@5 ~@3 f#4@4 ~@4", AB: "g4/2", AC: "~@2 b3@2 ~@2 b3 ~",
})).s("gm_piano").gain(0.48).pan(0.9)

// other · celesta · "Piano 2"
const celesta = note("<~@83 A B@2 C@2 D@2 E@2 F ~ G H I J K L M@2 N@2 O@2 P Q R S T U>".pickRestart({
  A: "~ b3!3", B: "[~@2 c#4@2 ~@3 c#4@2 ~@2 c#4@2 c#4@3]/2", C: "[~@2 a3@2 ~@3 a3@7 ~@2]/2", D: "[g#3@7 g#3]/2",
  E: "[a2@5 ~@3]/2", F: "~ d4 ~ d4", G: "~ g#3 ~@2", H: "~@2 d4!2", I: "~ e4 ~ e4", J: "~@2 c#4 c#4@2 ~@3",
  K: "~ g3 ~ g3", L: "c#4!4", M: "[d4 f#4@2 a4@2 a4 f#4 ~]/2", N: "[e4@2 g#4@4 b4@4 e4!2 d4@2 c#4@2]/2",
  O: "[f#4@2 a4@4 c#5@4 b4@2 a4@2 f#4 ~]/2", P: "g3 c#4", Q: "a3@2 a4 ~", R: "a3 a#3", S: "b3 c4", T: "g4@2 d4 c#4",
  U: "d4@2 a4 ~",
})).s("gm_celesta").gain(0.48).pan(0.9)

// other · tremolo strings · "Fantasy"
const tremolo_strings = note("<~@16 A@2 ~@10 B C D E ~@16 A@2 ~@62>".pickRestart({
  A: "[e3@7 e3]/2", B: "a3 e4", C: "f#4 d4", D: "d4 ~ b4 g4", E: "a4 g4 a4 f#4",
})).s("gm_tremolo_strings").gain(0.38).pan(0.4)

// other · synth brass 1 · "Fantasy"
const synth_brass_1 = note("<~@59 A B@2 C@2 D@2 E F G H I@2 ~@40>".pickRestart({
  A: "a3!4", B: "[~ d4@2 f#4@2 f#4 ~@2]/2", C: "[~ e4@2 g#4@2 ~@3]/2", D: "[c#4 e4@2 a4@2 ~@3]/2", E: "~ a3",
  F: "f#3@2 f#4 ~", G: "a3 ~ e4 ~", H: "d4 ~ d4 ~", I: "d4/2",
})).s("gm_synth_brass_1").gain(0.38).pan(0.4)

// other · violin · "Fantasy"
const violin = note("<~@88 A@2 ~@9 B C@2 D@2 E@2 F G ~@2 H I>".pickRestart({
  A: "[e3@7 e3]/2", B: "a3!4", C: "[~ d4@2 f#4@2 f#4 ~@2]/2", D: "[~ e4@2 g#4@2 ~@3]/2", E: "[c#4 e4@2 a4@2 ~@3]/2",
  F: "~ a3", G: "f#3@2 f#4 ~", H: "d4 ~", I: "a3@2 f#4 ~",
})).s("gm_violin").gain(0.38).pan(0.4)

// drums · kick
const kick = s("bd").struct("<[x ~@3 x!2 ~@2]!111 [~ x ~@2 x ~@3 x ~@3 x ~@3]>").gain(0.33)

// drums · rim
const rim = s("rim").struct("<[~ x ~ x]!111 ~>").gain(0.33)

// drums · snare
const snare = s("sd").struct("~ x ~ x").gain(0.33)

// drums · clap
const clap = s("cp").struct("<~@111 [~@2 x!2 ~@4]>").gain(0.33)

// drums · low tom
const low_tom = s("lt").struct("<~@111 [~ x ~@2]>").gain(0.33)

// drums · hihat
const hihat = s("hh").struct("~@3 x!2 ~@6 x!2 ~@3").gain(0.27)

// drums · crash
const crash = s("cr").struct("<~@8 A ~@11 B ~@3 B ~@7 A ~@19 B ~@3 B ~@7 B ~@7 C ~@19 B ~@3 B ~@14 D>".pickRestart({
  A: "x", B: "x!2 ~@2", C: "~ x ~@14", D: "~@2 x!2",
})).gain(0.33)

// drums · ride
const ride = s("rd").struct("<~@52 [x!2 ~@2] ~@59>").gain(0.33)

stack(
  bass, piano, piano_2, celesta, tremolo_strings, synth_brass_1, violin, kick, rim, snare, clap, low_tom, hihat, crash,
  ride
)

More by The Beatles