Strudelify

The End

The Beatles

KeyA minorTempo123 bpm
0:00/0:00
// The End — The Beatles
// 123 bpm, 4/4, key A minor. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: Tempo changes preserved in elapsed time; displayed bars use the dominant tempo.
// note: metre changes (4/4 at bar 1, 1/4 at bar 2, 4/4 at bar 2, 3/8 at bar 54, ...) 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: Full arrangement: all 64 bars on a 16-step grid, each part at one level. Source detail keeps the original performance.
setcpm(123/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.

// chords · piano
const piano = note("<~@47 A@3 B C D E@6 F@5>".pickRestart({
  A: "[a4,c#5,e5] ~ [a4,c#5,e5] ~ [a4,c#5,e5] ~ [a4,c#5,e5] ~ [a4,c#5,e5] ~ [a4,c#5,e5] ~ [a4,c#5,e5] ~ [a4,c#5,e5] ~", // A
  B: "[a4,c#5,e5] ~ [a4,c#5,e5] ~ [a4,c#5,e5] ~ [a4,c#5,e5] ~ [a4,c#5,e5] ~ [a4,c#5,e5] ~ [a4,c#5,e5] ~ [a4,c#5,e5] ~, a3", // A
  C: "[g4,b4,d5] ~ [g4,b4,d5] ~ [g4,b4,d5] ~ [g4,b4,d5] ~ [g4,b4,d5] ~ [g4,b4,d5] ~ [g4,b4,d5] ~ [g4,b4,d5] ~", // G
  D: "[g4,b4,d5] ~ [g4,b4,d5] ~ [g4,b4,d5] ~ [g4,b4,d5] ~ [g4,b4,d5] ~ [g4,b4,d5] ~ [g4,b4,d5] ~ [g4,b4,d5] ~, a3", // G
  E: "[[a4,c5] ~ [a4,c5] ~ [a4,c5] ~ [a4,c5] ~ [a4,c5] ~ [a4,c5] ~ [a4,c5] ~ [a4,c5] ~ [a4,c5] ~ [a4,c5] ~ [a4,c5] ~ [a4,c5] ~ [d4,f4]@3 [e4,g4]@3 ~ [d4,f4]@3 [c4,e4]@3 [g1,g2,b3,d4]@13 [c2,c3,g3,c4,e4]@7 [c2,c3,g3,c4,e4]@6 [c2,c3,g3,c4,e4]@7 [c2,c3,g3,c4,e4]@6 [c2,c3,a3,d4,f#4]@7 [c2,c3,a3,d4,f#4]@7 [c2,c3,a3,d4,f#4]@6, a3@6 g3@6 f3@6 e3@6 [d2,d3]@13 ~@59]/6", // Am Dm Em Dm C G C D7 …
  F: "[[c2,c3,a3,d4,f#4]@7 [d#2,d#3,g3,a#3,d#4]@6 [d#2,d#3,g3,a#3,d#4]@7 [f2,f3,a3,c4,f4]@7 [f2,f3,a3,c4,f4]@7 [c2,c3,g3,c4,e4]@31 ~@15]/5", // D7 D# F C
})).s("gm_piano").gain(0.27)

// chords · piano
const piano_2 = note(`<
  ~@6 A B C D@2 E ~@11 F G H I H I H J H J H J H J H J H J H J H J H J ~@2 K@2 L@2 M N@3 ~@7
>`.pickRestart({
  A: "~@12 a4 ~@3", B: "f#4@4 ~@2 b4 ~", C: "g#4@6 ~ c#5",
  D: "[~@2 c#5@2 a4@2 f#4@2 a4 ~ a4 ~ a4@2 f#4@7 ~@7 b3 ~ b3@2]/2", E: "a3 ~@7", F: "[c#4,e4,a4]@5 ~ [c#4,e4,a4]@2 ~@8",
  G: "[d4,f#4,a4]@5 ~ [d4,f#4,a4]@2 ~@8", H: "[c#4,e4,c#5]@5 ~ [c#4,e4,c#5]@2 ~@8",
  I: "[d4,f#4,d5]@5 ~ [d4,f#4,d5]@2 ~@8", J: "[d4,f#4,c5]@5 ~ [d4,f#4,c5]@2 ~@8",
  K: "[a3@6 e4@4 e4 ~ e4@8 ~@10 [f4,a4] ~, ~@15 c4]/2", // F
  L: "[[d4,g4,b4]@5 ~ [d4,f#4,a4]@5 ~ [b3,e4,g4]@6 ~@12 [e4,g4]@2, ~@30 b3 ~]/2", // G D Em
  M: "[c4,f4,a4]@5 ~ [b3,e4,g4]@5 ~ [a3,d4,f4]@4", N: "[~@2 [a3,c4,e4]@5 ~ [f3,a3,d4]@10 ~@10 b3@3 c4@13 ~@4]/3",
})).s("gm_piano").gain(0.32)

// chords · string ensemble 1
const string_ensemble_1 = note("<~@54 A@2 B@5 C@3>".pickRestart({
  A: "[~@8 f4@3 e4@3 ~ d4@3 c4@3 b3@5 ~@2 g3@4, ~@8 d2@11 ~@2 g2@11]/2",
  B: "[~@2 [c3,g3]@24 ~@2 [c3,a3]@24 ~@3 [d#3,a#3]@12 ~ [f3,c4]@12]/5", C: "[~@2 [c3,c4,g4]@31 ~@15]/3",
})).s("gm_string_ensemble_1").gain(0.23)

// chords · brass section
const brass_section = note("<~@56 A@5 B@3>".pickRestart({
  A: "[~@2 [e4,g4,c5]@24 ~@2 [f#4,a4,d5]@24 ~@3 [g4,a#4,d#5]@12 ~ [a4,c5,f5]@12]/5", B: "[~@2 [e5,g5]@31 ~@15]/3",
})).s("gm_brass_section").gain(0.23)

// chords · overdriven guitar
const overdriven_guitar = note(`<
  A B C@3 ~ A B C@3 ~@8 D E D E D E D E D E D E D E D E D E D E D E D E D E D E ~@17
>`.pickRestart({
  A: "~@6 [a2,e3,a3,c#4,e4,a4] ~", B: "[d3,a3,d4,f#4,a4]@4 ~@2 [b2,f#3,a3,d#4,f#4,b4] ~",
  C: "[[e3,b3,e4,g#4,b4]@6 ~ [a3,c#4]@3 [a3,c#4] [b3,d4] [c4,d#4] [c4,e4] [c#4,f4] [d#4,f#4]@6 d3 c3 a2]/3", // E A Bm Cm C C# D#m
  D: "[a2,e3,g3,c#4,g4,a4]@3 [a2,e3,g3,c#4,g4,a4] ~@4", E: "[d3,a3,c4,f#4,c5,d5]@5 ~ [d3,a3,c4,f#4,c5,d5]@2 ~@8",
})).s("gm_overdriven_guitar").gain(0.27).pan(0.4)

// chords · overdriven guitar
const overdriven_guitar_2 = note("<~@30 A B C ~@3 D E F ~@4 G H ~@19>".pickRestart({
  A: "~@12 g4 a4 g4 a4", B: "d5@9 ~ c5@2 a4 [a4,c5] g4@2, c5 ~@15", C: "a4 g4@2 a4 e4@3 d4@2 c4@3 a3@2 ~@2",
  D: "~@12 a3 [c4,e4]!3", E: "a3@2 [c4,e4]!4 a3@2 a3 [c4,e4]!3 a3@2 [c4,e4]@2",
  F: "[d4,d#4,f#4,g4]@2 [d4,f#4]@2 c4 [c4,d4] a4@6 ~@4, ~@6 g4 ~@9", G: "e4 g4!2 a4 c5 a5@3, ~@10 g5 ~@5",
  H: "~@2 g5@2 c5 d5 c5@2 ~@8",
})).s("gm_overdriven_guitar").gain(0.37).pan(0.3)

// chords · distortion guitar
const distortion_guitar = note("<~@33 A B ~@3 C D@2 ~@3 E F@2 G ~@16>".pickRestart({
  A: "[g4,b4] [g4,b4]@2 [g4,b4] [g4,b4]@2 [g4,a4] [g4,b4] ~ [g4,b4]!2 [g4,a4] [g4,b4]!2 [g4,a4] [g4,b4]", // G Gsus2 G Gsus2 G Gsus2 G
  B: "[g4,b4]!2 [g4,b4]@2 c4@2 [g3,c4,e4]@6 ~@4", C: "~@5 e2 g2 a2",
  D: "[c3@4 d3@3 c3@3 d3@8 c3@2 d3@2 c3@2 e3 d3 d3@2 c3@2 d3 a2]/2", E: "~@10 [e3,a3]@2 [g3,c4]@2 [a3,d4] [g3,c4]",
  F: "[a3,d4] [g3,c4] ~ [a3,d4] [g3,c4] [a3,d4] ~ [g3,c4] [a3,d4] [g3,c4] ~ [a3,d4] [g3,c4] [a3,d4] ~ [g3,c4]", // D5 C5 D5 C5 D5 C5 D5 C5 …
  G: "[a3,d4] ~@7", // D5
})).s("gm_distortion_guitar").gain(0.37)

// bass · acoustic bass
const bass = note(`<
  A B C@3 ~ D B C@3 ~@8 E F E F E F E F G H G H G H G H G H G H G H G H I J K L M ~@8 N@3 O@2 P@3
>`.pickRestart({
  A: "~@6 a2 ~", B: "d2@10 ~@2 b1@3 ~", C: "[e2@12 ~@2 a1@5 ~ a#1@2 b1@2 c2@2 c#2@2 d2@2 d#2@10 ~@2 d2@2 c2@2 a1 ~]/3",
  D: "~@12 a1@3 ~", E: "a1 a1@2 a1 ~ a1@2 c2", F: "d2@3 d2 ~ d2!2 c2", G: "a1 a1@2 a1 ~ a1!2 c2",
  H: "d2 d2@2 d2 ~ d2!2 g1", I: "a1 c2 a1 c2 a1 c2 a1 c2", J: "d2!7 c2", K: "a1!3 c2 a1 c2 a1 c2", L: "d2!5 c2 d2 c2",
  M: "a1 ~@7", N: "[~ c2@16 ~@7]/3", O: "[~@7 d#2@12 ~ f2@12]/2", P: "[~@2 c2@31 ~@15]/3",
})).s("gm_acoustic_bass").gain(0.37)

// chords · electric guitar jazz
const electric_guitar_jazz = note("<~@50 A ~ B C@3 ~@8>".pickRestart({
  A: "~@6 [e4,c#5] [d#4,c5] [e4,c#5]@2 [e4,c#5] [d4,b4] [e4,c#5]@4", B: "~@6 [e4,b4] [d#4,a#4] [e4,b4]@8",
  C: "[a3@6 g3@6 f3@6 e3@6 d3@13 ~@11]/3",
})).s("gm_electric_guitar_jazz").gain(0.32).pan(0.7)

// other · electric guitar clean
const electric_guitar_clean = note("<~@56 A@4 B@4>".pickRestart({
  A: "[~@2 e4@7 ~ c3@2 e3@2 ~ c4@2 e4@2 ~@2 d5 e5@3 c5@3 [a4,c5]@26 ~ g4 a#4 d#5@2 [f5,g5]@2 f5@2 ~, ~@2 d4 ~@11 g3@2 ~@3 g4@2 ~@7 g4 ~@35, ~@10 c5 ~@21]/4", // Am Fsus2
  B: "[~ c5 d5@5 c5@3 ~ a4@4 ~@2 d5 e5@31 ~@15, d#5@2 ~@13 c5@4 ~@45]/4",
})).s("gm_electric_guitar_clean").gain(0.32).pan(0.7)

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

// drums · snare
const snare = s("sd").struct("<A B C D@2 ~ A B C D@2 ~@8 D@28 ~@9 E F G H ~@4>".pickRestart({
  A: "~@3 x", B: "x ~@2 x", C: "x", D: "~ x ~ x", E: "~@9 x ~@6", F: "~@3 x ~@4", G: "~@3 x ~@12", H: "~@13 x ~@2",
})).gain(0.32)

// drums · hihat
const hihat = s("hh").struct("<~@19 [~ x!7] [x ~ x!3 ~ x!2]!9 [x!8]!17 [x!3 ~ x ~ x!2] ~@17>").gain(0.37)

// drums · low tom
const low_tom = s("lt").struct("<~ A B ~@2 C ~ A B ~@2 D E F G ~ H I J ~@36 K ~@2 L ~ M ~@3>".pickRestart({
  A: "~ x!5 ~@2", B: "~ x!6 ~", C: "~@8 x!3 ~ x ~ x ~", D: "~@13 x ~@2", E: "~@12 x!3 ~", F: "x",
  G: "~ x ~ x!2 ~@2 x ~ x!2 ~@5", H: "~ x ~@2", I: "~@4 x ~ x!2 ~ x ~@3 x ~ x", J: "x!2 ~@6", K: "~@3 x", L: "~@15 x",
  M: "~@9 x ~@6",
})).gain(0.32)

// drums · open hat
const open_hat = s("oh").struct("<~@20 [~ x ~@3 x ~@2]!9 ~@35>").gain(0.32)

// drums · mid tom
const mid_tom = s("mt").struct("<~@6 A ~@4 B C ~ D E F@2 G ~@36 H ~@3 I J ~@3>".pickRestart({
  A: "x!6 ~@2", B: "~@15 x", C: "x ~@7 x!3 ~@5", D: "~@12 x!3 ~", E: "x", F: "x!2 ~ x ~@12", G: "~@2 x!6",
  H: "~@10 x ~@2 x ~@2", I: "~@2 x!2 ~@12", J: "~@13 x ~ x",
})).gain(0.32)

// drums · crash
const crash = s("cr").struct("<A B C D@2 ~ A B C D@2 ~@8 E ~@27 E ~@8 F A G H I J ~@2>".pickRestart({
  A: "~@3 x", B: "x ~@2 x", C: "x ~@6 x", D: "~@2 x ~@3 x!2", E: "x", F: "~@2 x ~@12 x", G: "~@5 x ~@2", H: "~@7 x ~@8",
  I: "~ x ~@2", J: "~ x ~@6",
})).gain(0.32)

// drums · high tom
const high_tom = s("ht").struct("<~ A B ~@2 C ~ A B ~@2 D ~@2 E ~@2 F G ~@36 H ~@2 I ~ J ~@3>".pickRestart({
  A: "~ x!2 ~", B: "~ x!3", C: "~@2 x!2 ~ x!2 ~@9", D: "~@3 x", E: "x ~@2 x ~@4", F: "~@5 x!2 ~", G: "~@2 x!6",
  H: "~@8 x ~@6 x", I: "~@13 x ~@2", J: "~@7 x ~@3 x ~@4",
})).gain(0.37)

stack(
  piano, piano_2, string_ensemble_1, brass_section, overdriven_guitar, overdriven_guitar_2, distortion_guitar, bass,
  electric_guitar_jazz, electric_guitar_clean, kick, snare, hihat, low_tom, open_hat, mid_tom, crash, high_tom
)

More by The Beatles