Strudelify

I'd Just Love to Lay You Down

Conway Twitty

KeyF majorTempo140 bpm
0:00/0:00
// I'd Just Love to Lay You Down — Conway Twitty
// 140 bpm, 4/4, key F major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: metre changes (4/4 at bar 1, 2/4 at bar 4, 4/4 at bar 5) are rendered on a constant 4/4 grid of one bar per cycle
// note: Full arrangement: all 136 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(140/4)

// Notation: c3@3 lasts 3 steps · ~ is a rest · [c3,e3] is a chord · [...]/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 · piano
const piano = note(`<
  ~@4 A@2 B A C@2 A D A E F A F C G H I A@2 B A C@2 G B A@2 F A F J K L A@2 B A C@2 A D A E F A F C G H I A@2 B A C@2 G
  B A@2 F A F J K L M@2 N@2 O@2 P Q A E F A F C G H I A@2 B A C@2 G B A@2 F A F J K R S@2 T S U@2 V T S@2 W S W X Y Z
  AA@2 AB AA AC@2 AD ~@10
>`.pickRestart({
  A: "~ [a3,c4] ~ [a3,c4]", B: "~ [c4,f4] ~ [a3,c4]", C: "~ [bb3,e4] ~ [bb3,e4]", D: "~ [c4,f4] ~ [c4,f4]",
  E: "~ [a3,c4] ~ [f3,a3]", F: "~ [f4,a4] ~ [f4,a4]", G: "~ [bb3,d4] ~ [bb3,d4]",
  H: "~@2 [a3,c4]@2 ~ [c4,a4] [d4,bb4] [c4,a4]", I: "[c4,a4]@3 ~", J: "~ [bb3,e4] ~ [bb3,d4]",
  K: "a3 bb3 c4 f4 a3 bb3 c4 f4", L: "[a3,f4]@3 ~", M: "[[a3,c4]@29 ~@3]/2", N: "[[c4,f4]@29 ~@3]/2",
  O: "[[bb3,e4]@29 ~@3]/2", P: "[a3,c4]@5 ~@3", Q: "[c4,f4]@7 ~@9", R: "[gb3,d4]@3 ~", S: "~ [gb3,a3] ~ [gb3,a3]",
  T: "~ [a3,d4] ~ [gb3,a3]", U: "~ [g3,db4] ~ [g3,db4]", V: "~ [g3,b3] ~ [g3,b3]", W: "~ [d4,gb4] ~ [d4,gb4]",
  X: "~ [g3,db4] ~ [g3,b3]", Y: "gb3 g3 a3 d4 gb3 g3 a3 d4", Z: "[eb3,b3]@3 ~", AA: "~ [eb3,gb3] ~ [eb3,gb3]",
  AB: "~ [gb3,b3] ~ [eb3,gb3]", AC: "~ [e3,bb3] ~ [e3,bb3]", AD: "~ [e3,ab3] ~ [e3,ab3]",
})).s("gm_piano").gain(0.42)

// chords · piano · soft notes
const piano_soft = note("<~@126 A B@2 C B C D E F@2>".pickRestart({
  A: "~ [gb3,b3] ~ [eb3,gb3]", B: "~ [eb3,gb3] ~ [eb3,gb3]", C: "~ [b3,eb4] ~ [b3,eb4]", D: "~ [e3,bb3] ~ [e3,ab3]",
  E: "eb3 e3 gb3 b3 eb3 e3 gb3 b3", F: "[[eb3,b3]@29 ~@3]/2",
})).s("gm_piano").gain(0.17)

// bass · piano
const bass = note(`<
  A@2 B C D@3 E F G H D@5 E I J K C D@3 E F G H D@5 E I D C D@3 E F G H D@5 E I J K C D@3 E F G H D@5 E I D C L@4 M@2 N
  O D@4 E I J K C D@3 E F G H D@5 E I D P Q@3 R S T U Q@5 R V Q W X@3 Y Z AA AB ~@10
>`.pickRestart({
  A: "f3@4 c3 d3 f3@2", B: "f3@4 eb3 f3@3", C: "f2 ~", D: "f2 c2", E: "f2!2", F: "c2 g2", G: "c2 c3", H: "bb2!2",
  I: "c2!2", J: "bb1!2", K: "e2 c2", L: "[f2@29 ~@3]/2", M: "[c2@29 ~@3]/2", N: "bb2@7 ~", O: "f2@8 c2@2 d2@2 e2@3 ~",
  P: "d2 ~", Q: "d2 a1", R: "d2!2", S: "a1 e2", T: "a1 a2", U: "g2!2", V: "a1!2", W: "b1 ~", X: "b1 gb1", Y: "b1!2",
  Z: "gb1 db2", AA: "gb1 gb2", AB: "e2!2",
})).s("gm_piano").gain(0.8)

// bass · piano · soft notes
const bass_soft = note("<~@126 A@5 B C A D@2>".pickRestart({
  A: "b1 gb1", B: "b1!2", C: "gb1!2", D: "[b1@29 ~@3]/2",
})).s("gm_piano").gain(0.32)

// drums · kick
const kick = s("bd").struct("<~@4 A@67 ~ A ~ A ~ A@50 ~@10>".pickRestart({
  A: "x",
})).gain(0.51)

// drums · kick · soft notes
const kick_soft = s("bd").struct("<~@126 x!9 ~>").gain(0.2)

// drums · snare
const snare = s("sd").struct(`<
  ~@4 A@15 ~@2 A@14 ~@2 A@15 ~@2 A@14 ~@10 A@7 ~@2 A@14 ~@2 A@14 ~@2 A@7 ~@10
>`.pickRestart({
  A: "~ x",
})).gain(0.51)

// drums · snare · soft notes
const snare_soft = s("sd").struct("<~@126 [~ x]!7 ~@3>").gain(0.2)

// drums · hihat
const hihat = s("hh").struct("<~@21 A@14 B ~@18 A@14 B ~@18 A@14 B ~ A@14 B ~ A@8 ~@9>".pickRestart({
  A: "~ x ~ x", B: "~@2 x ~@4 x",
})).gain(0.51)

// drums · hihat · soft notes
const hihat_soft = s("hh").struct("<~@127 [~ x ~ x]!6 [~@2 x ~@4 x] ~@2>").gain(0.2)

// drums · mid tom
const mid_tom = s("mt").struct("<~@19 A ~@15 A ~@16 A ~@15 A ~@8 B ~@7 A ~@15 A ~@15 A ~@15 A ~@2>".pickRestart({
  A: "~@3 x", B: "~@6 x!2",
})).gain(0.51)

// drums · high tom
const high_tom = s("ht").struct("<~@19 A ~@15 A ~@16 A ~@15 A ~@8 A ~@7 A ~@15 A ~@15 A ~@15 A ~@2>".pickRestart({
  A: "~@4 x!2 ~@2",
})).gain(0.51)

stack(piano, piano_soft, bass, bass_soft, kick, kick_soft, snare, snare_soft, hihat, hihat_soft, mid_tom, high_tom)