Strudelify

Electrical Storm

U2

KeyA majorTempo98 bpm
0:00/0:00
// Electrical Storm — U2
// 98 bpm, 4/4, key A major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: pitch bends are ignored
// note: Full arrangement: all 110 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(98/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 · "sysex"
const bass = note(`<
  ~ A B C D E F E F E F E F E F E F E F G H I J K L M N E F E F E F E F E F E F E F G H I J K L M N O P O P O P Q R A B
  C D S T U V W V W X G H I J K L M N O P O P O P Q R Q R Y Z AA AB AA AB AA AB AA AB AA AB AA AB AA AB AA AB AA AB AC@2
  AD
>`.pickRestart({
  A: "f#1@5 ~ a1@9 ~", B: "e1@6 b1@9 ~", C: "f#1@6 a1@9 ~", D: "e1@6 b1@7 ~@3", E: "f#1@5 f#1@2 g#1", F: "a1@3 b1@4 ~",
  G: "d2@2 d2@4 d2@2 d3 ~ a2@3 ~ d2@2", H: "e2 ~ e2@4 e2 ~ e2@2 b2@4 e2@2", I: "c#2 ~ c#2@3 ~ c#2 ~ c#2@2 b1@4 c#2@2",
  J: "d2 ~ d2@3 ~ d2 ~ d2@2 a1@2 b1@2 d2 ~", K: "d2 ~ d2@3 ~ d2@2 b2@2 a2@2 f#2@2 d2@2",
  L: "e2 ~ e2@4 b1@2 e2 ~ e1@4 b1@2", M: "c#2 ~ c#2@4 b1@2 c#2 ~ c#2@3 ~ c#2@2",
  N: "d2 ~ d2@3 ~ d2@2 d2@2 a1@2 b1@2 d2 ~", O: "d2@6 e2@3 ~ e2@4 e1@2", P: "f#1@6 a1@4 a1@4 a1 ~",
  Q: "b1@5 ~ b1 ~ b1 ~ b1@3 ~ b1 ~", R: "b1 ~ b1 ~ b1 ~ b1@3 ~ b1@4 a1 ~", S: "f#1 ~ f#1 ~ f#1 ~ f#1@8 g#1 ~",
  T: "a1@2 a1 ~ a1@2 b1@4 b1@5 ~", U: "f#1 ~ f#1 ~ f#1 ~ f#1@4 f#1@4 g#1 ~", V: "a1 ~ a1 ~ a1@2 b1@3 ~ b1@4 a1@2",
  W: "f#1 ~ f#1 ~ f#1 ~ f#1@4 e1@2 f#1@2 g#1@2", X: "a1 ~ a1 ~ a1 ~ b1@4 b1@4 a1 ~",
  Y: "f1 ~ f1 ~ f1 ~ f1@2 f1@2 f1@2 g1@2 a1@2", Z: "c2 ~ c2 ~ c2 ~ c2 ~ c2 ~ c2@2 c2@2 d2 ~",
  AA: "e1@2 e1@3 ~ e1@3 ~ e1@2 g1@2 e1@2", AB: "a1 ~ a1@3 ~ a1@4 b1@2 a1@2 g1 ~", AC: "[e1@31 ~]/2", AD: "e1 ~@7",
})).s("gm_electric_bass_finger").gain(0.35)

// chords · synth strings 1 · "SynString1"
const synth_strings_1 = note(`<
  ~@2 A B C ~@14 D E F G H E F G I J K ~@11 D E F G H E F G L M L M L M N@2 I O I P ~@8 D E F G H E F G L M L M L M N@4
  Q R S T S T S T S T S T S T S T S T S T ~@3
>`.pickRestart({
  A: "b3 ~@3", B: "[f#3,a3]@5 ~ e3@8 ~@2", C: "~@3 f#3@3 ~@2", D: "f#3", E: "[g#3,b3]", F: "[e3,c#4]",
  G: "[f#3,d4]@15 ~", H: "[f#3,a3]", I: "[a3,c#4]", J: "~@2 e4 d#4", K: "[a3,c#4]@7 ~",
  L: "[f#3,a3,d4]@6 [g#3,b3,e4]@9 ~", M: "[a3,c#4,f#4]@5 ~ [a3,c#4,e4]@8 ~@2", N: "[[f#3,b3,d#4]@31 ~]/2",
  O: "[g#3,b3]@2 [b3,e4] [b3,d#4]", P: "[g#3,b3]@7 ~ [b3,e4]@4 [b3,d#4]@3 ~", Q: "[a3,c4,f4]", R: "[g3,c4,e4,g4]@15 ~",
  S: "[b3,d4]", T: "[a3,c#4,e4]@15 ~",
})).s("gm_synth_strings_1").gain(0.21)

// chords · synth strings 1 · "SynString1" · soft notes
const synth_strings_1_soft = note("<~ A B C D ~@14 E ~@21 E ~@27 E ~@40>".pickRestart({
  A: "[f#3,a3]@5 ~ [e3,a3]@9 ~", B: "e3@2 ~ [f#3,b3]@4 ~", C: "~@3 a3@4 ~", D: "[e3,b3]@5 ~ b3@6 ~@4", E: "d4",
})).s("gm_synth_strings_1").gain(0.13)

// other · electric guitar clean · "Clean Guit"
const electric_guitar_clean = note("<~ A B C D E ~@21 F G ~@28 A B C D ~@46 H I ~>".pickRestart({
  A: "b4@3 a4@5", B: "g#4@3 e4@2 f#4 e4 f#4", C: "b4@3 a4@5, a4 ~@15", D: "g#4@6 e4@4 f#4@2 e4@2 f#4 ~",
  E: "b4@5 ~ a4@8 ~@2", F: "f#3 b3 c#4 f#3 b3 c#4@3", G: "e3 a3 b3 e3 a3 b3@2 ~", H: "b3@13 ~ c#4@2",
  I: "d4 ~ c#4 ~ c#4@12",
})).s("gm_electric_guitar_clean").gain(0.24).pan(0.6)

// other · electric guitar jazz · "Jazz  Guit"
const electric_guitar_jazz = note(`<
  ~@5 A B A B A B A B A B A B A B ~@8 A B A B A B A B A B A B A B ~@20 A B A B A B A B ~@41
>`.pickRestart({
  A: "f#3 b3 c#4 f#3 b3 c#4@2 f#3", B: "e3 a3 b3 e3 a3 b3@2 ~",
})).s("gm_electric_guitar_jazz").gain(0.16).pan(0.4)

// other · overdriven guitar · "OverdrGuit"
const overdriven_guitar = note(`<
  ~@18 A B C D E B C F G ~@13 A B C D E B C F G H@2 I@2 J@2 K L ~@11 M B C D E B C F G H@2 I@2 J@2 N O N O P Q R S R S R
  S R S R S R S T@3 U@3 V@3
>`.pickRestart({
  A: "~@7 [a2,a3]", B: "[a2,a3]@2 [b2,b3] ~ [b2,b3]@2 [c#3,c#4] ~ [c#3,c#4] ~ [e3,e4]@4 [a2,a3] ~",
  C: "[a2,a3]@2 [b2,b3] ~ [b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~@2 e4@2 ~@2]/3",
  U: "[d4@2 c#4@2 b3 ~ a3@4 b3 ~ c#4 ~ b3@4 b3 ~ b3@2 c#4@2 c#4@2 d4@2 e4 ~ f#4@4 e4 ~ d4 ~ e4@4 d4@2 c#4@2 b3 ~]/3",
  V: "[[e3,b3,e4]@11 ~@5]/3", // E5
})).s("gm_overdriven_guitar").gain(0.29).pan(0.6)

// chords · acoustic guitar steel · "Steel Guit"
const acoustic_guitar_steel = note(`<
  ~ A B A B C D C D C D C D C D C D C D E F G H@2 I J K C D C D C D C D C D C D C D E F G H@2 I J K L M L M L M N O A B
  A B C D C D C D C D E F G H@2 I J K L M L M L M N O N O P Q R S R S R S R S R S R S R S R S R S ~@3
>`.pickRestart({
  A: "[f#2,c#3,a3,c#4,e4,a4]@2 ~@2 [f#2,c#3] ~ [c#4,e4,a4]@3 ~ [a3,c#4,e4,a4]@2 [a2,e3] ~ [a2,e3] [a3,c#4,e4,a4], ~@3 [a3,c#4,e4,a4]@2 ~ [a2,e3]@4 ~@6", // F#m7 F#5 A A5 A A5
  B: "~ [d2,e2] [e2,b2] [b3,e4,g#4] [e2,b2] ~ [b3,d#4,f#4]@4 [b2,f#3]@2 [b3,d#4,f#4]@3 ~, [b2,b3,e4,g#4]@2 ~@4 [b2,f#3]@3 ~@7", // Dsus2 E5 E E5 B B5 B E …
  C: "[f#2,c#3,f#3,a3,c#4,f#4,a4]@3 [a3,c#4,f#4,a4] [f#2,c#3,f#3] ~ [a3,c#4,f#4,a4]@3 ~ [a3,c#4,f#4,a4]@2 [f#2,c#3,f#3]@2 [a3,c#4,f#4,a4]@2, ~@3 [f#2,c#3,f#3]@3 ~@2", // F#m F#5 F#m F#5 F#m F#5
  D: "[a2,e3]@2 [a3,c#4,e4,a4]@2 [a2,e3] ~ [b3,d#4,f#4]@3 ~ [b3,d#4,f#4]@2 [b2,f#3]@2 [b3,d#4,f#4] ~, e4 ~@5 [b2,f#3]@4 ~@6", // A5 A A5 B B5 B B5
  E: "[a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4]@3 ~ [a3,c#4,e4]@2 [a2,e3] [g3,b3,c#4,e4] [a2,e3] [g3,b3,c#4,e4] [a2,e3]@2 [a3,b3,e4]@2 [a2,e3] ~", // A A5 C#m7b5 A5 C#m7b5 A5 Asus2 A5
})).s("gm_acoustic_guitar_steel").gain(0.27).pan(0.4)

// other · pad new age · "Fantasia"
const pad_new_age = note("<~ A B C D E ~@43 F@2 G@2 H@2 I J A B C D ~@49>".pickRestart({
  A: "b5@5 ~ a5@9 ~", B: "g#5@3 e5@2 f#5 e5 f#5", C: "b5@3 a5@4 ~", D: "g#5@6 e5@4 f#5@2 e5@2 f#5 ~",
  E: "b5@5 ~ a5@8 ~@2", F: "[a5@6 g#5 ~ f#5 ~ c#5@4 f#5@4 e5 ~ f#5@2 e5@4 f#5@5 ~]/2",
  G: "[a5@6 g#5 ~ f#5 ~ c#5@4 f#5@8 g#5@2 f#5@2 e5@2 c#5@2 e5@2]/2",
  H: "[a5@6 g#5 ~ f#5 ~ c#5@4 f#5@4 e5 ~ f#5 ~ e5@3 ~ f#5@6]/2", I: "a5@3 ~ g#5@4 a5@3 ~ b5@4, ~@8 g#5 ~@7",
  J: "a5 ~ g#5 ~ a5 ~ b5@6 ~@4",
})).s("gm_pad_new_age").gain(0.26).pan(0.6)

// drums · kick
const kick = s("bd").struct(`<
  ~@19 A B@2 C B D C D E F G H I J K E L M J N O E A B@2 C B D C D P Q R P A@2 S P E ~@3 G H I J K E L T A B@2 C B D C D
  P Q R P A@2 S P S P U V W A W D X Y X D Y@3 Z Y X Y X Y Z E ~ E
>`.pickRestart({
  A: "x ~@3 x ~@2 x", B: "x!2 ~@2 x ~@2 x", C: "x!2 ~@2 x!2 ~ x", D: "x!2 ~ x!3 ~@2", E: "x", F: "~@3 x",
  G: "x ~@2 x ~@4", H: "x ~@2 x", I: "x ~@6 x", J: "x ~@4 x ~@2", K: "x ~@2 x ~ x ~@2", L: "x!2 ~ x ~ x ~@2",
  M: "x ~@5 x ~@3 x ~@3 x!2", N: "x ~@2 x ~@2 x ~", O: "x ~@4 x ~ x", P: "x ~@2 x ~@3 x", Q: "x ~@5 x ~@2 x!2 ~@3 x ~",
  R: "x ~@2 x ~ x ~ x", S: "x ~@6 x!2 ~@5 x ~", T: "x!2 ~@14", U: "x ~@3 x ~ x!2", V: "x!2", W: "x ~@3 x!2 ~ x",
  X: "x!2 ~ x!3 ~ x", Y: "x ~@2 x!3 ~ x", Z: "x!2 ~ x!2 ~@3",
})).gain(0.35)

// drums · kick · soft notes
const kick_soft = s("bd").struct(`<
  ~@21 A ~ A ~@5 B C D C E F E ~ D ~ D ~@3 A ~ A ~@5 G@2 D@2 ~@6 B C D C E F E ~@3 A ~ A ~@5 G@2 D@2 ~@4 D@2 ~@21
>`.pickRestart({
  A: "~@5 x ~@2", B: "~ x", C: "~@3 x!2 ~@3", D: "~@3 x ~@4", E: "~@7 x", F: "~@3 x ~@2 x ~", G: "~@15 x",
})).gain(0.2)

// drums · snare
const snare = s("sd").struct(`<
  ~@17 A B C@5 D C E ~@2 F G H I F G F@3 G F J C@5 D C K L F@2 M N L@2 O ~@3 A F G H I F G F P C@5 D C Q L F@2 M N L@2 O
  L R H S T U T E T V T W T V X Y T V T V T Q ~ Z AA
>`.pickRestart({
  A: "~@14 x!2", B: "~@12 x!3 ~", C: "~@4 x ~ x ~@2 x ~ x!2 ~@3", D: "~@2 x ~@3 x!2", E: "~@4 x ~@2 x ~@4 x ~ x!2",
  F: "~ x ~ x", G: "~@4 x ~@5 x ~@3 x!2", H: "~@2 x ~@2 x ~@2", I: "~@4 x ~@7 x ~ x!2", J: "x ~ x!2 ~@12",
  K: "~@4 x ~@2 x ~@4 x!4", L: "~@4 x ~@4 x!2 ~ x ~@3", M: "~@2 x ~@2 x!2 ~", N: "~@4 x ~@4 x ~@2 x ~@3",
  O: "~@4 x ~@5 x ~ x ~@2 x", P: "x!2 ~ x ~@8 x ~@3", Q: "~@4 x ~@2 x ~@2 x!6", R: "~@4 x ~@5 x!6",
  S: "~@4 x ~@5 x ~ x ~ x!2", T: "~@4 x ~@2 x ~@4 x ~@3", U: "~@4 x ~@2 x ~ x!2 ~ x ~@3",
  V: "~@4 x ~@2 x ~ x ~@2 x ~@3", W: "~@4 x ~@2 x ~@4 x ~ x ~", X: "~@4 x ~@2 x ~@4 x ~@2 x",
  Y: "~ x ~@2 x ~@5 x ~ x ~ x!2", Z: "~@15 x", AA: "x",
})).gain(0.35)

// drums · low tom
const low_tom = s("lt").struct("<~@18 A ~@21 B ~@27 C ~@39 D ~>".pickRestart({
  A: "~ x", B: "~@5 x ~@6 x ~@3", C: "~@5 x ~ x ~@3 x ~@3 x", D: "~@15 x",
})).gain(0.35)

// drums · hihat
const hihat = s("hh").struct(`<
  A ~@18 B C D E D F G C ~@2 H I J C H C H A D C D K B C D E D F G C ~@12 H I J A H A H ~ B C D E D F G C ~@10 L M ~@21
>`.pickRestart({
  A: "x!4", B: "x ~ x ~ x!4", C: "x ~ x ~ x ~ x!2", D: "x ~ x ~ x!3 ~", E: "x ~ x ~ x!2 ~ x", F: "x ~ x!5 ~",
  G: "x ~ x!4 ~ x", H: "x!2 ~ x", I: "~ x!3", J: "x ~ x ~@2 x!2 ~", K: "x", L: "x!3 ~ x!4", M: "x!5 ~ x!2",
})).gain(0.3)

// drums · hihat · soft notes
const hihat_soft = s("hh").struct(`<
  ~@19 A@2 B A B C D A ~@2 E F G A E A E B@2 A B ~ A@2 B A B C D A ~@12 H I J A H A H ~ A@2 B A B C D A ~@10 K ~@22
>`.pickRestart({
  A: "~ x ~ x ~@4", B: "~ x ~ x ~@3 x", C: "~ x ~@5 x", D: "~ x ~@6", E: "~ x ~ x!3 ~ x", F: "x!2 ~ x ~@3 x",
  G: "~ x ~ x!2 ~@2 x", H: "~ x ~ x!3 ~@2", I: "x!2 ~ x ~@4", J: "~ x ~ x!2 ~@3", K: "~@3 x ~@4",
})).gain(0.15)

// drums · mid tom
const mid_tom = s("mt").struct(`<
  ~@18
  [x ~ x ~@3 x!2 ~@2 x ~@5]
  ~@21
  [~@8 x ~ x ~@3 x!2]
  ~@27
  [~@4 x ~ x ~@2 x ~@3 x!2 ~]
  ~@41
>`).gain(0.35)

// drums · open hat
const open_hat = s("oh").struct(`<
  ~@20 A ~ B ~@2 B A ~@3 A ~ A ~@5 A ~ C ~ A ~ B ~@2 B A ~@12 D E D E D@3 ~@2 A ~ B ~@2 B A ~@11 A ~@21
>`.pickRestart({
  A: "~@5 x ~@2", B: "~@3 x", C: "~ x ~@6", D: "~@7 x", E: "~@5 x ~ x",
})).gain(0.3)

// drums · open hat · soft notes
const open_hat_soft = s("oh").struct("<~@24 A ~@9 B ~ B ~@9 A ~@19 B ~@7 A ~@35>".pickRestart({
  A: "~@7 x", B: "~@5 x ~@2",
})).gain(0.15)

// drums · high tom
const high_tom = s("ht").struct("<~@40 [~@3 x ~@4] ~@69>").gain(0.4)

// drums · crash
const crash = s("cr").struct(`<
  ~@19 A ~@7 A ~ A ~@10 A@2 ~ A ~ A ~ A ~ A ~@7 A ~@3 A ~@6 A@2 ~@7 A ~@9 A ~ B C D C D C D C B C D C B C D C D C A ~@2
>`.pickRestart({
// … 14 more lines

More by U2