Strudelify

Key to the Highway

Eric Clapton

KeyA majorTempo85 bpm
0:00/0:00
// Key to the Highway — Eric Clapton
// 85 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 6 electric guitar jazz (copy of ch 11 "tk11" overdriven guitar)
// note: Full arrangement: all 91 bars on a 24-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(85/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 · "tk1"
const piano = note(`<
  ~ A B C D E F G@2 A B C D E F G@2 A B C D E F G@2 A B C D E F G@2 A B C D E F G@2 A B C D E F G@2 A B C D E F G@2 A B
  C D E F G@2 A B C D E F G@2 A B C D E F G@2 A B C D E F H I@2 J
>`.pickRestart({
  A: "[a2,e3,g3,c#4,e4] ~@3 [a2,g3,e4] ~ [a2,f#3,a3,d4,f#4] ~@3 [a2,a3,d4,f#4] ~ [a2,e3,g3] ~@3 [a2,e3,g3,e4] ~ [a2,d4,f#4]@2 g3@2 [e3,g#3] ~, ~@2 [e3,c#4] ~@2 f#3 [c#4,e4] ~ c#4 f#3@2 a2", // A7 D A7 D E C#m
  B: "[e2,b2,b3,d4,e4] ~@3 [b2,b3,e4]@2 [e2,c#3,a3,c#4] ~@3 [e2,a3,c#4,e4] ~ [e2,b2,b3,d4,e4] ~@3 [e2,d4,e4] ~ [e2,c#4,e4]@2 f3@2 [e2,b2,f#3] ~, ~@4 [e2,d4] ~@5 c#3@2 ~@4 [b2,b3]@2 c#3@4 ~@2", // E7 E5 A E7 C#m Esus2 E7 B
  C: "[d2,a2,a3,c4,d4] ~@3 [a2,a3,d4]@2 [d2,b2,g3,b3,d4] ~@3 [d2,b3,d4] ~ [a3,c4,d4] ~@3 [d2,a2,a3,c4,d4] ~ d2@2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g3,c#4,e4]@5 ~ [f#2,a3,d4]@5 ~ [f2,a3,d4]@5 ~", // A C#dim D Dm
  I: "[[a3,c#4] ~@5 [g#2,f#3,c4,d#4]@3 ~ [a2,g3,c#4,e4]@36 ~@2, e2 ~@23]/2", J: "[a2,g3,b3,c#4,e4] ~@11",
})).s("gm_piano").gain(0.48).pan(0.2)

// bass · electric bass finger · "tk2"
const bass = note(`<
  ~ A B C D E F G H E I J K E L M N O P Q R S F T U V W Q X E Y Z AA AB AC AD AE AF AG AH AI AJ AK Q AL AM AN AO AP E AQ
  C D AR F AS AT E I J K E L M N O P Q R S F T U AB AC AD AE AF AG AH AI AJ AK Q AL AM AN AO AU@2 AV
>`.pickRestart({
  A: "a1@3 ~ a1 ~ a1@2 ~@2 a1 ~ a1@2 ~@2 a1 ~ a1@2 ~@2 a1@2", B: "e1@2 ~@2 e1 ~ e1 ~@3 e1 ~ e1@2 ~@2 e1 ~ e1 ~@3 e1@2",
  C: "d1@2 ~@2 d1 ~ d1@2 ~@2 d1 ~ d1@2 ~@2 d1 ~ d1@2 ~@2 d1 ~",
  D: "d1@2 ~@2 d1 ~ d1@2 ~@2 d1 ~ d1@2 ~@2 d1 ~ d1@2 ~@2 d1@2",
  E: "a1@2 ~@2 a1 ~ a1@2 ~@2 a1 ~ a1@2 ~@2 a1 ~ a1@2 ~@2 a1@2",
  F: "e1@2 ~@2 e1 ~ e1@2 ~@2 e1 ~ e1@2 ~@2 e1 ~ e1@2 ~@2 e1@2", G: "a1@3 ~ a1@2 g1@3 ~ g1@2 f#1@3 ~ f#1@2 f1@3 ~ f1@2",
  H: "e1@2 ~@2 e1 ~ e1@2 ~@2 e1 ~ e1@2 ~@2 e1 ~ e1 ~@3 f#1@2", I: "e1@2 ~@2 e1 ~ e1@2 ~@2 e1 ~ e1 ~@3 e1@2 g#1@4 b1@2",
  J: "d2@2 ~@2 d2 ~ d2 ~@3 d2 ~ d2@2 ~@2 d2 ~ d2@2 ~@2 d2 ~", K: "d2 ~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~ f#1@2 f1@3 ~ f1@2", AT: "e1@3 ~ e1 ~ e1@2 ~@2 e1 ~ e1@2 ~@2 e1 ~ e1@3 ~ e1@2",
  AU: "[e1@2 ~@4 g#1@3 ~ a1@36 ~@2]/2", AV: "a1 ~@11",
})).s("gm_electric_bass_finger").gain(0.64)

// chords · piano · "tk3"
const piano_2 = note(`<
  ~@33 A B C D E F G@2 H I J K L M N@2 O P C@2 Q R S T U ~@15 A V C D E F G@2 H I J K L M W X@2 Y
>`.pickRestart({
  A: "[d6,d#6,g6] ~ [e6,g6] ~ [e6,g6] ~ [e6,g6] ~ [e6,g6] ~ [e6,g6] ~ [d6,d#6,g6] ~ [e6,g6] ~ [e6,g6] ~ [e6,g6] ~ [e6,g6] ~ [e6,g6] ~", // D#maj7 Em D#maj7 Em
  B: "e6 ~ e6 ~ [b5,e6] ~ [b5,e6] ~ [b5,e6] ~ [b5,e6] ~ [b5,e6] ~ [b5,e6] ~ [b5,e6] ~ [b5,e6] ~ [b5,e6] ~ [b5,e6] ~", // E5
  C: "[a5,d6] ~ [a5,d6] ~ [a5,d6] ~ [a5,d6] ~ [a5,d6] ~ [a5,d6] ~ [a5,d6] ~ [a5,d6] ~ [a5,d6] ~ [a5,d6] ~ [a5,d6] ~ [a5,d6] ~", // D5
  D: "f#5@2 d6@2 f#5@2 e5@2 ~@2 e5 ~ d5@2 ~@2 d5 ~ c5@2 a5@2 c5@2, ~@4 c6@2 ~ b5@2 ~@3",
  E: "[d#5,a5] ~ [e5,a5] ~ [e5,a5] ~ [e5,a5] ~ [e5,a5] ~ [e5,a5] ~ [e5,a5] ~ [e5,a5] ~ [e5,a5] ~ [e5,a5] ~ [e5,a5] ~ [e5,a5] ~", // D#dim A5
  F: "g5 ~ g#5@2 e6 ~ d6@2 e5 ~ [f#5,d6] ~ c#6@2 e5@2 c#6 ~ d5 ~ d5 ~ c5@2, ~@6 f#5 ~@5 e5 ~@5 b5@4 ~@2", // D
  G: "[c#5@2 ~@2 c#5@2 g5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]@17 ~@21]/2", Y: "[g4,c#5,e5] ~@11, d5 ~@23",
})).s("gm_piano").gain(0.48).pan(0.3)

// chords · electric guitar clean · "tk4"
const electric_guitar_clean = note(`<
  ~ A B C D E B F@2 G B C D E B F@2 G B C D E B F@2 G B C D E B F@2 G B C D E B F@2 G B C D E B F@2 G B C D E B F@2 G B
  C D E B F@2 G B C D E B F@2 G B C D E B F@2 G B C D E B H I@2 J
>`.pickRestart({
  A: "[e3,a3] ~@3 [e3,a3]@2 f#3 ~@3 [f#3,a3]@2 e3 ~@3 e3@2 f#3@4 e3 ~, ~@16 a3@7 ~", // A5 F#m
  B: "[b2,e3] ~@3 [b2,e3]@2 c#3 ~@3 [c#3,e3]@2 b2 ~@3 b2@2 c#3@4 b2@2, ~@16 e3@7 ~", // E5 C#m
  C: "[a2,d3] ~@3 [a2,d3]@2 b2 ~@3 [b2,d3]@2 a2 ~@3 [a2,d3]@2 b2 ~@3 [b2,d3]@2", // D5 Bm D5 Bm
  D: "a2 ~@3 [a2,d3]@2 b2 ~@3 [b2,d3]@2 a2 ~@3 a2@2 b2@4 a2 ~, ~@16 d3@7 ~", // D5 Bm
  E: "[e3,a3] ~@3 [e3,a3]@2 f#3 ~@3 [f#3,a3]@2 e3 ~@3 e3@2 f#3@4 e3 ~, ~@8 a3@3 ~", // A5 F#m
  F: "[a2@2 ~@2 a3@2 ~@4 a3@2 f#3@4 a3@2 f3@4 ~@2 e3@17 ~ e3@2 f#3@2 a3@2, ~@6 g3@7 ~@9 a3@22 ~@4]/2",
  G: "[e3,a3]@2 ~@2 [e3,a3]@2 f#3 ~@3 [f#3,a3]@2 e3 ~@3 e3@2 f#3@4 e3 ~, ~@16 a3@7 ~", // A5 F#m
  H: "a2@3 ~ a3@2 g3@6 [f#3,a3]@6 [f3,a3]@5 ~", I: "[[e3,a3] ~@5 [f#3,c4,d#4]@3 ~ [g3,c#4,e4]@36 ~@2]/2",
  J: "[g3,c#4,e4] ~@23", // C#dim
})).s("gm_electric_guitar_clean").gain(0.32).pan(0.9)

// other · alto sax
const alto_sax = note("<~@16 A B C D E F G@2 H B C D E F G@2 ~@24 I B C D E F G@2 J K L M N O P@2 ~@19>".pickRestart({
  A: "~@15 c#5@2 ~ b4@3 ~ a4@2", B: "c#5@5 ~@13 c#5@4 a4@2", C: "c#5@3 ~ b4@2 ~@18",
  D: "~@3 f#5@5 ~ f#5@5 ~ e5@3 ~ d5@2 c5@2 ~", E: "a4@5 ~@13 f#4@3 ~ f#4@2", F: "a4@5 ~ c#5@5 ~ e4@3 ~ e4@2 ~@6",
  G: "[~@4 a4@2 g4@3 ~ g4@2 e4@5 ~ d4@3 ~ c#4@7 ~@19]/2", H: "~@16 c#5@2 b4@3 ~ a4@2", I: "~@12 c#5@6 b4@3 ~ a4@2",
  J: "~@16 c#6@2 b5@3 ~ a5@2", K: "c#6@5 ~@13 c#6@4 a5@2", L: "c#6@3 ~ b5@2 ~@18",
  M: "~@3 f#6@5 ~ f#6@5 ~ e6@3 ~ d6@2 c6@2 ~", N: "a5@5 ~@13 f#5@3 ~ f#5@2", O: "a5@5 ~ c#6@5 ~ e5@3 ~ e5@2 ~@6",
  P: "[~@4 a5@2 g5@3 ~ g5@2 e5@5 ~ d5@3 ~ c#5@7 ~ [d5,f5]@2 ~ [c#5,e5]@13 ~@2]/2", // Dm C#m
})).s("gm_alto_sax").gain(0.39)

// drums · kick
const kick = s("bd").struct("<~ A@17 B@3 A B A C A B@3 A B A C A@25 B@3 A B A C A B@3 A B A C A@15 D ~ E>".pickRestart({
  A: "x ~@4 x!2 ~@4 x", B: "x ~@4 x!2 ~ x ~@2 x", C: "x ~@4 x!2 ~ x ~ x!2", D: "x ~ x!2 ~ x ~@6", E: "x",
})).gain(0.48)

// drums · snare
const snare = s("sd").struct("<A B@7 C B@7 D B@7 E B@7 E B@7 C B@7 D B@7 C B@7 E B@7 E B@7 C B@7 F ~ G>".pickRestart({
  A: "~@6 x!6", B: "~ x ~ x", C: "~@3 x ~@4 x!4", D: "~@3 x ~@5 x!3", E: "~@3 x ~@3 x ~ x ~@2", F: "~@3 x ~ x ~@6",
  G: "x",
})).gain(0.69)

// drums · hihat
const hihat = s("hh").struct(`<
  A ~@16 B@2 C B@2 C@2 B@3 C B@2 C@2 B ~@24 B@2 C B@2 C@2 B@3 C B@2 C@2 B ~@18
>`.pickRestart({
  A: "x!4", B: "x ~ x!2 ~ x!2 ~ x!2 ~@2", C: "x ~ x!2 ~ x!2 ~ x!2 ~ x",
})).gain(0.69)

// drums · low tom
const low_tom = s("lt").struct("<[~@6 x!6] ~@90>").gain(0.55)

// drums · mid tom
const mid_tom = s("mt").struct("<[~@6 x!6] ~@90>").gain(0.55)

// drums · open hat
const open_hat = s("oh").struct(`<
  ~@17 A@2 ~ A@2 ~@2 A@3 ~ A@2 ~@2 A ~@24 A@2 ~ A@2 ~@2 A@3 ~ A@2 ~@2 A ~@15 B ~@2
>`.pickRestart({
  A: "~@11 x", B: "x",
})).gain(0.62)

// drums · crash
const crash = s("cr").struct(`<
  ~ A ~@3 B ~ A ~ A ~ A C B@2 A ~ A ~@3 A ~@3 A ~@3 A ~@3 A ~@3 B ~ A ~ A ~ A C B@2 A ~ A ~@3 B ~ A ~ A ~@3 A ~@3 A ~@3
  A ~@3 A ~@3 B ~ A ~ A ~ A C B@2 A D ~@2
>`.pickRestart({
  A: "x", B: "~ x ~@2", C: "~ x ~ x", D: "~@3 x ~ x ~@6",
})).gain(0.55)

// drums · ride
const ride = s("rd").struct(`<
  ~ A@2 B@2 A@2 B@2 A@2 B@2 A@2 B@2 ~@16 A@2 B@2 A@2 B@2 A@2 B@2 A@2 B@2 A@2 B@2 A@2 B@2 ~@16 A@2 B@2 A@2 B@2 A@2 B@2
  A@2 B ~@3
>`.pickRestart({
  A: "x ~ x!2 ~ x!2 ~ x!2 ~ x", B: "x ~@2 x ~ x!2 ~ x!2 ~ x",
})).gain(0.62)

// drums · ride · soft notes
const ride_soft = s("rd").struct(`<
  ~@3 A@2 ~@2 A@2 ~@2 A@2 ~@2 A@2 ~@18 A@2 ~@2 A@2 ~@2 A@2 ~@2 A@2 ~@2 A@2 ~@2 A@2 ~@18 A@2 ~@2 A@2 ~@2 A@2 ~@2 A ~@3
>`.pickRestart({
  A: "~ x ~@4",
})).gain(0.35)

stack(
  piano, bass, piano_2, electric_guitar_clean, alto_sax, kick, snare, hihat, low_tom, mid_tom, open_hat, crash, ride,
  ride_soft
)

More by Eric Clapton