Strudelify

Shake for the Sheik

The Escape Club

KeyB majorTempo120 bpm
0:00/0:00
// Shake for the Sheik — The Escape Club
// 120 bpm, 4/4, key B major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: pitch bends are ignored
// note: Full arrangement: all 101 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
// note: Guitar parts that double another keep only their own notes (fills, solos): STEEL GTR.
setcpm(120/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.

// other · electric guitar muted · "MUTED GTR"
const electric_guitar_muted = note(`<
  ~@2 A B A@2 C D E F C D E F G H I J G H I J A B C D E F C D E F G H I J G H I J A B A@2 K L K L ~@3 M G H I J G H I J
  G H I J G H I J A B A@2 ~@4 A B A@3 B A@3 B A@3 B A@2 N ~@8
>`.pickRestart({
  A: "a2 b2!5 a2 b2 ~@8", B: "a2 b2 b2@2 b2!2 a2 b2 ~@8", C: "a2 b2!2 ~ b2@2 a2 b2 ~ b2 ~ b2 ~ a2 b2 a2",
  D: "b2!2 a2 ~ b2 ~ a2 b2 ~ b2 ~ b2 ~ a2!3", E: "b2 ~ b2 ~ b2@2 a2 b2 ~ b2 ~ b2 ~ a2 b2 a2", F: "a2@6 ~ e2@7 ~@2",
  G: "b2@2 ~ b2 e3 f#3 e3 b2 ~ b2 ~ b2 ~ b2 d3@2", H: "b2@3 b2 e3 f#3 e3 b2 ~ b2 ~ b2@2 e2 b2 ~",
  I: "e2@3 e2 e3@3 e2 ~ e2 ~ e2 e3@2 e2@2", J: "a2@4 a2@3 a2 ~ a2 ~ a2 a2@3 ~", K: "d3@4 c#3@3 b2 ~@8",
  L: "e3@4 d3@3 b2 ~@8", M: "a2@7 e2@8 ~", N: "d3@3 ~ c#3@2 b2!2 ~@8",
})).s("gm_electric_guitar_muted").gain(0.64)

// chords · epiano2 · "E.PIANO 2"
const epiano2 = note(`<
  ~@14 A@2 B C A@2 B C D@2 ~@8 A@2 B C A@2 B C D@4 E F G F H@3 I A@2 B C A@2 B C A@2 B C A@2 B C D@4 ~@8 J K J K L@2 M@2
  J K N O E ~@8
>`.pickRestart({
  A: "[d#4,f#4,b4]@8 ~ [d#4,f#4,b4] ~@2 [d#4,f#4,b4] ~@3", B: "[e4,g#4,b4]@9 [e4,g#4,b4] ~@2 [e4,g#4,b4] ~@3",
  C: "[c#4,e4,a4]@9 [c#4,e4,a4] ~@2 [c#4,e4,a4] ~@3", D: "[[d#3,f#3,b3]@23 ~@9]/2",
  E: "[f#4,a4,d5]@4 [e4,g#4,c#5]@2 ~ [d#4,f#4,b4] ~@8", F: "[g#4,b4,e5]@3 ~ [f#4,a4,d5]@2 ~ [d#4,f#4,b4] ~@8",
  G: "[f#4,a4,d5]@3 ~ [e4,g#4,c#5]@3 [d#4,f#4,b4] ~@8", H: "[[b2,f#3,b3]@47 ~]/3", I: "[a3,c#4,e4]@6 ~ [g#3,b3,e4]@8 ~",
  J: "[b3,d#4,f#4]@15 ~", K: "[a3,c#4,e4]@15 ~", L: "[[g3,b3,d4]@31 ~]/2", M: "[[a3,c#4,e4]@31 ~]/2",
  N: "[g3,b3,d4]@15 ~", O: "[a3,c#4,e4]",
})).s("gm_epiano2").gain(0.44)

// chords · rock organ · "ORGAN 3"
const rock_organ = note(`<
  ~@14 A@2 B C A@2 B C D ~@9 A@2 B C A@2 B C D ~@3 E F G F ~@3 H A@2 B C A@2 B C A@2 B C A@2 B C D ~@11 I J I J K@2 L@2
  I J M N E ~@8
>`.pickRestart({
  A: "[d#6,f#6,b6]@8 ~ [d#6,f#6,b6] ~@2 [d#6,f#6,b6] ~@3", B: "[e6,g#6,b6]@9 [e6,g#6,b6] ~@2 [e6,g#6,b6] ~@3",
  C: "[c#6,e6,a6]@9 [c#6,e6,a6] ~@2 [c#6,e6,a6] ~@3", D: "[b5,d#6,f#6]@7 ~@9",
  E: "[f#5,a5,d6]@4 [e5,g#5,c#6]@2 ~ [d#5,f#5,b5] ~@8", F: "[g#5,b5,e6]@3 ~ [f#5,a5,d6]@2 ~ [d#5,f#5,b5] ~@8",
  G: "[f#5,a5,d6]@3 ~ [e5,g#5,c#6]@3 [d#5,f#5,b5] ~@8", H: "[a5,c#6,e6]@6 ~ [g#5,b5,e6]@8 ~", I: "[b5,d#6,f#6]@15 ~",
  J: "[a5,c#6,e6]@15 ~", K: "[[g5,b5,d6]@31 ~]/2", L: "[[a5,c#6,e6]@31 ~]/2", M: "[g5,b5,d6]@15 ~", N: "[a5,c#6,e6]",
})).s("gm_rock_organ").gain(0.35)

// drums · kick
const kick = s("bd").struct("<[x ~ x ~@4 x ~ x ~ x ~@4]!92 [x ~ x ~ x ~ x!2 ~@8] ~@8>").gain(0.8)

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

// drums · snare · soft notes
const snare_soft = s("sd").struct("<~@9 A ~@3 A ~@13 A ~@3 A ~@16 B@3 ~@40 A ~@9>".pickRestart({
  A: "~@12 x!2 ~@2", B: "~@13 x ~@2",
})).gain(0.24)

// drums · clap
const clap = s("cp").struct("<~@14 A@8 ~@10 A@8 ~@12 A@16 ~@4 A@20 ~@9>".pickRestart({
  A: "~ x ~ x",
})).gain(0.8)

// drums · low tom
const low_tom = s("lt").struct("<~@14 A@8 ~@10 A@8 ~@12 A@16 ~@4 B@20 C ~@8>".pickRestart({
  A: "~ x ~ x", B: "~@3 x ~@2 x ~", C: "~@6 x!2 ~@8",
})).gain(0.8)

// drums · hihat
const hihat = s("hh").struct("<[x!8]!92 [x ~ x ~ x ~ x!2 ~@8] ~@8>").gain(0.8)

// drums · hihat · soft notes
const hihat_soft = s("hh").struct("<[~ x ~ x ~ x ~ x ~ x ~ x ~ x ~ x]!92 ~@9>").gain(0.24)

// drums · mid tom
const mid_tom = s("mt").struct("<~@72 [~@3 x!2 ~@11]!20 [~ x ~@2] ~@8>").gain(0.8)

// drums · high tom
const high_tom = s("ht").struct("<~@92 x ~@8>").gain(0.8)

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

// drums · tambourine
const tambourine = s("tb").struct("<[~ x ~ x]!92 ~@9>").gain(0.8)

stack(
  electric_guitar_muted, epiano2, rock_organ, kick, snare, snare_soft, clap, low_tom, hihat, hihat_soft, mid_tom,
  high_tom, crash, tambourine
)