Strudelify
Achy Breaky Heart cover art

Some Gave All

Achy Breaky Heart

Billy Ray Cyrus

KeyE majorTempo122 bpm
0:00/0:00
// Achy Breaky Heart — Billy Ray Cyrus
// 122 bpm, 4/4, key E major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: Full arrangement: all 138 bars on a 16-step grid, each part at one level. Source detail keeps the original performance.
setcpm(122/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 · fretless bass · "Bass"
const bass = note(`<
  ~ A@7 B@2 C@2 A@4 C@4 A@2 D@2 C@2 B@2 D A@3 C B C@2 D@2 A@2 C B C@2 A D@2 A B@2 C B D A D@2 B@4 D@4 B@4 D@4 B@4 D@8
  B@4 D@4 B@4 E D@3 B@4 D@3 E B@4 D@3 E B@4 D@4 B@4 D@2 E D B@4 F G
>`.pickRestart({
  A: "~@6 f#2@2 e2 ~ e2 ~ f#2@2 e2 ~, a2@15 ~", B: "e3@5 ~ c#3@2 b2 ~ b2 ~ c#3@2 b2 ~",
  C: "~@6 c#3@2 b2 ~ b2 ~ c#3@2 b2 ~, e3@15 ~", D: "a2@5 ~ f#2@2 e2 ~ e2 ~ f#2@2 e2 ~",
  E: "a2@6 f#2@2 e2 ~ e2 ~ f#2@2 e2 ~", F: "a2@15 ~", G: "a2@3 ~@13",
})).s("gm_fretless_bass").gain(0.56)

// chords · epiano1
const epiano1 = note(`<
  ~ A@7 B@4 A@4 B@4 A@4 B@4 A@4 B@4 A@4 B@4 A@4 B@4 A@4 B@4 A@4 B@4 A@4 B@4 A@8 B@4 A@4 B@4 A@4 B@4 A@4 B@4 A@4 B@4 A@4
  B@4 A@4 B@4 A C
>`.pickRestart({
  A: "[a3,c#4,e4]@15 ~", B: "[g#3,b3,e4]@15 ~", C: "[a3,c#4,e4]@3 ~@13",
})).s("gm_epiano1").gain(0.56)

// chords · rock organ · "Organ"
const rock_organ = note(`<
  ~ A@7 B@4 C@4 B@4 D@4 B@4 E@4 B@4 C@4 B@4 E@4 B@4 C@4 B@4 F@4 B@4 C@4 B@4 G@8 B@4 C@4 B@4 H@4 I@4 H@4 J@4 C@4 K@4 H@4
  B@4 C@4 B@4 L@2
>`.pickRestart({
  A: "[[a4,c#5,e5]@55 ~]/7", B: "[[g#4,b4,e5]@63 ~]/4", C: "[[a4,c#5,e5]@31 ~]/4", D: "[[a4,c#5,e5]@61 ~@3]/4",
  E: "[~ e5@61 ~@2, [a4,c#5]@31 ~]/4", F: "[a4,c#5,e5]/4", G: "[[a4,c#5,e5]@63 ~]/8", H: "[[a4,c#5,e5]@63 ~]/4",
  I: "[~ g#4@62 ~, [b4,e5]@31 ~]/4", J: "[~ g#4@62 ~, [b4,e5]@63 ~]/4", K: "[g#4,b4,e5]/4",
  L: "[[a4,c#5,e5]@19 ~@13]/2", // A
})).s("gm_rock_organ").gain(0.4)

// drums · kick
const kick = s("bd").struct("<~ [x!2]!135 [x!4] x>").gain(0.46)

// drums · snare
const snare = s("sd").struct("<~ [~ x ~ x]!135 ~@2>").gain(0.46)

// drums · hihat
const hihat = s("hh").struct("<A B C@19 B C@31 B C@15 B C@7 B C@3 B C@15 B C@15 B C@7 B C@14 ~@2>".pickRestart({
  A: "x!4", B: "~ x ~ x!3 ~@2", C: "x!2 ~ x!3 ~@2",
})).gain(0.46)

// drums · open hat
const open_hat = s("oh").struct("<~ [~ x ~ x]!135 ~ x>").gain(0.46)

// drums · crash
const crash = s("cr").struct("<~ A ~@19 A ~@31 A ~@15 A ~@7 A ~@3 A ~@15 A ~@15 A ~@7 A ~@14 A ~>".pickRestart({
  A: "x",
})).gain(0.46)

// drums · ride
const ride = s("rd").struct("<~@29 A@8 ~@24 A@8 ~@36 A@8 ~@16 A@7 ~@2>".pickRestart({
  A: "~@3 x",
})).gain(0.46)

stack(bass, epiano1, rock_organ, kick, snare, hihat, open_hat, crash, ride)