Strudelify

King for a Day

Green Day

KeyE majorTempo146 bpm
0:00/0:00
// King for a Day — Green Day
// 146 bpm, 4/4, key E major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: pitch bends are ignored
// note: Full arrangement: all 118 bars on a 16-step grid, each part at one level. Source detail keeps the original performance.
setcpm(146/4)

// Notation: c3@3 lasts 3 steps · ~ is a rest · [c3,e3] is a chord · [...]/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 · overdriven guitar · "Guitar"
const overdriven_guitar = note(`<
  ~@4 A B A B A B A B C D C D C D C D E F E F E F C D ~@4 A B A B A B A B C D C D C D C D E F E F E F C D A B A B A B A
  B A B A B A B A B C D C D C D C D E F E F E F E F E F E F E F C D C D C D ~@4 G H G H ~@5 I@2 ~ J ~
>`.pickRestart({
  A: "~ [b3,e4] ~ [b3,e4] ~ [b3,e4] ~ [b3,e4]", B: "~ [g#3,c#4] ~ [g#3,c#4] ~ [g#3,c#4] ~ [g#3,c#4]", C: "[a2,e3,a3]!8",
  D: "[b2,f#3,b3]!8", E: "[e3,b3] [e3,b3,e4] [b2,f#3] [b2,f#3,e4] [e3,b3] [e3,b3,e4] [b2,f#3] [b2,f#3,e4]",
  F: "[c#3,g#3]!8", G: "~@4 [b3,g#4]@11 ~", H: "[c#4,a4]@3 ~@13", I: "g#2@3 ~@13",
  J: "e5 ~ d#5 ~ b4 ~ a4 ~ g#4 ~ f#4 ~@5",
})).s("gm_overdriven_guitar").gain(0.36)

// bass · electric bass finger · "Bass"
const bass = note(`<
  A B A B A B A B A B A C D E D F D F D G A B A B A B D G A B A B A B A B A B A C D E D F D F D G A B A B A B D G A B A
  B A B A B A B A B A B A B D E D F D F D G A B A B A B A B A B A B A B D G D G D G A B A B A B A B A B A B A B A B ~@2
>`.pickRestart({
  A: "e2@3 ~ b1@3 ~ e2@3 ~ b1@2 c2@2", B: "c#2@3 ~ g#1@3 ~ c#2@3 ~ g#1@2 d#2@2", C: "c#2@3 ~ g#1@3 ~ c#2@3 ~ g#1@3 ~",
  D: "a1!8", E: "b1!6 c#2 d#2", F: "b1!5 c#2 b1 d#2", G: "b1!8",
})).s("gm_electric_bass_finger").gain(0.25)

// other · trumpet · "Trumpet1"
const trumpet = note(`<
  A B A C D ~@23 A B A C D ~@27 E F E G ~@4 H I H I ~@28 J K J L M N M N O P O Q R S T U V W
>`.pickRestart({
  A: "e5@7 ~ e5@2 d#5@2 c#5@2 b4@2", B: "g#4@5 b4 b4@2", C: "g#4 ~ g#4 g4 g#4 g4 g#4 g4 g#4 ~ b3@6", D: "e4 ~@15",
  E: "~@2 g#4@2 f#4@2 g#4@2 b4 ~ g#4@2 f#4@2 g#4@2", F: "~@2 g#4@2 f#4!2 g#4@2 c#4@3 ~@5",
  G: "~@2 g#4@2 f#4!2 g#4@2 e4@3 ~@3 e5 ~", H: "e5@3 ~ e5@3 ~ e5@3 ~ c#5@2 b4@2",
  I: "c#5 ~ c#5@3 ~ d#5@2 c#5@2 b4@2 g#4@2 ~@2", J: "e5", K: "c#5@15 ~", L: "c#5 ~ g#4 g4 g#4 g4 g#4 g4 g#4 ~@7",
  M: "e5@3 ~ e5@3 ~ e5@3 ~ e5@3 ~", N: "c#5@2 c#5@3 ~ d#5@2 c#5@3 ~@5", O: "g5@3 ~ e5@3 ~ d5 e5@2 ~ e5@3 ~",
  P: "d5 e5@2 ~ e5@2 f#5@2 g5@2 f#5@2 e5@2 ~@2", Q: "d5 e5@2 ~ e5@2 f#5@2 g5@2 a5 g#5 a5 g#5 a5 g#5",
  R: "a#5 ~ a5@11 ~@3", S: "g5!2 e5!2 d5 ~@3", T: "~@4 e4!2 f4 f#4 g#4@3 ~@5", U: "e4 ~ g#4 a4 g#4@3 ~@9",
  V: "~ a4@11 b4@3 ~", W: "c#4@3 ~@13",
})).s("gm_trumpet").gain(0.72).pan(1)

// other · trombone · "Trombone1"
const trombone = note(`<
  A B A C D ~@23 A B A C D ~@23 E F E F E F E F E F E F E F E F ~@28 E F E F E F E F E F E F E F E F ~@2
>`.pickRestart({
  A: "b2", B: "c#3@15 ~", C: "c#3 ~@9 b2@6", D: "e3 ~@15", E: "e3@2 ~@2 b2@2 ~@2 e3@2 ~@2 b2 ~ c3@2",
  F: "c#3@2 ~@2 g#2@2 ~@2 c#3@2 ~@2 g#2 ~ d#3 ~",
})).s("gm_trombone").gain(0.72).pan(0)

// other · trumpet · "Trumpet2"
const trumpet_2 = note("<~@68 A B A B ~@32 C D C D E F E G H I ~@2 J K>".pickRestart({
  A: "e5@3 ~ e5@3 ~ e5@3 ~ c#5@2 b4@2", B: "c#5 ~ c#5@3 ~ d#5@2 c#5@2 b4@2 g#4@2 ~@2", C: "e5@3 ~ e5@3 ~ e5@3 ~ e5@3 ~",
  D: "c#5@2 c#5@3 ~ d#5@2 c#5@3 ~@5", E: "g5@3 ~ e5@3 ~ d5 e5@2 ~ e5@3 ~",
  F: "d5 e5@2 ~ e5@2 f#5@2 g5@2 f#5@2 e5@2 ~@2", G: "d5 e5@2 ~ e5@2 f#5@2 g5@2 a5 g#5 a5 g#5 a5 g#5",
  H: "a#5 ~ a5@11 ~@3", I: "g5!2 e5!2 d5 ~@3", J: "~@12 b4@3 ~", K: "c#4@3 ~@13",
})).s("gm_trumpet").gain(0.72).pan(0)

// other · trombone · "Trombone2"
const trombone_2 = note("<~@60 A B A C ~@36 D E F G ~ H I H I H I H I H I H J K>".pickRestart({
  A: "~@2 g#3@2 f#3@2 g#3@2 b3 ~ g#3@2 f#3@2 g#3@2", B: "~@2 g#3@2 f#3!2 g#3@2 c#3@3 ~@5",
  C: "~@2 g#3@2 f#3!2 g#3@2 e3@3 ~@3 e4 ~", D: "e3 d#3 e3 d#3 e3 ~@3", E: "c#3@15 ~", F: "g#3",
  G: "e3 ~ e3@2 e3@2 e3!3 ~@7", H: "~@10 e3@2 e3@2 e3!2", I: "e3 ~@15", J: "e3 a3@11 b2@3 ~", K: "c#3@3 ~@13",
})).s("gm_trombone").gain(0.72).pan(1)

// other · trombone · "Trombone3"
const trombone_3 = note("<~@60 A B A C D E F G D E F H I ~@35 J@3 ~@5 K L>".pickRestart({
  A: "b3@11 ~ b3@4", B: "c#4@3 ~@13", C: "c#4@7 ~@9", D: "~@2 b3 ~ b3 ~ b3@2 b3@3 ~ b3@3 ~",
  E: "c#4@2 g#3@2 ~@2 f#3@3 ~ g#3@5 ~", F: "~@4 e4 d#4 c#4 b3", G: "c#4 ~ c#4@3 ~ d#4@2 c#4@2 b3@2 g#3@2 ~@2",
  H: "c#4 ~ c#4@3 ~ d#4@2 c#4@2 b3@2 g#3@2 g#3 a3", I: "a3@15 ~", J: "[e2@47 ~]/3", K: "~@6 c3 ~", L: "c#3@3 ~@13",
})).s("gm_trombone").gain(0.72).pan(0)

// drums · kick
const kick = s("bd").struct(`<
  A@11 B A@7 C A@7 D A@11 B A@7 C A@7 D A@23 C A@5 C A@5 C A D A@5 D A@15 D B ~
>`.pickRestart({
  A: "x!4", B: "x", C: "x!3 ~", D: "x!2 ~@2",
})).gain(0.36)

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

// drums · mid tom
const mid_tom = s("mt").struct("<~@27 A ~@27 A ~@37 B ~@5 B ~@17 C>".pickRestart({
  A: "~ x", B: "~@8 x ~@4 x!3", C: "~@2 x!2 ~ x!2 ~ x ~@7",
})).gain(0.36)

// drums · open hat
const open_hat = s("oh").struct(`<
  ~@12 A B@3 A B A C D A D A D A ~@14 A B@3 A B A C D A D A D A ~@18 A B@3 A B A C D A D A D C D A D A D C D E ~@24
>`.pickRestart({
  A: "~ x!7", B: "x!8", C: "~ x!4 ~@3", D: "x", E: "~ x ~ x ~@4",
})).gain(0.36)

// drums · crash
const crash = s("cr").struct(`<
  ~@12 A ~@3 A ~ A@2 B ~ B ~ B ~ A ~@13 A ~@3 A ~ A@2 B ~ B ~ B ~ A ~@17 A ~@3 A ~ A@2 B ~ B ~ B ~ B ~ B ~ B ~ B A@7
  ~@18
>`.pickRestart({
  A: "x", B: "~ x ~ x ~ x ~ x",
})).gain(0.36)

// drums · high tom
const high_tom = s("ht").struct("<~@93 [~@3 x] ~@5 [~@3 x] ~@16 [~@12 x ~ x!2] ~>").gain(0.36)

// drums · ride
const ride = s("rd").struct("<~@26 A B ~@26 A B ~@38 C@5 D ~@17 E>".pickRestart({
  A: "~@2 x!6", B: "x!4 ~@4", C: "~ x!7", D: "~ x!3 ~@4", E: "~ x",
})).gain(0.36)

stack(
  overdriven_guitar, bass, trumpet, trombone, trumpet_2, trombone_2, trombone_3, kick, snare, mid_tom, open_hat, crash,
  high_tom, ride
)

More by Green Day