Strudelify

Rat Bat Blue

Deep Purple

KeyA majorTempo96 bpm
0:00/0:00
// Rat Bat Blue — Deep Purple
// 96 bpm, 4/4, key A major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: duplicate parts dropped: ch 5 "Round sound" recorder (copy of ch 7 "Sped up piano" piano); ch 7 "Sped up piano" piano (copy of ch 9 "Sped up piano 2" harpsichord)
// note: Full arrangement: all 131 bars on a 32-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(96/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 · "Bass"
const bass = note(`<
  ~@4 A B A B A B A B C D E C D E F G H E I J A B A B A B A B C D E C D E K G L E I J A B A B A B A M N@8 O@25 P@4 Q R S
  ~ A B A B A B A B C D E C D E F T H E I J A B A B A B A B A B A B A B A B A B
>`.pickRestart({
  A: "e1@4 e2@2 ~@2 e2@2 d2@2 e1@2 e2@2 ~@2 d2@4 e1@3 ~ e1@2 d2@2 e2@2",
  B: "e1@4 e2@2 ~@2 e2@2 d2@2 e1@2 e2@2 ~@2 d2@11 ~@3", C: "a1!16", D: "a1!13 d2 d#2 e2",
  E: "c3@2 e2@2 d2@2 c2@2 d2@2 c2@2 a1@2 c2@2 d2@2 c2@2 d2@2 d#2@2 d2@2 c2@2 a1@3 ~",
  F: "d2 ~ d2@3 ~ d2 ~ d2@4 a1@2 c2 ~ d2@2 d2@3 ~ d2 ~ d2@4 a1@2 c2@2",
  G: "d2@2 d2@4 d2 ~ d2@4 a1@2 c2@2 d2@4 f#1@4 g1@4 g#1@4",
  H: "a1 ~ a1@3 ~ a1 ~ a1@4 e1@2 g1@2 a1@2 a1@3 ~ a1 ~ a1@2 d2@2 d#2@2 e2@2", I: "e2@14 ~@2 d2@11 ~ c2@4",
  J: "a1@7 ~ a1@6 ~ a1 ~ a1@4 ~ a1@4 b1@2 d2@2 e2@2",
  K: "d2 ~ d2@3 ~ d2 ~ d2@4 a1@2 c2@2 d2@2 d2@3 ~ d2 ~ d2@4 a1@2 c2@2",
  L: "a1 ~ a1@3 ~ a1 ~ a1@4 e1@2 g1@2 a1 ~ a1@3 ~ a1 ~ a1@2 d2@2 d#2@2 e2@2",
  M: "e1@2 e2 ~ e2 d2 e1 e2 ~@5 e1 g1 a1, ~@18 d2@11 ~@3",
  N: "c2@2 a1@3 ~@3 g1@2 a1@3 ~@3 c2@2 a1@3 ~@5 e1@2 g1@2 a1@2", O: "c2 a1!3 g1 a1!3 c2 a1!4 e1 g1 a1",
  P: "a2@2 c#2@3 d2@3 d#2@3 e2@3 g2 g#2", Q: "a2!16, a3@4 c#3@5 ~@23", R: "a2!16", S: "a2@29 ~@3",
  T: "d2 ~ d2@3 ~ d2 ~ d2@4 a1@2 c2@2 d2@4 f#1@4 g1@4 g#1@4",
})).s("gm_electric_bass_finger").gain(0.44)

// other · church organ · "Other organ"
const church_organ = note("<~@64 A B C D A B C D ~@59>".pickRestart({
  A: "a5 c6 d6 e6 d6 e6 d6 c6 a5 c6 d6 e6 d6 e6 d6 c6 a5 d6 e6 f6 e6 f6 e6 d6 a5 d6 e6 f6 e6 f6 e6 d6",
  B: "g#5 d6 e6 f6 e6 f6 e6 d6 g#5 b5 c6 d6 c6 d6 c6 b5 a5 b5 c6 d6 c6 d6 c6 b5 a5 b5 c6 d6 c6 d6 c6 b5",
  C: "g5 c#6 d6 e6 d6 e6 d6 c#6 f#5 d#6 e6 f#6 e6 f#6 e6 d#6 e6 e5 f#5 g5 f#5 g5 f#5 e5 d5 e5 f5 g5 f5 g5 f5 e5",
  D: "c5 f#5 g#5 a5 g#5 a5 g#5 f#5 b4 g#5 a5 b5 a5 b5 a5 g#5 a5 a4 b4 c5 b4 c5 b4 a4 e5@4 e4@4",
})).s("gm_church_organ").gain(0.58)

// chords · rock organ · "Main hammond"
const rock_organ = note("<~@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@17 d5@2 c5@2 a4@2 g4@2 e4@2 ~@2, ~@17 d6@2 ~@6 a5@2 ~@4 g5@2 ~@3 g#5 ~@4 a5@2 ~@10 a4@2 g4@2 e4@2 d4@2 ~@3]/2", // A5 G5 E5 D5 C5 D5 C5 G5 …
})).s("gm_rock_organ").gain(0.8)

// chords · rock organ · "Main hammond" · soft notes
const rock_organ_soft = note(`<
  ~@89
  [~@2 e6 d6 d#6 e6 d6 d#6 e6 d6 d#6 e6 d6 d#6 e6 d6]
  [d#6@2 e6@2 d6@2 d#6@2 e6@2 d6@2 d#6@2 e6@2 d6@2 d#6@2 e6@2 ~ d#6@2 e6@2 d6@3 d#6@2, ~@22 d6@3 ~@7]
  [~@8 d6 e6@2 ~@7 a#5@3 ~@11]
  [~@4 d#5 e5@4 e5 d5 b4 ~@6 a#4@4 ~@10]
  ~@38
>`).s("gm_rock_organ").gain(0.4)

// other · percussive organ · "Main hammond"
const percussive_organ = note("<~@54 A B C D E F G H@2 ~@68>".pickRestart({
  A: "~@4 c5@2 a4@3 ~@4 g4@2 a4@2 ~@5 a4@3 ~@7, ~@21 c5@2 ~@9",
  B: "~@4 c5@2 a4@3 ~@5 a4@3 ~@3 c5@2 e4@5 ~@5, ~@13 g4@2 ~@17",
  C: "~@3 d4@2 e4@3 ~@2 g4@3 e4 ~ g4 ~ a4 ~ a4@2 ~@2 a4@4 ~@5",
  D: "~@5 e4@3 ~@2 g4@4 e4 ~ g4 ~ a4 ~ a4@2 ~@3 a4@2 ~ a4 ~ c5 ~, ~@2 d4 ~@13",
  E: "[c#5,d5]@3 ~ d5@3 ~ d5@3 ~ c5 ~ c5 ~ c5@3 d5@2 e5 ~ d5@6 a4 ~ c5, ~@4 c#5 ~@3 c#5 ~@4 d5@2 a4@2 ~@15", // Dmaj7
  F: "d5@3 ~ d5@2 ~@2 d5@4 c5 d5 c5 a4 d5@3 ~ d5@2 c5@2 a4@5 ~@3, ~@4 c#5 ~@3 c#5 ~@10 e5@2 ~@11",
  G: "~ e5@4 g5@2 ~ e5@3 g5@2 [d#5,e5]@4 g5@2 ~ e5@4 ~@2 e5@4 g5@2, ~ d#5@2 ~@4 d#5@2 ~@10 d#5@2 ~@3 g5@2 ~@6, ~@25 d#5@2 ~@5", // Emaj7
  H: "[e5@4 g5@2 f#5@4 a5 ~@2 g#5@3 b5@2 a5@2 a#5@2 b5@4 c6@2 c#6@3 d6@2 d#6@2 e6@2 f6 ~ e6 f6 ~ d#6@2 e6 ~ e6 ~ e6 ~ [e6,f6] d#6 e6 e6@2 e6@5 ~@4, d#5@2 ~@4 f5@2 ~@4 g5@2 ~@27 e6@2 ~@10 d#6 ~@10, ~@42 f6 ~@2 f6@2 f6@2 ~@15]/2", // Fmaj7
})).s("gm_percussive_organ").gain(0.8)

// other · harpsichord · "Sped up piano 2"
const harpsichord = note("<~@64 A B C D A B C D E F ~@57>".pickRestart({
  A: "e5 a5 b5 c6 b5 c6 b5 a5 e5 a5 b5 c6 b5 c6 b5 a5 b5 a5 g#5 a5 b5 a5 g#5 a5 d5@2 b5 c6 b5 a5 g#5 a5",
  B: "b5 b4 c5 d5 c5 d5 c5 b4 e5 d5 e5 f5 e5 f5 e5 d5 c5 g#4 a4 b4 a4 g#4 a4 b4 c5 a5 g5 f5 e5 f5 e5 d5",
  C: "c#5 e5 f#5 g5 f#5 g5 f#5 e5 d#5 f#5 g5 a5 g5 a5 g5 f#5 g5 g4 a4 b4 a4 b4 a4 g4 f4 g#4 a4 b4 a4 b4 a4 g#4",
  D: "e4 a4 b4 c5 b4 c5 b4 a4 d5 b4 c5 d5 c5 d5 c5 b4 c5 a4 g#4 a4 e4 a4 g#4 a4 c5@4 e4@4",
  E: "[a3,e4,a4,a5,c#6,e6]@8 ~ [a3,e4,a4,a5,c#6,e6]@8 [a3,e4,a4,a5,c#6,e6]@7 ~ a3@7, ~@3 [e4,a4,a5,c#6,e6]", // A
  F: "~ [a3,e4,a4,e5,a5,c#6]@12 ~@19", // A
})).s("gm_harpsichord").gain(0.59)

// drums · kick
const kick = s("bd").struct(`<
  ~@4 A B A B A B A B C@2 D C@2 D C@3 D E F A B A B A B A B C@2 D C@2 D C@3 D E F A B A B A B A B G@8 H@24 I J@4 H@2 K@2
  A B A B A B A B C@2 D C@2 D C@3 D E F A B A B A B A B A B A B A B A B A B
>`.pickRestart({
  A: "x ~@5 x ~@4 x ~ x ~@2", B: "x ~@2 x ~@4", C: "x ~@2 x!2 ~@3 x ~@2 x!2 ~@3", D: "x ~ x ~@3 x ~ x ~@2 x ~@2 x ~",
  E: "x ~@2 x ~@4 x ~@2 x ~@4", F: "x ~@2 x ~@3 x ~@8", G: "x!2 ~@2 x ~@3", H: "x!2 ~@2 x!2 ~@2 x!2 ~@2 x!2 ~@2",
  I: "x!2 ~@2 x!2 ~@2 x!2 ~@2 x!2 ~ x", J: "~@2 x ~@2 x ~@2 x ~@2 x ~@4", K: "x",
})).gain(0.38)

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

// drums · hihat
const hihat = s("hh").struct(`<
  ~@14 A ~@2 A ~@3 A B C ~@10 A ~@2 A ~@3 A B C ~@8 D@8 ~@43 A ~@2 A ~@3 A B C ~@18
>`.pickRestart({
  A: "x!5 ~ x!2", B: "~ x ~@3 x ~@2", C: "~ x ~@6", D: "x!8",
})).gain(0.38)

// drums · low tom
const low_tom = s("lt").struct(`<
  ~@5 A ~ B ~ A ~ C ~@13 A ~ B ~ A ~ C ~@13 A ~ B ~ A ~ B ~@42 A ~ B ~ A ~ C ~@13 A ~ B ~ A ~ C ~ A ~ B ~ A ~ C ~ A
>`.pickRestart({
  A: "~@31 x", B: "~@15 x", C: "~@29 x!3",
})).gain(0.35)

// drums · mid tom
const mid_tom = s("mt").struct(`<
  ~@5 A ~ B ~ A ~ C ~@13 A ~ B ~ A ~ C ~@13 A ~ B ~ A ~ B ~@42 A ~ B ~ A ~ C ~@13 A ~ B ~ A ~ C ~ A ~ B ~ A ~ C ~ A
>`.pickRestart({
  A: "~@29 x!2 ~", B: "~@7 x", C: "~@25 x!4 ~@3",
})).gain(0.35)

// drums · open hat
const open_hat = s("oh").struct(`<
  ~@14 A ~@2 A ~@3 A B C ~@10 A ~@2 A ~@3 A B C ~@59 A ~@2 A ~@3 A B C ~@18
>`.pickRestart({
  A: "~@5 x ~@2", B: "~@2 x!2 ~@2 x!2", C: "~@2 x!2 ~@4",
})).gain(0.38)

// drums · high tom
const high_tom = s("ht").struct(`<
  ~@5 A ~ B ~ A ~ C ~@13 A ~ B ~ A ~ C ~@13 A ~ B ~ A ~ B ~@42 A ~ B ~ A ~ C ~@13 A ~ B ~ A ~ C ~ A ~ B ~ A ~ C ~ A
>`.pickRestart({
  A: "~@7 x", B: "~@13 x ~@2", C: "~@3 x",
})).gain(0.38)

// drums · crash
const crash = s("cr").struct(`<
  ~@4 A ~ A ~ A ~ A ~ A ~ A@2 ~ A@2 ~@2 A B A@2 ~ A ~ A ~ A ~ A ~ A@2 ~ A@2 ~@2 A B A@2 ~ A ~ A ~ A ~ A ~@7 A ~ C D ~@20
  E F@4 ~@2 A ~ A ~ A ~ A ~ A ~ A ~ A@2 ~ A@2 ~@2 A B A@2 ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~
>`.pickRestart({
  A: "x", B: "x!2", C: "~@25 x!7", D: "x!7 ~ x ~ x!22", E: "~@15 x", F: "~@2 x ~@2 x ~@2 x ~@2 x ~@4",
})).gain(0.31)

// drums · ride
const ride = s("rd").struct("<~@60 [x!16]!25 ~@4 [x!16]!2 ~@40>").gain(0.31)

// drums · tambourine
const tambourine = s("tb").struct(`<
  ~@12 A@2 ~ A@2 ~ A@3 ~@11 A@2 ~ A@2 ~ A@3 ~@11 A@8 B@31 ~@10 A@2 ~ A@2 ~ A@3 ~@21
>`.pickRestart({
  A: "~ x ~ x", B: "~ x ~ x ~ x ~ x",
})).gain(0.38)

// drums · cowbell
const cowbell = s("cb").struct(`<
  ~@4 A B A@3 B A C ~@12 A B A@3 B A C ~@12 A B A@3 B A@2 ~@41 A B A@3 B A C ~@12 A B A@3 B A C A B A@3 B A C A B
>`.pickRestart({
  A: "x!8", B: "x!6 ~@2", C: "x!7 ~",
})).gain(0.35)

stack(
  bass, church_organ, rock_organ, rock_organ_soft, percussive_organ, harpsichord, kick, snare, hihat, low_tom, mid_tom,
  open_hat, high_tom, crash, ride, tambourine, cowbell
)

More by Deep Purple