Strudelify

Swear It Again

Westlife

KeyA majorTempo65 bpm
0:00/0:00
// Swear It Again — Westlife
// 65 bpm, 4/4, key A major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: Tempo changes preserved in elapsed time; displayed bars use the dominant tempo.
// note: sustain pedal (CC 64) lengthens the held notes
// note: Full arrangement: all 69 bars on a 32-step grid, each part at one level. Source detail keeps the original performance.
setcpm(65/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.

// chords · piano
const piano = note(`<
  A@2 B C D@2 E F G@2 H I J@2 K@2 L M K@2 L M N O@5 P@4 ~@4 K@2 L M K@2 L Q@3 ~@5 R S@2 T U S@2 T U V W@3 ~@5
>`.pickRestart({
  A: "[[e4,a4]@4 [e4,a4]@3 e4 ~@8 [e4,f#4]@16, ~ g#4@3, ~@3 a4@5, ~@31 d4@33]/2", B: "[e4,a4]!4", C: "[e4,g#4]!4",
  D: "[[d4,a4]@8 [d4,a4]@8 [d4,a4]@8 [d4,b4] ~@3 [d4,e4,f#4,a4]@28 [d3,d4]@2 [c#3,c#4]@2 [b2,b3]@4]/2", // D5 G D C# B
  E: "[a3,e4]!4, a2", F: "[e3,f#3,b3]@4 [e3,f#3,b3]@4 e3@6 ~ [f#3,c#4], ~ [f#3,b3], ~@7 e3",
  G: "[[a3,d4]@8 [a3,d4]@6 ~@2 [a3,d4]@8 [a3,d4] ~@3 d3@16 ~@12 [e3,a3]@8, ~@7 g3@5 ~@2 a3@14 ~@4, ~@14 [e3,f#3]@9 e3@5 ~@4, ~@11 d3@5, ~@3 f#3]/2", // D5 A5 Esus2
  H: "[f#3,d4]!2 f#3 [f#3,f#4], ~ c#4", I: "[f#3,d4]@8 [f#3,d4]@8 [e3,b3]@8 g#3@3 a3@2 b3@3",
  J: "[~@16 [a3,c#4]@8 [g#3,b3] ~@3 [d3,e3,f#3,a3]@20 e3@8 [e3,g#3,b3]@8, [a3,c#4] ~@2 [a3,c#4], ~ [e3,e4]@2 ~@5]/2", // A G#m D E A E
  K: "[a3,e4]!4", L: "[f#3,d4]!4", M: "[g3,a3,d4]!2 [f#3,a3,d4]!2", N: "[e3,a3,c#4]!2 [e3,g#3,b3]!2, ~ e4",
  O: "[a3 ~@2 [a3,d4]@2, [d3,e3,f#3]@2 [e3,b3]@2 ~, ~ [a3,e4]@2 ~@2]/5", P: "[~ [a3,d4], [a3,e4] ~, ~ [e3,b3]@2 ~]/4",
  Q: "[[g3,a3,d4]!2 [f#3,a3,d4] [f#3,a3,d4]@8 ~]/3", R: "~@3 [g#3,b3,e4], ~ [f#3,a3,d4]",
  S: "~ [a3,e4]@4 [a3,e4]@4 [a3,e4]@4 [a3,e4]@3", T: "~ [f#3,d4]@4 [f#3,d4]@4 [f#3,d4]@4 [f#3,d4]@3",
  U: "~ [g3,a3,d4]@4 [g3,a3,d4]@4 [f#3,a3,d4]@4 [f#3,a3,d4]@3", // Gsus2 D
  V: "~ [e3,a3,c#4]@4 e3@4 [e3,g#3,b3]@4 [e3,g#3,b3]@3, ~@5 [a3,c#4]@11", // A E A
  W: "[~ [d3,f#3,a3]@4 [d3,f#3,a3]@4 ~@6 a3 a3@32, ~@9 d3@32 ~@7, ~@9 [f#3,a3]@5 f#3@32 ~@2, ~@13 e3@32 ~@3]/3", // D F#m
})).s("gm_piano").gain(0.16)

// other · piano
const piano_2 = note("<A@2 B C D@2 B E F@2 G H I@2 B J K L B J K L M N@2 ~@44>".pickRestart({
  A: "[a3@12 a3@4 ~@15 d3@33, ~ e3@3]/2", B: "a2", C: "e3@7 e3", D: "[g3@24 g3 ~@3 d3@36]/2", E: "e2",
  F: "[g2@7 d2@9]/2", G: "b2 a#2", H: "a2@16 e2@8 e2@3 f#2@2 g#2@3", I: "[a2@16 a2@8 e2 ~@3 d2@20 e2@16]/2", J: "f#2",
  K: "d2", L: "g2 e2", M: "a2 e2", N: "d2/2",
})).s("gm_piano").gain(0.22)

// bass · fretless bass
const bass = note(`<
  ~@5 A B C D@2 E F G@2 H I J K H I L M@3 N O P@2 Q R S@2 T U V@2 W X J K Y Z L AA AB AC AB AD AE AF AG AH AI@2 AJ AK AL
  AM@2 AN AO AP AQ@7
>`.pickRestart({
  A: "~@12 d2 c#2 b1@2", B: "a1", C: "e1", D: "[g1@24 g1 ~@3 d2@28 d2@4 c#2@4]/2", E: "b1 a#1",
  F: "a1@16 e2@8 e2@3 f#2@2 g#2@3", G: "[a2@24 e2 ~@3 d2@20 e1@8 e1@8]/2", H: "a1@7 a1!2 ~ a1@6",
  I: "f#1@7 c#2 f#1 c#2 f#1@6", J: "d1@6 ~ d1!2 ~ d1@2 ~@2 d1 e1", K: "g1@6 ~ g1 e1 ~ e1 ~@3 e1 a1",
  L: "d1@6 ~ d1!2 ~ d1@2 ~@3 d1",
  M: "[g1@3 b1@2 a1 g1@2 e1 ~ e1 ~@2 c#2 b1 ~@17 d2@12 ~@4, ~@15 e1@9 e2@20 ~@4, ~ a2 ~]/3", N: "a1@7 a1!2 ~@7",
  O: "e1@7 e1!2 ~@5 e1 f#1", P: "[g1@7 g1!2 ~@3 g1 ~ d1@11 b1 a1 e1 d1 c#1 b0@2]/2", Q: "a1@7 a1!2 ~@5 a1 f#1",
  R: "e1@7 e1!2 ~@5 b1 a1", S: "[g1@7 g1!2 ~@3 g1 ~ d1@9 d1!2 ~@3 d1@2 f#1 a1]/2", T: "b1@6 ~ b1 a#1@6 ~ a#1",
  U: "a1@12 b1@2 a1@2 e1@8 e1@3 f#1@2 g#1@3", V: "[a1@8 e1@4 e1 ~ d1@10 e1@4 e1@4]/2", W: "a1@7 a1!2 ~ a1@2 ~@2 a1@2",
  X: "f#1@7 c#2 f#1 c#2 f#1@2 ~@2 f#1 e1", Y: "a1@7 a1!2 ~ a1@2 ~@3 a1", Z: "f#1@7 c#2 f#1 c#2 f#1@2 ~@2 f#1@2",
  AA: "g1@3 b1@2 a1 g1@2 e1 ~ e1 ~@2 c#2 b1 e1", AB: "b1@6 ~ b1 c#2@6 b1 c#2", AC: "d1@6 ~ d1!2 b1 a1 f#1 e1@2 b1 a1",
  AD: "d1@6 d1@2 ~@10 d1 ~ f#1 ~ b1 ~@3 d1@2 c#1@4", AE: "b1@6 ~ b1 c#2@6 ~ c#2", AF: "d2@6 c#2 d2 d#2@6 ~ d#2",
  AG: "e2@6 ~ e2 e2@6 ~ e2", AH: "e2@6 ~ e2 e2@4 e2@4",
  AI: "[~ a1@7 a1!2 ~ a1@2 ~@2 a1@2 f#1@7 c#2 f#1 c#2 f#1@2 ~@2 f#1]/2", AJ: "e1 d1@6 ~ d1!2 ~ d1@2 ~@2 d1",
  AK: "e1 g1@6 ~ g1 e1 ~ e1 ~@3 e1", AL: "a1 a1@7 a1!2 ~ a1@2 ~@3",
  AM: "[a1 f#1@7 c#2 f#1 c#2 f#1@2 ~@2 f#1@2 d1@6 ~ d1!2 ~ d1@2 ~@3]/2", AN: "d1 g1@3 b1@2 a1 g1@2 e1 ~ e1 ~@2 c#2 b1",
  AO: "e1 a2@8 e2@7", AP: "~ d2@15", AQ: "[~@2 a2@16 e2@17 d2@47 ~@9 a1@104 ~@29]/7",
})).s("gm_fretless_bass").gain(0.29)

// chords · acoustic guitar steel · "Epex"
const acoustic_guitar_steel = note(`<
  ~@6 A@2 B@6 C@2 D E C@2 D E F G H I J ~ H I J ~ K L M@2 C@2 D E C@2 D E ~@8 N@2 O P N@2 O P Q R S@2 T@3 ~@2
>`.pickRestart({
  A: "[a3@4 ~@8 c#4@19 g#3 e4@4 ~@8 g#3@20, c#4@3 ~@5 g#3@2 f#3@6, ~@4 a3@27 e3@5 e3@28, ~@6 e4@25 ~@7 e4@26, ~@8 b3@23 ~ b3@32]/2",
  B: "[~@12 d4@12 [b3,d4,g4] ~@151 e4@8 e4@8, d4@3 ~@4 d4@11 d4@6 a3@2 d4@10 a3 b3@2 a3@9, ~@3 g4@9 ~@20 b3@18 f#3@18 c#4@28, ~@2 g3@4 ~ f#3@10 f#3@4 f#3 c#4@6 b3@2 e4@8 g#3@10, ~@20 a#3@9 g#3@3 a3 e3@15]/6", // G
  C: "[e3,a3,c#4]@2 [e3,a3,c#4]@2 [e3,a3,c#4]@2 [e3,a3,c#4] ~", // A
  D: "[f#3,a3,d4]@2 [f#3,a3,d4]@2 [f#3,a3,d4]@2 [f#3,a3,d4] ~", // D
  E: "[g3,b3,d4]@2 [g3,b3,d4]@2 [f#3,a3,d4]@2 [f#3,a3,d4] ~", F: "[a3,c#4]!2 [g#3,b3]!2", G: "a3 f#4@31",
  H: "~@3 e4@4 ~", I: "~@2 f#3 e4@4 ~", J: "~@2 d4 g4@4 ~", K: "b3 f#3 d4@2 a#3 f#3 c#4 ~",
  L: "a3 f#3 d4 ~ b3 g#3 e4@2", M: "[a3 e3 c#4@2 a3 b3 g#3 a3@5 e4@2 e4@2]/2",
  N: "~ [e3,a3,c#4]@4 [e3,a3,c#4]@4 [e3,a3,c#4]@4 [e3,a3,c#4]@2 ~", // A
  O: "~ [f#3,a3,d4]@4 [f#3,a3,d4]@4 [f#3,a3,d4]@4 [f#3,a3,d4]@2 ~", // D
  P: "~ [g3,b3,d4]@4 [g3,b3,d4]@4 [f#3,a3,d4]@4 [f#3,a3,d4]@2 ~", Q: "~ [e3,a3,c#4]@8 [e3,g#3,b3]@7",
  R: "~ [f#3,a3,d4]@12 ~@3", S: "[a3 [c#4,e4] a4@12 ~@2 e3 [g#3,b3] e4@17 [f#3,a3,d4]@29]/2",
  T: "[~@23 a2 c#3 ~ e3 a3@52 ~@17]/3",
})).s("gm_acoustic_guitar_steel").gain(0.29)

// other · string ensemble 1
const string_ensemble_1 = note(`<
  ~@10 A B C D E F G H E F I ~@5 J@2 C K L@2 A B C D E F G H E F I ~ M N M N M O P Q ~@4 R@3 S ~@9
>`.pickRestart({
  A: "[f#3,d4] [f#3,c#4]", B: "[f#3,d4] [e3,b3]", C: "[a3,e4]", D: "[d3,a3] [e3,b3]",
  E: "a5@4 e6@4 d6 c#6 b5 a5 b5@2 c#6@2", F: "a5@4 e6@4 d6 c#6 b5 a5 b5@2 a5@2",
  G: "a5@4 e6@4 d6 c#6 b5 a5 b5@2 b5 c#6", H: "d6", I: "a5@4 e6@4 d6 c#6 b5 a5 b5@2 ~@2",
  J: "[~@14 [d4,e4,f#4,a4]@4 d4 e4 f#4@12]/2", K: "[g#3,e4]", L: "[[g3,d4]@6 ~ [a3,d4,f#4]@9]/2",
  M: "[b2,b3] [c#3,c#4]", N: "[d3,d4]@6 [d3,d4] [c#3,c#4]", O: "[d3,d4]@3 [d3,d4] [d#3,d#4]@3 [d#3,d#4]",
  P: "e3 c#3 b2 c#3 e3@2 c#3 b2 e3@2 e3 c#3 e3 c#3 b2 c#3, ~@20 [a3,d4,f#4]@11 ~", Q: "e3",
  R: "[~ a5@4 e6@4 d6 c#6 b5 a5 b5@2 c#6@2 a5@4 e6@4 d6 c#6 b5 a5 b5@2 a5@2 a5@4 e6@4 d6 c#6 b5 a5 b5@2 ~]/3",
  S: "~ [a3,d4]@15", // D5
})).s("gm_string_ensemble_1").gain(0.04)

// other · string ensemble 2
const string_ensemble_2 = note("<~@60 A B C@7>".pickRestart({
  A: "~ [a2,a3]@8 [e2,e3]@7", B: "~ [d2,d3]@15",
  C: "[~@2 [a2,a3,a4]@16 [e2,e3,g#4]@17 [d2,d3]@47 ~@9 [a3,b3,c#4,e4]@104 ~@29]/7", // A E D A
})).s("gm_string_ensemble_2").gain(0.11)

// other · tremolo strings · "The MIDI Database!"
const tremolo_strings = note("<~@31 A B C D@2 E@3 F G@3 F H I H J H K L M N@3 O P@4 Q R S@3 ~@4>".pickRestart({
  A: "~@9 b4 d5 e5 f#5 a5 b5 c#6", B: "d6 c#6", C: "c#6@16 b5@6 a5@2 g#5@3 a5@2 b5@3",
  D: "[c#6@4 e6@20 [e5,e6]@2 [f#5,f#6]@2 [a5,a6]@20 ~@8 c#4 [d4,e4] [f#4,g#4] [a4,b4] [c#5,d5] [e5,f#5] [g#5,a5] [b5,c#6]]/2", // E F# A Dsus2 F#sus2 Asus2 Dmaj7 Esus2 …
  E: "[e6, d6 ~@95]/3", F: "d6!3 c#6 d6@4 b4 c#5 a5@2 d6 c#6 b5 a5", G: "e6/3", H: "a5 d5 a4 d5 a5 e5 a4 e5",
  I: "f#5@8 d5@2 [f#5,a5] [e5,g#5] [g#5,b5]@2 a5@12 e5@2 f#5@2 g#5@2, ~@7 f#5@4 ~@5", // F#m E G#m
  J: "f#5@4 [f#5,a5] [e5,g#5] [g#5,b5] a5@6 e5 f#5 g#5, ~@7 f#5@4 ~@5", K: "a5 d5 a4 d5 b5 d#5 b5 c#6",
  L: "e6 c#6 b5 c#6 e6@2 c#6 b5 e6@2 e6 c#6 e6 c#6 b5 c#6", M: "e5",
  N: "[~ a5@4 e6@4 d6 c#6 b5 a5 b5@2 c#6@2 a5 b5 c#6 d6 e6@4 d6 c#6 b5 a5 b5@2 c#6@2 a5 b5 c#6 d6 e6@4 d6 c#6 b5 a5 b5@2 b5]/3",
  O: "c#6 d6 c#6 b5 a5 b5@2 ~@2 b3 c#4 a4@2 d5 c#5 b4", P: "[a4 e6@48 d6@15]/4",
  Q: "~ [e5,c#6]@8 [g#5,b5]@2 [a5,c#6]@2 [g#5,e6]@3", R: "~@5 g#5@4 f#5@4 e5@3, ~ a5@15",
  S: "[~@2 [e5,c#6]@16 [g#5,b5]@4 [a5,c#6]@4 [g#5,e6]@9 [d5,e5,a5]@47 ~@14]/3", // C#m G#m A C#m Dsus2
})).s("gm_tremolo_strings").gain(0.09)

// chords · electric guitar clean
const electric_guitar_clean = note("<~@14 A B C ~ A B C ~@15 A B C ~ A B C ~@26>".pickRestart({
  A: "~@6 [a3,e4]@7 ~@19", B: "~@6 c#4@7 ~@19", C: "~@6 [a3,c#4,d4]@7 ~@19",
})).s("gm_electric_guitar_clean").gain(0.11)

// other · electric guitar jazz
const electric_guitar_jazz = note("<~@52 A B C D E B C F ~@9>".pickRestart({
  A: "~@12 e4!4", B: "e4@2 f#4@2 ~@2 c#4@2 c#4@2 b3 a3@2 ~@11 e4@2 e4@2 e4@2 e4@2",
  C: "e4@2 f#4@2 e4@2 e4@2 f#4@2 e4@11 ~@11", D: "~@9 f#4 e4!2 f#4 e4!3",
  E: "f#4@2 c#4@3 b3 a3@7 ~@11 e4@2 e4@2 e4@2 e4@2", F: "b3@9 ~@3 b3@4 e3@4 ~@12",
})).s("gm_electric_guitar_jazz").gain(0.36)

// other · piano
const piano_3 = note(`<
  ~@14 A B C D E B C F@2 ~@9 G H I@2 A B C D E B C F@2 J ~ K ~ L@2 M N@3 O P@3 Q R ~@8
>`.pickRestart({
  A: "~@8 c#4@7 ~ b3@2 a3@2 f#3@2 e3@2 f#3@4 a3@4", B: "e3@4 ~@4 c#4@7 ~ b3@2 a3@2 f#3@2 e3@2 f#3@4 e3@4",
  C: "d3@4 ~@4 c#4@7 ~ b3@2 a3@2 f#3@2 e3@2 f#3@4 f#3@2 a3@2", D: "b3@7 ~@9 b3@2 b3@2 b3@2 a3@2 f#3@2 e3@2 e3@2 f#3@2",
  E: "a3@4 ~@4 c#4@7 ~ b3@2 a3@2 f#3@2 e3@2 f#3@4 a3@4",
  F: "[b3@7 ~@9 [b3,e4]@2 [b3,e4]@2 [b3,e4]@2 [a3,f#4]@4 [f#3,d4]@2 [e3,c#4]@2 [e3,c#4]@9 ~@25]/2", // E5 D C#m
  G: "b3@2 b3 b3@3 b3 b3@3 a#3 c#4@3 ~@2", H: "b3@2 b3!2 ~ a3 ~ g#3@3 ~@4 f#3 g#3",
  I: "[a3@4 a3@2 a3@6 a3@2 g#3@6 g#3@2 g#3@4 g#3@2 f#3@18 ~@2 a3@7 ~ g#3@7 ~]/2", J: "~@6 a3!2 c#4@2 b3 b3@2 a3 a3@2",
  K: "~@3 f#3!4 f#3@2 a3 f#3 e3@2 e3 e3@2", L: "[~@8 b3@2 b3@2 b3@2 b3@11 c#4@7]/2", M: "b3@7 ~@9",
  N: "[~@10 c#4@7 ~ b3@2 a3@2 f#3@2 e3@2 f#3@4 a3@4 e3@4 ~@4 c#4@7 ~ b3@2 a3@2 f#3@2 e3@2 f#3@4 e3@4 d3@4 ~@4 c#4@7 ~ b3@2 a3@2 f#3@2 e3@2 f#3@4 f#3@2]/3",
  O: "a3@2 b3@7 ~@9 b3@2 b3@2 b3@2 a3@2 f#3@2 e3@2 e3@2",
  P: "[f#3@2 a3@4 ~@4 c#4@7 ~ b3@2 a3@2 f#3@2 e3@2 f#3@4 a3@4 e3@4 ~@4 c#4@7 ~ b3@2 a3@2 f#3@2 e3@2 f#3@4 e3@4 d3@4 ~@4 c#4@7 ~ b3@2 a3@2 f#3@2 e3@2 f#3@4 f#3@2]/3",
  Q: "a3@2 b3@7 ~@9 [b3,e4]@2 [b3,e4]@2 [b3,e4]@2 [a3,f#4]@4 [f#3,d4]@2 [e3,c#4]@2", R: "[e3,c#4]@9 ~@23",
})).s("gm_piano").gain(0.29).pan(0.3)

// chords · synth brass 1
const synth_brass_1 = note("<~@24 A B C@2 A B C@2 ~@37>".pickRestart({
  A: "c#4@15 ~", B: "b3@22 ~@2 c#4@7 ~", C: "[[g3,d4]@11 ~ [g3,d4] ~ a3@17 ~]/2",
})).s("gm_synth_brass_1").gain(0.11).pan(0.3)

// other · piano
const piano_4 = note(`<
  ~@14 A B C D E B C F@2 ~@9 G H I@2 A B C D E B C F@2 J ~ K ~ L@2 M N@3 O P@3 Q R ~@8
>`.pickRestart({
  A: "~@8 e4@7 ~ d4@2 c#4@2 b3@2 a3@2 b3@4 c#4@4", B: "a3@4 ~@2 e3@2 e4@7 ~ d4@2 c#4@2 b3@2 a3@2 b3@4 a3@4",
  C: "f#3@4 ~@4 e4@7 ~ d4@2 c#4@2 b3@2 a3@2 b3@4 b3@2 c#4@2",
  D: "d4@7 ~@5 e3@2 e3@2 d4@2 d4@2 d4@2 c#4@2 b3@2 a3@2 a3@2 b3@2",
  E: "e3@4 ~@4 e4@7 ~ d4@2 c#4@2 b3@2 a3@2 b3@4 c#4@4",
  F: "[d4@7 ~@5 e3@2 e3@2 d4@2 d4@2 d4@2 c#4@4 b3@2 a3@2 a3@9 ~@25]/2", G: "f#3@2 f#3 f#3@3 f#3 f#3@3 f#3 f#3@3 ~@2",
  H: "f#3@2 f#3!2 ~ f#3 ~ e3@3 ~@6", I: "[e3@4 e3@2 e3@6 e3@2 e3@6 e3@2 e3@4 e3@2 d3@18 ~@2 e3@7 ~ e3@7 ~]/2",
  J: "~@8 a3@2 f#3 f#3@2 f#3 f#3@2", K: "~@7 f#4@2 f#4 e4 d4@2 c#4 d4@2", L: "[~@8 b3@2 b3@2 b3@2 b3@11 c#4@7]/2",
  M: "b3@7 ~@9",
  N: "[~@10 e4@7 ~ d4@2 c#4@2 b3@2 a3@2 b3@4 c#4@4 a3@4 ~@2 e3@2 e4@7 ~ d4@2 c#4@2 b3@2 a3@2 b3@4 a3@4 f#3@4 ~@4 e4@7 ~ d4@2 c#4@2 b3@2 a3@2 b3@4 b3@2]/3",
  O: "c#4@2 d4@7 ~@5 e3@2 e3@2 d4@2 d4@2 d4@2 c#4@2 b3@2 a3@2 a3@2",
  P: "[b3@2 e3@4 ~@4 e4@7 ~ d4@2 c#4@2 b3@2 a3@2 b3@4 c#4@4 a3@4 ~@2 e3@2 e4@7 ~ d4@2 c#4@2 b3@2 a3@2 b3@4 a3@4 f#3@4 ~@4 e4@7 ~ d4@2 c#4@2 b3@2 a3@2 b3@4 b3@2]/3",
  Q: "c#4@2 d4@7 ~@5 e3@2 e3@2 d4@2 d4@2 d4@2 c#4@4 b3@2 a3@2", R: "a3@9 ~@23",
})).s("gm_piano").gain(0.29).pan(0.8)

// chords · synth brass 1
const synth_brass_1_2 = note("<~@24 A B C@2 A B C@2 ~@37>".pickRestart({
  A: "[e3,a3]@15 ~", B: "g#3@22 ~@2 a3@7 ~, e3@15 ~", C: "[b3@11 ~ b3 ~ [d3,f#3]@17 ~]/2",
})).s("gm_synth_brass_1").gain(0.11).pan(0.8)

// drums · kick
const kick = s("bd").struct("<~@6 A@2 B ~ A@2 B ~ C@8 ~@2 D@2 E F D@2 E G H D E I C@16 J@8 ~@9>".pickRestart({
  A: "x", B: "x ~@5 x!2", C: "x ~@6 x!2 ~ x ~@5", D: "x ~@6 x!2 ~@3 x ~@3", E: "x ~@6 x!2 ~@5 x ~", F: "~@7 x!2 ~@7",
  G: "~@7 x!2 ~@3 x ~@3", H: "x ~@6 x!2 ~@3 x ~@2 x", I: "~@7 x!2 ~@3 x ~ x ~", J: "~ x ~@6 x!2 ~ x ~@4",
})).gain(0.35)

// drums · rim
const rim = s("rim").struct("<~@10 [~ x ~ x]!2 [~ x ~@2] ~@11 [~ x ~ x]!12 ~@33>").gain(0.35)

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

// drums · low tom
const low_tom = s("lt").struct("<~@5 A ~@7 B ~@13 A ~@3 A ~@3 C ~@3 A ~@3 B ~@3 A ~@7 B ~@13>".pickRestart({
  A: "~@7 x", B: "~@15 x", C: "~@14 x!2",
})).gain(0.35)

// drums · hihat
const hihat = s("hh").struct("<~@6 A@4 B@3 C D@8 ~@2 D@27 E F@8 ~@9>".pickRestart({
  A: "x!4", B: "x!8", C: "~ x", D: "x!6 ~ x", E: "x ~@3 x ~@3 x ~@3 x ~@3 x ~@3 x ~@8 x ~@2",
  F: "~ x ~ x ~ x ~ x ~ x ~ x ~@3 x",
})).gain(0.35)

// drums · mid tom
const mid_tom = s("mt").struct("<~@5 A ~@2 B ~@4 C ~@13 A ~@7 D ~@3 E ~@3 F ~@7 D ~@3 B ~@13>".pickRestart({
  A: "~@13 x ~@2", B: "~@3 x", C: "~@5 x ~ x", D: "~@5 x ~@2", E: "~@11 x ~@4", F: "~@7 x",
})).gain(0.35)

// drums · crash
// … 35 more lines

More by Westlife