Strudelify

Sweetest Thing

U2

KeyC majorTempo72 bpm
0:00/0:00
// Sweetest Thing — U2
// 72 bpm, 4/4, key C major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: pitch bends are ignored
// note: Full arrangement: all 37 bars on a 16-step grid, each part at one level. Source detail keeps the original performance.
setcpm(72/4)

// Notation: c3@3 lasts 3 steps · ~ is a rest · [c3,e3] is a chord.
// A part's distinct bars are riffs (A, B, C...) played in order: edit a riff to change every repeat.

// chords · piano · "Right Hand"
const piano = note("<A@12 B C B C D@8 B C B C ~@9>".pickRestart({
  A: "[c5,e5]@3 ~ [c5,e5]@3 ~ [g4,b4,d5] ~@4 a4@3", B: "[a4,d5,f5]@3 ~ [a4,d5,f5]@3 ~ [a4,c5,e5]@3 ~ [a4,c5,e5]@3 ~",
  C: "[g4,b4,d5,g5]@3 ~ [g4,b4,d5,g5]@3 ~ [d5,g5] d5 [f5,g5] [c5,g5]!2 g4 [a4,d5] [b4,d5]", // G G5 Fsus2 C5 D5 Bm
  D: "[c5,e5]@3 ~ [c5,e5]@3 ~ [g4,b4,d5]@3 ~@2 a4@3", // C G
})).s("gm_piano").gain(0.72)

// other · piano · "Left Hand"
const piano_2 = note("<A@12 B C B C A@8 B C B C ~@9>".pickRestart({
  A: "c3@2 c3@2 ~@2 c3@2 g2@3 ~@2 f2@3", B: "~@11 g3 a3 [c4,e4] [d4,e4]!2", C: "d4 [c4,d4] [b3,d4] g3 ~@4",
})).s("gm_piano").gain(0.72)

// bass · electric bass finger · "Staff-1"
const bass = note("<~ A B@10 C D E F B@8 C D E F G H B@6 I>".pickRestart({
  A: "~@8 c2@4 f1 g1 c2@2", B: "c2!4 c2@2 f2 g2 [c2,g2] ~@4 e1 a#1 c2", C: "d2@2 d2@2 d2@2 d2@2 c2@2 c2@2 c2@2 c2 f2",
  D: "g2!8", E: "d3!4 c2!4", F: "g1@2 g1@2 g1@2 g1@2 g1@2 g1@2 g1@2 b1 c2", G: "g1!4 g1@2 c2 d2 g1!4 g1@2 c2 d2",
  H: "g1!16", I: "c1@11 ~@5",
})).s("gm_electric_bass_finger").gain(0.72)

// chords · taiko drum · "Staff-4" · Cmaj7
const taiko_drum = note(`<
  ~
  [~@14 [b1,c2]!2]
  [[b1,c2]!2 [b1,c2]@2 ~@4 [b1,c2]@2 [b1,c2]@2 [b1,c2]@3 ~]!34
  [[b1,c2] ~@15]
>`).s("gm_taiko_drum").gain(0.72)

stack(piano, piano_2, bass, taiko_drum)

More by U2