Strudelify

Love and Mercy

Brian Wilson

KeyA majorTempo110 bpm
0:00/0:00
// Love and Mercy — Brian Wilson
// 110 bpm, 4/4, key A major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: Full arrangement: all 86 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(110/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 · synth bass 1 · "Bass"
const bass = note(`<
  ~ A B C D A E C F A B G F A B H F A B C D A E C F A B G F A B H F A B C D A E C F ~ I J K L M N O P ~@36
>`.pickRestart({
  A: "a2@2 ~ a2 g#2@2 ~ g#2", B: "f#2@2 ~ f#2 e2@2 ~ e2", C: "d2@5 ~ d2@2 c#2@5 ~ c#2@2",
  D: "b1@5 ~ b1@2 e2@4 ~@2 e2@2", E: "f#2@5 ~ f#2@2 e2@5 ~ e2@2", F: "b1@2 ~ b1 e2@2 ~ e2",
  G: "d2@5 ~ d2@2 c#2@4 ~@2 c#2@2", H: "d2@2 ~ d2 c#2@2 ~ c#2", I: "a2!2 ~ a2 ~@3 a2", J: "g2@2 g2@2 ~@2 g2@2 ~@6 g2 ~",
  K: "f#2@2 f#2@2 ~@2 f#2@3 ~@6 f#2", L: "f2@3 ~@3 f2 ~@5 f2 ~ f2 ~", M: "a2 ~ a2@2 ~@2 a2@2 ~@6 a2 ~",
  N: "f#2 ~ f#2@2 ~@2 f#2@2 ~@6 f#2@2", O: "a2 ~ a2@2 ~@2 a2@3 ~@5 a2 ~",
  P: "e2@2 g#2@2 e2 ~ e2 ~@9, ~@2 e2 ~ b2@4 ~@8",
})).s("gm_synth_bass_1").gain(0.35).pan(0.6)

// chords · synth strings 1 · "Strings"
const synth_strings_1 = note(`<
  ~ A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D E F@3 G H I@3 J@8 K@3 ~ A B C D A B
  C D A B C D A B C D A B C D A B C L
>`.pickRestart({
  A: "[a3,e4,a4,c#5]@3 ~ [e4,a4,c#5]@2 a3@2 [e4,g#4,c#5]@2 ~@2 [e4,g#4,c#5]@2 g#3@2, ~@2 g#3 ~", // A C#m
  B: "[e4,f#4,c#5] ~ [e4,f#4,c#5] f#3 [e4,a4,c#5] ~ [e4,a4,c#5] e3, f#3 ~ e3 ~", // F#7 A
  C: "[d4,f#4,a4] ~ [d4,f#4,a4] d3 [c#4,f#4,a4] ~ [c#4,f#4,a4] c#3, d3 ~ c#3 ~", // D F#m
  D: "[b3,f#4,a4] ~ [b3,f#4,a4] b2 [e4,g#4,b4] ~ [e4,g#4,b4] e3, b2 ~ e3 ~", E: "e2",
  F: "[[a2,a4] [g2,g4] [f#2,f#4], [e4,c#5]@47 ~]/3", G: "[f2,f4,a4,c5]", H: "[e2,e4,a4,c#5]",
  I: "[f#2@2 d5@3 ~, [f#4,a4]@5 ~, c#5@15 ~ a2@20 ~@12]/3", // F#m
  J: "[[a2,c#4,e4]@63 ~ [d3,d4]@63 ~, a3@127 ~, ~@63 f#4@64 ~]/8", K: "[[c#4,e4]@37 ~@11, a2@23 ~, a3@41 ~@7]/3",
  L: "[b3,f#4,a4] ~@7, b2 ~@3", // B7
})).s("gm_synth_strings_1").gain(0.42).pan(0.1)

// other · electric guitar muted · "Guitar"
const electric_guitar_muted = note("<~@11 A@2 ~@14 A@2 ~@13 B C D E F G H ~@15 A@2 ~@6 A@2 ~@6 A@2 ~@4>".pickRestart({
  A: "~ [e2,e3] [f#2,f#3] [a2,a3] ~ [e2,e3] [f#2,f#3] [a2,a3]", // E F# A E F# A
  B: "[e3,a3,c#4] ~ [e3,a3,c#4] ~@3 [e3,a3,c#4] ~@7 [e3,a3,c#4] ~", // A
  C: "[e3,g3,c#4] ~ [e3,g3,c#4] ~@3 [e3,g3,c#4] ~@7 [e3,g3,c#4] ~", // C#dim
  D: "[e3,f#3,c#4] ~ [e3,f#3,c#4] ~@3 [e3,f#3,c#4] ~@7 [f3,a3,c4] ~", // F#7 F
  E: "[f3,a3,c4] ~@3 [f3,a3,c4] ~@3 [f3,a3,c4] ~ [f3,a3,c4] ~@3 [f3,a3,c4] ~", // F
  F: "[e3,a3,c#4] ~ [e3,a3,c#4] ~@3 [e3,a3,c#4] ~@9", // A
  G: "[f#3,a3,c#4] ~ [f#3,a3,c#4] ~@3 [f#3,a3,c#4] ~@3 [f#3,a3,c#4] ~@5", // F#m
  H: "[f#3,a3] ~ [f#3,a3,d4] ~@3 [f#3,a3,d4] ~@3 [f#3,a3] ~@3 [f#3,a3,d4] ~", // F#m D F#m D
})).s("gm_electric_guitar_muted").gain(0.54).pan(0.2)

// chords · synth brass 2 · "Brass"
const synth_brass_2 = note(`<
  ~ A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D ~@9 E F@3 G@3 H I F J@2 A B C D A B
  C D A B C D A B C D A B C D A B C K
>`.pickRestart({
  A: "[a2,e3,a3,c#4]@3 ~ [e3,a3,c#4]@2 a2@2 [e3,g#3,c#4]@2 ~@2 [e3,g#3,c#4]@2 g#2@2, ~@2 g#2 ~", // A C#m
  B: "[e3,f#3,c#4] ~ [e3,f#3,c#4] f#2 [e3,a3,c#4] ~ [e3,a3,c#4] e2, f#2 ~ e2 ~", // F#7 A
  C: "[d3,f#3,a3] ~ [d3,f#3,a3] d2 [c#3,f#3,a3] ~ [c#3,f#3,a3] c#2, d2 ~ c#2 ~", // D F#m
  D: "[b2,f#3,a3] ~ [b2,f#3,a3] b1 [e3,g#3,b3] ~ [e3,g#3,b3] e2, b1 ~ e2 ~", E: "e2 a2 b2 d3@2 c#3@2 ~",
  F: "e2@2 a2@2 b2@2 d3@4 c#3@5 ~", G: "d2@2 f#2@2 a2@2 e3@4 d3@5 ~", H: "d2 f#2 a2 e3@2 d3@3",
  I: "e2 a2 b2 d3@2 c#3@3", J: "[e2 g#1 b1 f#2@2 e2@5 ~@6]/2", K: "[b2,f#3,a3] ~@7, b1 ~@3",
})).s("gm_synth_brass_2").gain(0.36).pan(0.9)

// chords · vibraphone · "Vibes"
const vibraphone = note(`<
  ~@9 A B C D ~@12 A B C D ~@4 E F G H I J K L ~@21 A B C D ~@4 A B C D ~@4 A B C D ~@4
>`.pickRestart({
  A: "e6 f#6", B: "e6!2", C: "f#6 e6", D: "d6@11 ~@5",
  E: "~@6 g#5@2 ~@2 a5@3 ~ g#5 ~, c#6@7 ~ [c#6,e6]@7 ~, a5@5 ~@11, ~ e6@7 ~@8", // C#m
  F: "[c#6,e6]@6 f#5 ~ c#6@2 f#5@3 ~ e5 ~, f#5@3 ~@5 e6@7 ~, ~@8 e5 ~@7", // C#m
  G: "~@4 d5@3 ~@3 c#5@2 ~@2 b4@2, f#5@7 ~ [f#5,a5]@7 ~, d5 ~@7, ~ a5@7 ~@8", // F#m
  H: "~@2 b4@2 ~@2 b4 ~@5 e5@2 ~@2, [f#5,a5]@7 ~ g#5@6 ~@2, ~@4 e5 ~@3, ~@9 b5@6 ~", // F#m
  I: "~@4 a5 ~ a5 ~ g#5 ~ a5@3 ~ g#5 ~, c#6@7 ~ c#6@7 ~, a5 ~@7, ~ e6@7 ~ e6@7",
  J: "~@4 f#5@3 ~ e5 ~ f#5@3 ~ e5 ~, c#6@4 c#6 ~@3, f#5@3 ~@13, ~ e6@7 ~ e6@7",
  K: "~@6 d5 ~ c#5 ~ d5 ~@3 c#5 ~, f#5@3 ~ f#5@3 ~, d5@3 ~@13, ~ a5@7 ~ a5@7",
  L: "~@6 [a4,b4] ~ e5 ~ e5 ~ e5 ~@3, f#5@6 ~@3 b5@6 ~, b4 ~@7, ~ a5@7 g#5@7 ~", // Asus2
})).s("gm_vibraphone").gain(0.18).pan(0.8)

// other · french horn · "Horns"
const french_horn = note("<~@42 A@2 B C D E F G ~@36>".pickRestart({
  A: "a4@3 b4@2 c#5@3", B: "a4@6 b4@3 c#5@4 ~ a4@2", C: "d5@4 c5@4 b4@2 ~ f#4@3 f4@2, ~@10 a4@2 ~@2 e4 ~",
  D: "~@6 c#4@4 e4@3 e4@2 ~, e4 ~", E: "f#4@6 c#4@3 f#4@4 ~ f#4@2", F: "a4@6 f#4@3 ~ a4@3 a4@2 ~", G: "a4 ~@3",
})).s("gm_french_horn").gain(0.3).pan(0.7)

// drums · kick
const kick = s("bd").struct(`<
  ~ A@8 B@4 ~@4 A@8 C@3 D C@3 D E A@7 ~ F@7 G ~@12 C@3 D C@3 D C@3 D C@3 D C D C D C@3 G
>`.pickRestart({
  A: "~ x ~@2", B: "~ x ~ x", C: "x!4", D: "x ~ x ~ x ~ x!2", E: "x!2 ~@2", F: "x ~@2 x ~@2 x ~", G: "x",
})).gain(0.53)

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

// drums · clap
const clap = s("cp").struct("<~@63 [~@3 x] ~@7 [~@3 x] ~@7 [~@3 x] ~@6>").gain(0.53)

// drums · low tom
const low_tom = s("lt").struct("<~ A@8 B@4 ~@4 A@8 B@4 ~@4 A@8 ~@21 B@4 ~@4 B@4 ~@4 B@4 ~@4>".pickRestart({
  A: "~ x ~@2", B: "~ x ~ x",
})).gain(0.53)

// drums · pedal hat
const pedal_hat = s("hh").struct("<~@9 A@8 B@9 C A@6 B@8 ~ B@7 D ~@12 B C A@4 E A B C A@6 B C A@5 ~>".pickRestart({
  A: "~ x ~ x", B: "x!4", C: "x!2 ~ x", D: "x", E: "~ x ~@2",
})).gain(0.35)

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

// drums · tambourine
const tambourine = s("tb").struct("<~ A@8 B@4 ~@4 C@8 B@4 ~@4 C@7 D ~ C@7 E ~@12 B@4 ~@4 B@4 ~@4 B@4 ~@4>".pickRestart({
  A: "~ x ~@2", B: "~ x ~ x", C: "x!4", D: "x!8", E: "x",
})).gain(0.35)

// drums · shaker
const shaker = s("sh").struct("<~@9 [x!16]!8 ~@8 [x!16]!8 ~@29 [x!16]!23 [x!4 ~@12]>").gain(0.24)

// drums · jingle bells
const jingle_bells = s("sleighbells:4").struct("<~@9 A@5 B ~@10 A@5 B ~@31 A@5 B ~@2 A@5 B ~@2 A@5 B ~@2>".pickRestart({
  A: "x!4", B: "x!3 ~",
})).gain(1.02)

// drums · jingle bells · soft notes
const jingle_bells_soft = s("sleighbells:4").struct(`<
  ~@14 A B@2 ~@13 A B@2 ~@9 B@7 C ~@17 A B@2 ~@5 A B@2 ~@5 A B C
>`.pickRestart({
  A: "~@3 x", B: "x!4", C: "x",
})).gain(0.51)

stack(
  bass, synth_strings_1, electric_guitar_muted, synth_brass_2, vibraphone, french_horn, kick, snare, clap, low_tom,
  pedal_hat, open_hat, tambourine, shaker, jingle_bells, jingle_bells_soft
)