Strudelify

Horses Through a Rainstorm

Crosby, Stills, Nash & Young

KeyE minorTempo125 bpm
0:00/0:00
// Horses Through a Rainstorm — Crosby, Stills, Nash & Young
// 125 bpm, 4/4, key E minor. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: Full arrangement: all 120 bars on a 24-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(125/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 · acoustic bass · "ACOU BASS"
const bass = note(`<
  ~@11 A B C D E F G H I B C D E F G H I J K L M N E J O D P Q R S T U V B C D E B C D E F G H I J K L M N E J W X Y Z
  AA AB AC AD AE AF AG AH AI AJ E AK V B C D E F G H I B C D E F G H I J K L M N E J O J K L M N E J O AL@3 ~@5
>`.pickRestart({
  A: "~@12 e3 ~ e3 ~ e3 ~ e3 ~ d3 ~ b2@2", B: "e2@5 ~@5 e1 ~ e2@4 e1 ~ e2@4 e1@2, ~ e2 ~@2",
  C: "f#2@5 ~@5 f#1 ~ f#2@4 f#1@2 d2@4 ~@2, ~ f#2 ~@2", D: "e2@5 ~ e2@4 e1 ~ e2@4 e1 ~ e2@4 e1 ~",
  E: "f#2@5 ~ f#2@5 ~ d2@5 ~ d2@4 ~@2", F: "e2@5 ~ e2@4 e1 ~@5 e1 ~@5 e1 ~, ~@2 e2!2",
  G: "f#2@5 ~@5 f#1 ~ d2@5 ~ d2@4 e1 ~, ~ f#2 ~@2", H: "e2@5 ~ e2@4 e1@2 ~@4 e1 ~@5 e1 ~, ~@2 e2!2",
  I: "f#2@5 ~ f#2@4 f#1@2 d2@5 ~ d2@3 ~@3", J: "e2@5 ~ e2@5 ~ e2@5 ~ e2@5 ~", K: "f#2@5 ~ f#2@4 ~@2 d2@5 ~ d2@5 ~",
  L: "e2@5 ~@5 e1 ~@5 e1 ~ e2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#3@8 a3@3 ~@3",
  AC: "[[b3,d4]@10 ~@2 [b3,d4,f#4]@9 ~ [f#3,a3,c#4]@6 ~@20, g3 ~@7]/2", AD: "b3@4 ~@2 b3@7 ~@3 b3 ~ b3@4 a3@2",
  AE: "b3@3 ~ b3@3 ~@3 b3@6 b3@5 ~ a3@2", AF: "[b3@3 ~ b3 ~ b3@2 ~@2 b3@4 ~@2 b3@2 a3@3 ~ b3@8 ~@12 a3@2 ~@2 a3 ~]/2",
  AG: "[b3@6 a3@3 ~ b3@7 ~ b3@2 ~@2 b3@4 ~@2 b3@3 ~@3 b3@5 ~ b3@6 a3@2]/2", AH: "b3@12 ~@10 b3 ~",
  AI: "b3@3 ~ b3 ~ b3@2 ~@2 b3 ~ b3@2 ~@2 b3 ~ b3@4 a3@2", AJ: "b3@2 ~@2 b3 ~ b3@2 ~@2 b3@4 ~@2 b3@5 ~ a3@2",
  AK: "[b3@3 ~ b3 ~ b3@2 ~@2 b3@4 ~@2 b3@2 a3@3 ~ b3@15 ~@3 b3 ~ b3@4 a3 ~]/2", AL: "b3 ~ b3@13 ~@3 b3@4 a3@2",
  AM: "[b3@3 ~ b3 ~ b3@2 ~@2 b3@4 ~@2 b3@2 a3@3 ~ b3@16 ~@2 b3 ~ b3@2 ~@2 b3 ~]/2",
  AN: "a3@4 f#3 ~ f#3@2 ~@2 f#3@7 ~ a3@3 ~@3",
  AO: "[[b3,d4]@10 ~@2 [b3,d4,f#4]@9 ~ [f#3,a3]@14 ~@6 a3@5 ~, g3@3 ~@8 c#4@8 ~@5]/2", AP: "[b3,d4,f#4]/2",
})).s("gm_harpsichord").gain(0.45)

// chords · acoustic guitar steel · "STEEL GTR"
const acoustic_guitar_steel = note(`<
  A B C D C E C D F G H I J K L M L N O P J K L M L N O P J K L M L N O P C E C D F G H I J K L M J K L M L N O P J K L
  M L N O Q R S T@2 U V W X C E C D F G H I J K L M L N O P J K L M L N O P J K L M L N O P J K L M L N O P Y@8
>`.pickRestart({
  A: "[e3,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,e4]@11 ~", R: "[e4,e5] ~ [e4,e5] ~ [e4,e5]@2 [e4,e5] ~@3 [d4,d5]@4 ~@2 [g4,g5]@3 ~@3 [a4,a5]@2",
  S: "~@4 [f#4,f#5]@4 ~@2 [g4,g5]@4 ~@2 [e4,e5]@3 ~@5", // F# G E
  T: "[[e4,e5] ~@3 [f#4,f#5]@3 ~@3 [g4,g5]@3 ~@3 [a4,a5]@3 ~@3 [b4,b5]@17 ~@9]/2", // E F# G A B
  U: "[e5,e6]@2 [e5,e6] ~ [e5,e6] ~ [e5,e6] ~ [e5,e6] ~ [e5,e6] ~ [e5,e6] ~ [e5,e6] ~ [e5,e6] ~ [e5,e6] ~ [e5,e6] ~ [e5,e6] ~", // E
  V: "[e5,e6] ~ [e5,e6] ~ [e5,e6] ~ [e5,e6] ~ [e5,e6] ~ [e5,e6] ~ [e5,e6] ~ [e5,e6] ~ [e5,e6] ~ [e5,e6] ~ [e4,e5] ~ [e4,e5] ~", // E
  W: "[d5,f#5] [c#5,e5] [b4,d5] [c#5,e5] [b4,d5] [a4,c#5] [b4,d5] [a4,c#5] [g4,b4] [a4,c#5] [g4,b4] [f#4,a4]", // D C#m Bm C#m Bm A Bm A …
  X: "[g4,b4] [f#4,a4] [e4,g4] [f#4,a4] [e4,g4] [d4,f#4] [e4,g4] [d4,f#4] [c#4,e4] [d4,f#4] [c#4,e4] [b3,d4]", // G F#m Em F#m Em D Em D …
  Y: "[[b3,d4,f#4], [e3,g3]@17 ~@47]/8", // Bm Em
})).s("gm_acoustic_guitar_steel").gain(0.3).pan(0.4)

// chords · acoustic guitar nylon · "NYLON GTR"
const acoustic_guitar_nylon = note(`<
  A B C D E F G H I J G K E F G H I J G K E F G H I J G K E F G H I J G K E F G H I J G K E F G H E F G H I J G K E F G
  H I J G L E F G H I J G K E F G H I J G K E F G H I J G K E F G H I J G K E F G H I J G K E F G H I J G K M@2 ~@6
>`.pickRestart({
  A: "[e3,g3,b3]@4 ~@2 [e3,g3,b3]@4 ~@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[e2,b2]@6 ~@12 e3 ~@5", // Em E5 Em E5 G E5
  J: "[e3,f#3,b3]@2 ~@2 [e3,f#3,b3] ~@5 [e3,b3]@6 b2@2 [e3,f#3,b3]@3 ~@3, [f#2,b2]@2 ~@3 [f#2,f#3]@4 ~@3, ~@5 b2@2 ~@5", // Esus2 E5 Esus2 B5 F#
  K: "[f#2,b2,e3,f#3,b3]@2 ~@2 [f#2,b2,e3,f#3,b3] ~@5 [e3,f#3,b3]@6 [f#2,b2]@2 [e3,f#3,b3]@2 ~@4, ~@10 [f#2,b2]@5 ~@9", // Esus2 B5 Esus2 B5
  L: "[a2,e3,f#3,b3]@7 ~", M: "[[e2,e3,g3,b3,d4]@11 ~]/2",
})).s("gm_acoustic_guitar_nylon").gain(0.3).pan(0.8)

// chords · epiano2 · "E.PIANO 2"
const epiano2 = note(`<
  A B C D E F G D H D G I J K L M N O P Q J K L R N O P Q J K L R N O P Q E F G D H D G I J K L R J K L R N O P Q J K L
  R N O P S J K L R N O P Q E F G D H D G I J K L R N O P Q J K L R N O P Q J K L R N O P Q J K L R N O P Q T@3 ~@5
>`.pickRestart({
  A: "[e3,b3]@23 ~", B: "d4@5 ~, f#3@3 ~", C: "[e3,b3]@7 ~", D: "[f#3,d4]@19 ~@5", E: "e3@7 ~, b3@19 ~@5",
  F: "d4@7 ~, f#3@3 ~", G: "[e3,b3]@5 ~", H: "[e3,b3]@11 ~", I: "[f#3,d4]@17 ~@7", J: "[e3,e4,g4,b4,d5]@7 ~@5",
  K: "[f#3,f#4,a4,c#5,e5]@5 ~@3", L: "[e3,e4,g4,b4,d5]@5 ~@3", M: "[f#4,a4,c#5,e5]@7 ~@5",
  N: "[g4,b4,d5]@11 ~@13, e3@3 ~@5", O: "f#3 ~@2 d4 ~@2, [a4,c#5,e5]@17 ~@7", P: "[e3,g4,b4,d5]@13 ~@11",
  Q: "[f#3,f#4,a4,c#5,e5]@17 ~@7", R: "[f#3,f#4,a4,c#5,e5]@7 ~@5", S: "[a3,f#4,a4,c#5,e5]@5 ~",
  T: "[[e3,g4,b4,d5]@25 ~@11]/3", // Em7
})).s("gm_epiano2").gain(0.3).pan(0.6)

// chords · synth strings 2 · "SYN STR 2"
const synth_strings_2 = note(`<
  A B C D E F G D H D G I ~@18 J K L M N O E F G D H D G I ~@8 L M N O ~@4 L M N P ~@8 E F G D H D G I ~@12 L M N O Q R
  J K L M N O Q R J K L M N O S@2 ~@6
>`.pickRestart({
  A: "[e3,b3]@23 ~", B: "d4@5 ~, f#3@3 ~", C: "[e3,b3]@7 ~", D: "[f#3,d4]@19 ~@5", E: "e3@7 ~, b3@19 ~@5",
  F: "d4@7 ~, f#3@3 ~", G: "[e3,b3]@5 ~", H: "[e3,b3]@11 ~", I: "[f#3,d4]@17 ~@7", J: "[e3,e4,g4,b4,d5]@5 ~@3",
  K: "[f#3,f#4,a4,c#5,e5]@7 ~@5", L: "[g4,b4,d5]@11 ~@13, e3@3 ~@5", M: "f#3 ~@2 d4 ~@2, [a4,c#5,e5]@17 ~@7",
  N: "[e3,g4,b4,d5]@13 ~@11", O: "[f#3,f#4,a4,c#5,e5]@17 ~@7", P: "[a3,f#4,a4,c#5,e5]@5 ~", Q: "[e3,e4,g4,b4,d5]@7 ~@5",
  R: "[f#3,f#4,a4,c#5,e5]@5 ~@3", S: "[[e3,g4,b4,d5]@13 ~@11]/2",
})).s("gm_synth_strings_2").gain(0.25).pan(0.2)

// drums · kick
const kick = s("bd").struct("<~@12 A@51 B A@4 C@4 A@24 C@16 B ~@7>".pickRestart({
  A: "x ~@4 x!2 ~ x ~@2 x", B: "x", C: "x ~@2 x ~ x!2 ~ x!2 ~ x",
})).gain(0.35)

// drums · rim
const rim = s("rim").struct("<~@12 A@15 B ~@8 A@19 B ~@8 A@3 ~@5 A@23 B ~@24>".pickRestart({
  A: "~ x ~ x", B: "~ x ~@2",
})).gain(0.4)

// drums · snare
const snare = s("sd").struct("<~@27 A B@8 ~@19 A B@7 ~@4 C B@4 ~@23 A B@15 D ~@8>".pickRestart({
  A: "~@8 x!4", B: "~ x ~ x", C: "x!3 ~@3 x ~ x!4", D: "~@3 x ~@4 x!4",
})).gain(0.1)

// drums · snare · soft notes
const snare_soft = s("sd").struct("<~@27 A ~@27 A ~@10 B C ~@27 A ~@15 A ~@8>".pickRestart({
  A: "~@6 x!2 ~@4", B: "~@11 x", C: "~@3 x!3 ~ x ~@4",
})).gain(0.05)

// drums · low tom
const low_tom = s("lt").struct("<~@67 [~@9 x ~ x] ~@43 [~@11 x] ~@8>").gain(0.4)

// drums · hihat
const hihat = s("hh").struct(`<
  A@12 B C B C B C B C B C B C B C B C B C B C B C B C B C B C B C B C B C B C B C B C B C B C B C B C B C B A B C D C B
  C B C B C B C B C B C B C B C B C B C B C B C B C B C B C B C B C B C B C B C B C B E ~@8
>`.pickRestart({
  A: "~ x ~ x", B: "x ~ x!2 ~ x!2 ~ x!2 ~ x", C: "x ~ x!2 ~ x!6 ~", D: "x ~ x!2 ~ x!2 ~ x!2 ~@2", E: "x ~@2 x ~ x!6 ~",
})).gain(0.1)

// drums · mid tom
const mid_tom = s("mt").struct("<~@67 [~@7 x ~@4] ~@43 [~@2 x] ~@8>").gain(0.4)

// drums · open hat
const open_hat = s("oh").struct(`<
  ~@13 A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~@3 A@3 ~ A ~ A
  ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ B C ~@7
>`.pickRestart({
  A: "~@11 x", B: "~@2 x ~@8 x", C: "x",
})).gain(0.4)

// drums · high tom
const high_tom = s("ht").struct("<~@67 [~@5 x ~@6] ~@43 [~@5 x ~@6] ~@8>").gain(0.4)

// drums · ride
const ride = s("rd").struct("<~@28 A@8 ~@20 A@7 B ~@4 A@4 ~@24 A@16 B ~@7>".pickRestart({
  A: "x!4", B: "x",
})).gain(0.4)

// drums · congas
const congas = s("conga:13").struct(`<
  ~@19 A B@7 C B@8 ~@11 A B@7 C B@6 D E ~@2 B F B@4 ~@15 A B@7 C B@15 G ~@8
>`.pickRestart({
  A: "~@2 x", B: "~@3 x ~@4 x ~@3", C: "~@3 x ~@2 x!3 ~@3", D: "~@3 x ~@2 x ~ x!3 ~", E: "~@3 x!4 ~@5",
  F: "~@3 x ~@2 x ~ x ~@3", G: "~ x ~@2",
})).gain(1.27)

// drums · congas
const congas_2 = s("conga:33").struct("<~@19 A B@16 ~@11 A B@14 C D ~@2 B E B@4 ~@15 A B@23 F ~@8>".pickRestart({
  A: "~@9 x ~ x", B: "~@2 x ~@6 x ~ x", C: "~@2 x ~@8 x", D: "~@7 x!5", E: "~ x ~@4", F: "~@2 x ~@6 x ~@2",
})).gain(1.27)

stack(
  bass, harpsichord, acoustic_guitar_steel, acoustic_guitar_nylon, epiano2, synth_strings_2, kick, rim, snare,
  snare_soft, low_tom, hihat, mid_tom, open_hat, high_tom, ride, congas, congas_2
)

More by Crosby, Stills, Nash & Young