Strudelify

Sunny Came Home

Shawn Colvin

KeyE majorTempo85 bpm
0:00/0:00
// Sunny Came Home — Shawn Colvin
// 85 bpm, 4/4, key E major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: Full arrangement: all 75 bars on a 16-step grid, each part at one level. Source detail keeps the original performance.
setcpm(85/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.

// other · clarinet · "Solo"
const clarinet = note(`<
  ~@10 A B C D E B F G@4 H@4 I J@2 ~@2 K L M N O P F Q@4 H@4 R@8 S@4 T@8 U@4 V W V ~@3
>`.pickRestart({
  A: "~@4 e4 d#4 e4@2 f#4@4 e4@2 d#4@2", B: "c#4 b3@2 b3@3 ~@2", C: "~@4 c#4 d#4 e4@2 f#4@4 e4@2 ~ d#4",
  D: "c#4 b3@3 ~@12", E: "~@3 g#3 c#4 d#4 e4@2 f#4@4 e4@2 d#4@2", F: "~@4 e4 d#4 e4@2 f#4@4 e4@2 ~ d#4",
  G: "[c#4 b3@3 ~@6 d#4@2 e4@2 e4@4 b4@2 d#4@2 d#4@4 b4@2 c#4@2 c#4@4 b4@2 a4@2 g#4 f#4 e4@2 ~@2 d#4@2 e4@4 b4@2 d#4@2 d#4@4 b4@2 c#4@2 c#4@2]/4",
  H: "[~ b3 a3@4 b3@2 ~@2 d#4@2 e4@2 e4@4 b4@2 d#4@2 d#4@4 b4@2 c#4@2 c#4@4 b4@2 a4@2 g#4 f#4 e4@4 e4 c#4 f#4@12 ~@2 c#4 d#4@2 e4]/4",
  I: "c#4 ~", J: "[~@2 c#4 e4 d#4 b3@2 c#4@3 a3 b3@5]/2", K: "~@4 e4 d#4 e4@2 f#4@4 ~@2 e4 d#4",
  L: "e4@2 g#4@4 f#4 d#4@5 ~@4", M: "~@3 g#3 c#4 d#4 e4 f#4@5 e4@2 d#4@2", N: "c#4 b3@2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2]/2",
  M: "[e5@6 e5@3 e5 e5@2 e5@2 d#4@4 f#4@4 e4@4 b3@4 d#4@4 c#4@4 b3@4 d#4@4 d#4@4 f#4@4 e4@4 b3@4 d#4@4 f#4@4 g#4@4 f#4@4 d#4@4 f#4@4 e4@4 b3@4 d#4@4 c#4@4 b3@4 d#4@4 d#4@4 f#4@4 g#4@4 f#4@2 e4@2 e4@2]/8",
  N: "[~ f#4@2 g#4@2 f#4 g#4 e4@4 [b4,d#5]@4 [a4,c#5]@4 [e4,a4]@5]/3", O: "[[c#5,e5]@3 d#5@4 c#5@4 e4@5]/2",
  P: "[[c#5,e5]@3 d#5@4 c#5@5 c#5@3 [c#5,e5]@4 [b4,d#5]@4 [a4,c#5]@4 [e4,a4]@5]/4", // C#m B A A5
  Q: "[[c#5,e5]@3 [b4,d#5]@4 [a4,c#5]@4 [e4,a4]@4 c#5@2 ~@2 b4@5, ~@17 c#5@7]/3", // C#m B A A5
  R: "[e5@4 e5@3 d#5@2 c#5 d#5@2 c#5@2 ~ b4@2 e5@5 e5@3 d#5@2 ~ c#5 d#5@3]/2", S: "[c#5@2 b4@3 c#5@24 ~@3]/2",
})).s("gm_acoustic_guitar_steel").gain(0.48)

// other · acoustic guitar steel · "Alto"
const acoustic_guitar_steel_2 = note(`<
  A@2 B C D E F C G H I@6 J K@8 L M C N O@7 J K@8 P@8 Q@7 R@8 S A@2 T@2 U@2
>`.pickRestart({
  A: "c#4@2 c#4 ~ c#4@2 c#4 c#4@2 c#4 c#4@2 c#4@2 c#4@2", B: "~@4 c#4 d#4 e4@2 f#4@4 e4 d#4@2 ~", C: "c#4 b3@2 b3@5",
  D: "~@3 g#3 c#4 d#4 e4@2 f#4@4 e4 f#4@3", E: "g#4@3 ~", F: "~@4 c#4 d#4 e4@2 f#4@3 [f#4,g#4] e4@2 d#4@2",
  G: "~@3 g#3 c#4 d#4 e4@2 f#4@4 e4 d#4@3", H: "c#4@3 f#4",
  I: "[~@2 c#4@3 ~ b3@3 ~ a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 c#4@2 c#4 ~@2 c#4@2 c#4 c#4@2 ~ c#4 c#4@3]/2",
  U: "[c#4@2 c#4@3 g#4@24 ~@3]/2",
})).s("gm_acoustic_guitar_steel").gain(0.48)

// bass · electric bass finger · "Bass"
const bass = note(`<
  ~@2 A B A C D B E F A B A C D B G H I J I K I K L M A B A C A B A C D B G H I J I K I K L N O P O P O P Q R I J I K I
  K I K I J I K I S@2 T@3 U@3
>`.pickRestart({
  A: "c#3!2 c#3@2 b2!2 b2@2", B: "a2!2 a2@2 g#2!2 g#2@2", C: "e3!2 e3@2 b2!2 b2@2", D: "a#2!2 a#2@2 b2!2 b2@2",
  E: "a2!2 a2@2 b2!2 b2@2", F: "f#2@8 c#3 e3@2 c#3 f#3@2 e3 c#3", G: "f#3 c#3", H: "a2@3 a2@3 a2@2",
  I: "e3@2 e3@2 g#3@2 b3 ~ b2@2 b2@2 d#3@2 f#3 ~", J: "f#2@2 f#2@2 a2@2 c#3 ~ a2@2 a2@2 c#3@2 d#3 ~",
  K: "f#2@2 f#2 ~ g#2@2 g#2 ~ a2@2 g#2 ~ f#2@2 g#2 ~", L: "f#2 f#2@5 d#3 d#3@9", M: "a2@3 a2@3 ~@2", N: "a2@15 g#2",
  O: "d#3@2 d#3@2 d#3@3 d#3 g#2@2 g#2@2 g#2@3 g#2", P: "a2@2 a2@2 a2@3 a2 a2@2 a2@2 a2@3 a2",
  Q: "d#3@2 d#3@2 d#3@3 d#3 e3@2 e3@2 e3@3 e3", R: "f#3@2 f#3@2 f#3@3 f#3 d#3@2 d#3@2 d#3@3 e3",
  S: "[f#2@2 f#2 ~ g#2@2 g#2 ~ a2@2 g#2 ~ f#2@2 a#2@6 f#2@2 f#2 f#2@9]/2", T: "g#3 g#3@3",
  U: "[~ g#3@5 g#3@15 c#3@24 ~@3]/3",
})).s("gm_electric_bass_finger").gain(0.48)

// drums · kick
const kick = s("bd").struct("<~@2 x ~@72>").gain(0.1)

// drums · snare
const snare = s("sd").struct("<~@2 [~ x!2 ~ x!3 ~] [x!3 ~ x!3 ~]!44 [x!3 ~@5] ~@27>").gain(0.25)

// drums · crash
const crash = s("cr").struct("<~@2 x ~@72>").gain(0.25)

// drums · high tom
const high_tom = s("ht").struct("<~@2 [~ x!2 ~@2 x!2 ~]!45 [~ x!2 ~@5] ~@27>").gain(0.19)

// drums · tambourine
const tambourine = s("tb").struct("<~@2 [x!16]!45 ~@28>").gain(0.06)

stack(
  clarinet, clarinet_2, acoustic_guitar_steel, acoustic_guitar_steel_2, bass, kick, snare, crash, high_tom, tambourine
)