Strudelify
Let's Go Crazy cover art

Purple Rain

Let's Go Crazy

Prince

KeyB majorTempo195 bpm
0:00/0:00
// Let's Go Crazy — Prince
// 195 bpm, 4/4, key B major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: pitch bends are ignored
// note: duplicate parts dropped: ch 12 "OVERDRIVE" overdriven guitar (copy of ch 6 "OVERDRIVE" overdriven guitar, 0.646 beats late)
// note: Full arrangement: all 174 bars on a 24-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(195/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.

// chords · church organ · "CHURCHORG1"
const church_organ = note(`<
  A@8 B@2 C@2 ~@8 D E D E D E D E F ~ F ~ F ~ F ~ F ~ F ~ F ~ F ~ G@2 H ~ D E D E D E D E I J I K I J I K F ~ F ~ F ~ L
  M F ~ F ~ F ~ F ~ G@2 H ~ D E D E N E N E O@2 P@2 Q@2 R@2 D S D S D S D S D S D S D S D E G@2 H ~@9 D E D E D E D E I
  J I K I J I K I J I K I J I T@8 ~@8 U@2 V@5
>`.pickRestart({
  A: "[a#4@6 b4 g#4, [c#4,f#4]]/8", B: "a#4/2", C: "[~ g#4, b4@47 ~]/2",
  D: "[c#4,f#4,g#4,a#5]@3 ~@3 [c#4,f#4,g#4,a#5]@4 ~@2 [d#4,f#4,g#4,b5]@3 ~@3 [d#4,f#4,g#4,b5]@4 ~@2", // F# G#m7
  E: "[e5,f#5,g#5,c#6]@4 ~@2 [e5,f#5,g#5,c#6]@4 ~@2 [d#5,f#5,g#5,b5]@3 ~@3 [d#5,f#5,g#5,b5]@4 ~@2", // C#m G#m7
  F: "[c#4,f#4,a#4]@3 ~@3 [c#4,f#4,a#4]@3 ~@3 [d#4,g#4,b4]@3 ~@3 [d#4,g#4,b4]@4 ~@2", G: "[[g#3,c#4,f4]@47 ~]/2",
  H: "[a#3,c#4,f#4]@4 ~@6 [f#3,b3,d#4]@7 ~ [g#3,c#4,f4]@4 ~@2", I: "[c#4,f#4,g#4,a#4]@23 ~", J: "[d#4,f#4,g#4,b4]@23 ~",
  K: "[c#4,f#4,g#4,b4]@23 ~", L: "[c#4,f#4,a#4]@3 ~@3 [c#4,f#4,a#4]@3 ~@3 [d#4,g#4,b4]@3 ~@3 [d#4,g#4]@4 ~@2, ~@3 f#6",
  M: "c#6", N: "[c#4,f#4,g#4,a#5]@3 ~@3 [c#4,f#4,g#4,a#5]@4 ~@2 [d#4,f#4,g#4,b5]@3 ~@3 [d#4,f#4,g#4,b5]@3 ~@3",
  O: "[[a#3,c#4,f#4]@47 ~]/2", P: "[[b3,d#4,g#4]@47 ~]/2", Q: "[[c#4,f#4,g#4]@47 ~]/2", R: "[[d#4,f#4,g#4]@47 ~]/2",
  S: "[e5,f#5,g#5]@3 ~@3 [e5,f#5,g#5]@4 ~@2 [d#5,f#5,g#5]@3 ~@3 [d#5,f#5,g#5]@4 ~@2", // E G#7
  T: "[~@54 e6@12 d#6@21 c#6@4 ~@5, [e4,g#4,b4,b5]@29 ~@3]/8", U: "[~@6 [a#4,c#5,f#5] [a#4,c#5,e5], ~@10 d#6@37 ~]/2",
  V: "[[f#4,b4,d#5]@6 [a4,c5,d5]@6 f#4@2 g4@2 [g#4,e5]@2 f#4@2 g4@2 [c#5,e5,g#5]@86 [f#3,f#4,c#5,f#5]@3 ~@9, ~@6 c#5@2 ~ c#5@2 ~@49]/5", // B D7 C#m F#5
})).s("gm_church_organ").gain(0.17).pan(0.4)

// bass · slap bass 1 · "SLAPBASS 1"
const bass = note(`<
  ~@18 A B C D E F C G E H C D E F C G E H C D E F C G E I J@2 K ~ C D E F C G E H L M L N L O L N C D E F C G E H C D E
  F C G E I J@2 K ~ C P E Q C P E R S@2 T@2 U@2 V W C X E F C G E H C D E F C G E I J@2 K ~ Y ~ Z ~ Y ~ Z ~ C D E F C G
  E H L O L N L O L N L O L N L O L AA@8 ~@9 AB AC@5
>`.pickRestart({
  A: "~@11 a2", B: "b2@2 a2 f#2@2 e2 c#2@2 c2 b1@2 a1", C: "f#1@2 ~ f#1@2 ~@6 a1",
  D: "b1@4 ~@2 b1@3 ~ c#2@6 e2@2 c#2@4 b1@2", E: "f#1@5 ~ f#1@4 ~@12 c#2@2", F: "b1@4 c#2@4 ~@2 e2@7 ~ c#2@6",
  G: "a#1@4 b1@4 ~@2 c#2@6 e2@2 c#2@3 ~ b1@2", H: "b1@4 c#2@4 ~@2 e2@5 ~ e2@2 c#2@6",
  I: "b1@4 c#2@4 ~@2 e2@5 ~ e2@2 c#2@4 g#1@2", J: "[c#2@23 d2]/2", K: "d#2@5 ~@5 b1@7 ~ c#2@5 ~", L: "f#1 a#1 b1 c2",
  M: "c#2@4 e2@2 c#2@3 ~ e2@5 ~ e2@2 e1@4 f1@2", N: "c#2@4 e2@2 c#2@3 ~ e2@10 ~@2 f1@2",
  O: "c#2@4 e2@2 c#2@3 ~ e2@6 e2@2 e1@4 f1@2", P: "b1@4 ~@2 b1@3 ~ c#2@6 e2@2 c#2@3 ~ b1@2",
  Q: "b1@4 ~@2 c#2@3 ~ e2@5 ~ e2@2 c#2@6", R: "b1@4 ~@2 c#2@4 e2@5 ~ e2@2 c#2@6", S: "[f#1@47 ~]/2", T: "[e1@47 ~]/2",
  U: "[d#2@47 ~]/2", V: "e2", W: "b2@6 e2@6 b1@5 ~ a1@6", X: "b1@2 ~ b1@2 c#2@3 e2 c#2@2 b1", Y: "f#1@2 ~ f#1@2 ~@7",
  Z: "f#1@5 ~ f#1@4 ~@14", AA: "[c#2@4 e2@2 c#2@4 [e1,e2]@163 ~ c#2@9 ~@9]/8", AB: "~@6 f#1@2 f#1 a#1@2 a#1",
  AC: "[b1@4 b1@2 c2@4 c2@2 c#2@4 e2@2 c#2@4 e2@86 f#1@3 ~@9]/5",
})).s("gm_slap_bass_1").gain(0.35)

// chords · synth brass 2 · "+SYNBRASS4"
const synth_brass_2 = note("<~@100 A@2 B@2 A@2 B@2 C D C D B@2 E ~@30 F@2 G@4 H@8 ~@15>".pickRestart({
  A: "[~@21 [c#5,d#5,f#5]@7 ~@2 [c#5,d#5,g#5]@2 ~@4 [c#5,d#5,a#5]@2 ~@10]/2", // D#m7 C#sus2 D#7
  B: "[~@21 [c#5,d#5,f#5]@7 ~@2 [c#5,d#5,g#5]@2 ~@4 [c#5,d#5,b5]@2 ~@10]/2", C: "~@9 [c#5,d#5,f#5] ~@2",
  D: "[c#5,d#5,f#5] ~@11", E: "[f#5,a#5]@2 ~@4 [f#5,a#5]@3 ~@3 [f#5,b5]@3 ~@3 [f#5,b5]@3 ~@3", F: "[~@5 c#4@4 ~@7]/2",
  G: "[~@15 c#4@13 ~@20]/2", H: "[~@5 e4@13 d#4@12 c#4@12 b3@12 g#3@12 f#3@21 c#3@3 ~@6]/8",
})).s("gm_synth_brass_2").gain(0.08)

// other · pad poly · "POLYSYNTH"
const pad_poly = note(`<
  ~@28 A B C ~ D ~ E ~ F G H ~ I J ~ K L M N ~ O ~ P ~ Q R S@2 ~@8 A B I ~ T U@2 ~ A V W ~ I J ~@2 L M X ~ O ~ P ~ Q R
  S@2 ~@24 L M X ~@55
>`.pickRestart({
  A: "a#4@4 ~@2 a#4@3 ~@3 b4@4 ~@8", B: "~@22 g#4 ~", C: "a#4@3 ~ a#4 ~ a#4@3 ~@3 b4@3 ~@9",
  D: "a#4@4 a#4 ~ a#4@2 ~@2 a#4 ~ b4@4 ~@8", E: "d5@2 d5 c#5@3 b4@2 ~@4", F: "a#4@4 a#4@4 ~@2 a#4 ~ b4@3 ~ b4@2 ~@6",
  G: "~@3 f#4", H: "a#4@6 a#4@3 ~ b4@4 ~@10", I: "a#4@2 ~ a#4@3 b4@2 ~@4", J: "c#5@3 ~ c#5 ~ b4@3 ~@3 a#4@4 ~@8",
  K: "d5@3 ~ c#5@2 e5@4 b4@6 ~@8", L: "g#4@2 ~ g#4@2 ~ g#4@2 ~ g#4@2 ~", M: "g#4@6 g#4@4 ~@2 g#4@4 g#4@2 g#4@3 ~ g#4 ~",
  N: "a#4@4 ~@6 f#4@6 ~@2 g#4@5 ~", O: "a#4@6 a#4@4 ~@2 b4@5 ~@7", P: "g#4@5 ~ g#4@4 ~@2 b4@4 ~@8",
  Q: "a#4@4 ~@2 a#4@4 ~@2 b4@4 ~@2 b4@3 ~@3", R: "b4@3 b4@2 ~ b4@3 b4@2 ~",
  S: "[a#4@4 ~@2 a#4@5 ~ b4@6 b4@3 ~ g#4@5 ~@21]/2", T: "a#4@3 a#4@2 a#4 a4@2 ~@4", U: "[~@11 d5@4 c#5@2 ~ b4@2 ~@4]/2",
  V: "~@11 a#4", W: "~@4 a#4@2 a#4@3 ~@3 b4@3 ~@9", X: "a#4@5 ~@5 f#4@6 ~@2 g#4@5 ~",
})).s("gm_pad_poly").gain(0.44)

// chords · overdriven guitar · "OVERDRIVE"
const overdriven_guitar = note(`<
  ~@18 A B C ~ D ~ D ~ D ~ E F G H E I E J E F G H E K E L M@2 N ~ E O G H E I E J P Q P Q P Q P Q E F G H E K E J E F G
  H E K E J M@2 N ~ R ~ S ~ T ~ U ~ V@2 W@2 X@2 Y@2 Z AA@2 AB AC AD AE AF AG@4 AH AI@2 AJ AK@2 AL ~ AM AN AO AN AP AN AO
  AN AQ ~ AR ~ AS ~ AR ~ P Q P Q P Q P Q P Q P Q P Q P AT ~ AU@2 AV@7 AW@2 AX AY AZ BA@2 BB@3 BC@2
>`.pickRestart({
  A: "~@11 a3", B: "b3@2 a3 f#3@2 e3 c#3@2 c3 b2@2 a2",
  C: "[a#3,e4]@4 ~@2 [a#3,c#4]@3 ~@3 [b3,e4]@4 ~@2 [b3,c#4]@3 ~@3", // A#dim A#m E5 Bsus2
  D: "[a#3,e4]@4 ~@2 [a#3,c#4]@4 ~@2 [b3,e4]@4 ~@2 [b3,c#4]@3 ~@3", E: "f#2@2 ~ f#2@2 ~@7",
  F: "b2@5 ~ b2@4 [c#3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T: "c#3@2 e3 c#3@2 e3@7",
  AU: "[~@20 d5@25 e5@2 d5]/2",
  AV: "[~@2 b4@3 a4@2 b4 a4 ~ g4@2 ~ g4@2 e4@2 ~ d4@2 b3@3 a3@4 g3@5 e3@46 b5@73 a5@9 f#5@3 e5@2 ~ c#5@2, ~@6 a4 ~@77]/7",
  AW: "[e5@2 f#5@2 e5@26 e5@2 ~ e5@4 c#5 ~ b4 e5@4 ~ f#5 e5 c#5, ~@16 f#5 ~@7]/2",
  AX: "b4 e5@3 f#5 e5 ~ c#5 b4 e5@3 f#5 e5 ~ [b4,c#5] ~ e5@2 f#5 ~ e5 c#5 b4", // Bsus2
  AY: "e5@2 f#5 e5 ~ c#5 [b4,e5]@2 f#5 e5 c#5 b4@3 a4 ~ b4@4 a4 f#4 e4 a4", // E5
  AZ: "b4 a4@5 b4 a4 f#4 e4 a4@2 b4@2 a4@2 a4@6 f#4@2", BA: "[e4@3 c#4@3 c4@3 b3@3 a3@24 f#3@4 f#3@2 e3@4 e3@2]/2",
  BB: "[d#3@4 d#3@2 d3@4 d3@2 c#3@2 d#3@2 e3@2 f#3@2 g3@2 g#3@16 b5@18 f#5@3 e5 d#5 [c#5,d5] e5 d5 c#5 b4 a#4 a4 g#4 g4 [d4,e4] b3]/3", // Dmaj7 Dsus2
  BC: "[[g3,a3] g#3@35 [f#2,c#3]@3 ~@9]/2", // Gsus2 F#5
})).s("gm_overdriven_guitar").gain(0.15)

// chords · distortion guitar · "DISTORTION"
const distortion_guitar = note(`<
  ~@12 A B A C A B A B D B D E D B D E D B D E D F D B D E D E D G D E H@2 I ~ D J D E D F D B K L K L K L K L D B D E D
  F D B D E D E D G D E H@2 I ~ D B D E D B D B M@2 N@2 M@2 O@2 D J D P D Q D E D J D P D F D P H@2 I ~ D R D S D F D E
  D B D E D F D E T U T U T U T U T U T U T U T V@8 ~@9 W X@2 Y Z@2
>`.pickRestart({
  A: "[f#2,c#3,f#3]@4 ~@2 [f#2,c#3,f#3]@4 ~@8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]@4 [b2,e3,g#3]@6 [b2,e3,g#3]@6 [b2,d#3,g#3]@6 [b2,g#3] ~", T: "f#2 a#2 b2 c3",
  U: "c#3@2 e3 c#3@2 e3@4 e2@2 f2",
  V: "[c#3@2 e3 c#3@2 e4@13 d#4@12 c#4@12 b3@12 g#3@12 f#3@21 [c#3,g#3,c#4]@4 ~@5, ~@5 [b2,e3]@82 ~@9]/8", // C#5 E5
  W: "~@12 f#2@4 f#2 ~ a#2@4 a#2@2",
  X: "[b2@4 b2@2 c3@4 c3@2 c#3@4 e3@2 c#3@4 [e3,g#3]@15 [e3,g#3]@6 ~ g#3@4, ~@43 e3@4 ~]/2", // E
  Y: "[e3,g#3]@9 [e3,g#3]@8 [e3,g#3]@3 [e3,g#3]@4", Z: "[[e3,g#3]@4 [e3,g#3]@8 [f#3,c#4,f#4] ~@3]/2",
})).s("gm_distortion_guitar").gain(0.2).pan(0.7)

// chords · string ensemble 1 · "STRINGS"
const string_ensemble_1 = note("<~@43 A@4 ~@25 B C D E ~@3 A@4 ~@32 A@4 ~@55>".pickRestart({
  A: "[~@23 [c#4,f4]@4 ~@2 [c#4,f4]@4 ~@2 [c#4,f4]@4 ~@2 [c#4,f4]@4 ~@2 [c#4,f4]@4 ~@2 [c#4,f4]@5 ~ [c#4,f4]@3 ~ [c#4,f4] ~ [c#4,f4]@2 ~@2 [c#4,f4] ~ [d#4,f#4]@3 ~@7 [b3,d#4]@6 ~@2 [c#4,f4]@4 ~@3]/4", // C# D#m B C#
  B: "~@12 f#4@3 ~@3 f#4@4 ~@2", C: "g#4 ~@5", D: "~@12 f#4@5 ~ g#4@4 a#4@2", E: "g#4@5 f#4 f#4@2 ~@4",
})).s("gm_string_ensemble_1").gain(0.3)

// other · guitar harmonics · "GTHARMONIC"
const guitar_harmonics = note("<~@159 A B C D E F G H I ~@6>".pickRestart({
  A: "~@11 b3 ~ b3!2 ~@9", B: "~@5 b3 ~@12 b3 ~ b3 ~ b3 ~", C: "~@5 [b3,c4] ~ a4 ~@8 f#3@2 ~@6", D: "~@2 e4@7 ~@3",
  E: "~@6 c#4 ~ f#4 ~ e4 ~ f#4 ~ e4 ~ f#4 ~ d4 ~ f#4 ~ c#4 ~",
  F: "e4 ~ f#4 ~ c#4 ~ a4 ~ e4 ~ f#4 ~ d4 ~ f#4 ~ f#4 ~ f#4 ~ e4 ~ a4 ~",
  G: "f#4 ~ f#4 ~ e4 ~ c#4 ~ f#4 ~ e4 ~ f#4 ~ f#4 ~ f#4 ~ d4 ~ f#4 ~ c#4 ~",
  H: "f#4 ~ e4 ~ b3 ~ c#4 ~ b3 ~ c#4 ~ b3 ~ a3 ~ a3 ~@5 f#3 ~", I: "e3 ~@2 c#3 ~@2 c3 ~@2 b2 ~@2 a2 ~@11",
})).s("gm_guitar_harmonics").gain(0.11)

// other · overdriven guitar · "OVERDRIVE"
const overdriven_guitar_2 = note("<~@158 A@4 B@2 C D E F@2 ~@5>".pickRestart({
  A: "[~@14 b5@73 a5@9]/4", B: "[f#5@3 e5@3 c#5@2 e5@2 f#5@2 e5@26 e5@2 ~ e5@4 c#5 ~ b4, ~@20 f#5 ~@3]/2",
  C: "e5@4 ~ f#5 e5 c#5 b4 e5@3 f#5 e5 ~ c#5 b4 e5@3 f#5 e5 ~ [b4,c#5]", // Bsus2
  D: "~ e5@2 f#5 ~ e5 c#5 b4 e5@2 f#5 e5 ~ c#5 [b4,e5]@2 f#5 e5 c#5 b4@3 a4 ~", // E5
  E: "b4@4 a4 f#4 e4 a4 b4 a4@5 b4 a4 f#4 e4 a4@2 b4@2 a4@2", F: "[a4@6 f#4@2 e4@3 c#4@3 c4@3 b3@3 a3@20 ~@8]/2",
})).s("gm_overdriven_guitar").gain(0.06)

// drums · kick
const kick = s("bd").struct("<~@4 A@147 B ~@16 C D E F ~ G>".pickRestart({
  A: "x!2", B: "x ~@4 x ~@6", C: "~@3 x!2 ~", D: "x ~ x ~@3 x ~@2 x ~ x", E: "~@7 x!8 ~@4 x!2 ~@2 x",
  F: "x ~@4 x ~@3 x!9 ~@6", G: "~@5 x ~@6 x ~@11",
})).gain(0.35)

// drums · kick · soft notes
const kick_soft = s("bd").struct("<~@170 [~@4 x!3 ~@8 x!4 ~@2 x!2 ~] [~ x!4 ~ x!3 ~@9 x!6] [x!9 ~@15] ~>").gain(0.2)

// drums · snare
const snare = s("sd").struct("<~@4 A@147 B ~@16 C D E F G B>".pickRestart({
  A: "~ x ~ x", B: "~ x ~@2", C: "~@3 x", D: "~@3 x ~@4 x ~@3", E: "~@17 x!2 ~@5", F: "~@7 x!2 ~@10 x!2 ~@3",
  G: "~@6 x ~@5 x!6 ~@6",
})).gain(0.4)

// drums · low tom
const low_tom = s("lt").struct(`<
  ~@4 A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B
  A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@4 ~@21 C
>`.pickRestart({
  A: "~ x ~@2", B: "~@6 x ~@8 x!5 ~ x ~@2", C: "x!5 ~@19",
})).gain(0.35)

// drums · mid tom
const mid_tom = s("mt").struct("<~@172 [~@18 x!6] x>").gain(0.3)

// drums · open hat
const open_hat = s("oh").struct("<~@152 [~@2 x!10] [x!12]!5 ~@16>").gain(0.15)

// drums · open hat · soft notes
const open_hat_soft = s("oh").struct("<~@151 [~@6 x!6] [x!2 ~@10] ~@21>").gain(0.05)

// drums · crash
const crash = s("cr").struct(`<
  ~@19 A@2 ~@3 A ~@3 A ~@15 A ~ B ~ A ~@3 A ~@3 A ~ A ~ A ~ A ~ A ~@15 A ~ B ~ A ~@3 A ~@3 A ~ A ~ A ~ C A D ~@7 D ~@7 A
  ~ B ~ A ~@3 A ~ C A E ~@3 A ~@3 D ~ A ~ E ~ E ~ D ~ E ~ E ~ E F ~@6 E ~@9 G H I J K G
>`.pickRestart({
// … 15 more lines

More by Prince