Strudelify

Never Can Say Goodbye

Jackson 5

KeyD majorTempo82 bpm
0:00/0:00
// Never Can Say Goodbye — Jackson 5
// 82 bpm, 4/4, key D major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: pitch bends are ignored
// note: sustain pedal (CC 64) lengthens the held notes
// note: Full arrangement: all 66 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(82/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(`<
  ~@2 A B C D E F G H I J K L M N C D E F G H I J K O M N P@2 Q R P@2 Q S C D T F G H I J K U M N P@2 Q R P@2 Q V P@2 Q
  R P@2 Q V W@2
>`.pickRestart({
  A: "[g3,b3,d4,f#4]@6 ~ e4, e2, ~@3 [g3,b3,d4,f#4]", B: "[g3,b3,d4,f#4]@3 [g3,b3,d4], e2@15 ~",
  C: "[g3,b3,d4,f#4]@3 [g3,b3,d4,f#4], e2@15 ~", D: "[g3,b3,d4,e4]@9 ~ [a3,a4]@2 ~ [a3,a4]@2 a2, a2@7 ~",
  E: "[g3,b3,d4,f#4]@11 ~ [g3,b3,d4,f#4]@2 e2@2, e2@3 ~", // Gmaj7
  F: "[a2,g3,b3,d4,e4]@8 ~ a3 [a3,a4] ~ a3 ~ a2 ~, ~@8 a2@5 [a3,a4]@2 ~", // Em7 A
  G: "[c#4,f#4,a4]@4 [c#4,f#4,a4]@2 ~ c#4@2 c#4@3 ~@2 b4@2, d3, ~@7 [f#4,a4]@5 [c#4,f#4,a4]@4", // F#m
  H: "~@5 e4@2 [d3,e4]@2 ~@5 d3@2, c5, d3@7 a4@9, ~@2 e4@3 b4@11, ~@3 g4@6 e4 d3@2 [e4,g4]@4", // Dsus2 Em
  I: "[c#4,f#4,a4]@4 [c#4,f#4,a4] [c#4,f#4,a4]@2 c#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"[g#3,b3]@4 ~ b3 ~ g3@4 ~ g3 a#3 d3 [d3,d4], [d3,e4]@6 d3@7 ~@3, ~@4 g#3@2 ~ [a#3,d#4]@7 ~@2", // G#m D Dsus2 D#5
  R: "~ [a2,a3] [b2,b3] [d3,d4] ~ [a2,a3] [b2,b3] [d3,d4] ~ [a2,a3] [b2,b3] [d3,d4] ~ [a2,a3] [b2,b3] d3", // A B D A B D A B …
  S: "~ [a3,a4] [b3,b4] [d4,d5] ~ [a3,a4] [b3,b4] [d4,d5] ~ [a3,a4] [b3,b4] [d4,d5] [a3,a4] [b3,b4] [d4,d5] [e4,e5]", // A B D A B D A B …
  T: "[g3,b3,d4,f#4]@11 ~@3 e2@2, e2@3 [g3,b3,d4,f#4]", // Gmaj7
  U: "[e4,g4]@3 e4@2 ~@2 g4@2 ~@3 [g4,c5,d5]@4, c4@15 ~, d3@5 e4@10 ~, ~@3 [g4,c5]@3 d3 c5@2 d3 g4 d3@5, ~@7 e5@8 ~", // Em Gsus4 C5
  V: "~@3 [d4,d5] ~ [a3,a4] [b3,b4] [d4,d5] ~ [a3,a4] [b3,b4] [d4,d5] ~ [a3,a4] [b3,b4] [d4,d5]", // D A B D A B D A …
  W: "[[d2,a3,c#4,f#4]@29 ~@3]/2", // Dmaj7
})).s("gm_piano").gain(0.32).pan(0.2)

// bass · fretless bass
const bass = note(`<
  ~@2 A B C D E F G H I J K L M N C O P F G H I J K L M N Q R S T Q R S T C O P F G H I J K L M N Q R S T Q R S T Q R S
  T Q R S T U@2
>`.pickRestart({
  A: "e2 ~ e2@4 b2 e3 ~ e3@2 b2 e3@2 b2@2", B: "e2 ~ e2@4 b2 e3 ~ e3 ~ b2 e3@2 b2 ~",
  C: "e2 ~ e2@2 ~ a2 b2 e3 ~ e3@2 e2 f#2@2 g2 ~", D: "a2 ~ a2@3 a2 e2 a1 ~ a1 ~ a1 b1 ~ d2@2",
  E: "e2 ~ e2@2 ~ a2 b2 e3 ~ e3@2 e2 f#2 ~ g2 ~", F: "a2@2 a2@3 ~ e2 a1@3 a1@2 b1@2 a1@2",
  G: "d2 ~ d2@3 a2 ~ d3 ~ d3@5 b2 a2", H: "d2 ~ d2@3 a2 ~ d3 ~ d3@4 ~ b2 a2", I: "d2 ~ d2@3 a2 ~ d3 ~ d3@4 a2 b2 a2",
  J: "d2 ~ d2@3 ~@2 d3 ~ d3@4 ~ b2 a2", K: "d2 ~ d2@2 ~ d2 f#1 f#1@2 g1!2 g#1@2 a1 b1 a1",
  L: "d2 f#1 ~ g1 ~ g#1 ~ a1 ~ a1 b1 a1 c2 a1 d2 ~", M: "g1 ~ g1@4 d2 g2 ~ g2@2 d2 g2@2 f#2@2",
  N: "e2 ~ e2@3 f#1 g1 a1 ~ a1@5 a2@2", O: "a2 ~ a2@2 ~ a2 c#2!2 ~ c#2 d2!2 ~ d2 d#2 e2",
  P: "d2 ~ e2@2 ~ a2 b2 e3 ~ e3@2 e2 f#2@2 g2 ~", Q: "d2@2 d2@2 ~ g2 a2 d3 ~ f#2 ~ f#2@2 g2 g#2 a2",
  R: "d2 ~ d2@3 g2 a2 d3 ~ d3@4 d2 g2 a2", S: "d2 ~ d2@4 d2!2 ~@2 d2@3 d2 ~ d2",
  T: "~@2 d2 f#1@2 f#1!2 g1 ~ g1!2 g#1 ~ g#1 a1 b1", U: "[d2@25 ~@7]/2",
})).s("gm_fretless_bass").gain(0.54)

// bass · fretless bass · soft notes
const bass_soft = note(`<
  ~@7 A B C B D ~@7 A B C B D ~@6 E F ~@2 E F ~@3 A B C B D ~@6 E F ~@2 E F ~@2 E F ~@2 E F ~@2
>`.pickRestart({
  A: "~@5 a1 ~@10", B: "~@6 b2 ~@9", C: "~@6 b2 ~@6 a2 ~@2", D: "~@5 a2 b2 ~@6 a2 ~@2", E: "~@9 d2 ~@4 d2 ~",
  F: "~ d2 ~@14",
})).s("gm_fretless_bass").gain(0.3)

// chords · epiano1
const epiano1 = note(`<
  ~ A B C D E F G H I J K L M N O P E F G H I J K L M Q O R S T U R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"~ a5 c#6!2 b5!2 a5!2 f#5!2 c#5!2 a4!2 b4 a4",
  Y: "c5@2 b4 a4 ~@5 a4 [d5,f#5] a5 [d5,f#5] a4 ~@2", Z: "~ g#4 [b4,d5] [e5,g#5] b5 g#5 ~@3 a#5 g5 ~ a#5 g5 ~ d6",
})).s("gm_flute").gain(0.21)

// other · celesta
const celesta = note(`<
  ~@2 A@2 B ~@3 C D E D E F G H B ~@3 C D E D E F G H I J K L M F N L B ~@3 C D E D E F G H I J K L M F N L I J K L M F
  N L O ~
>`.pickRestart({
  A: "f#6 f6 e6 d#6 d6 d#6 e6 f6 f#6 f6 e6 d#6 d6 d#6 e6 f6", B: "f#6 ~@15", C: "a6 ~@11 a5 ~ b5 ~",
  D: "c6 ~@11 b5 ~@3", E: "a5 ~@13 b5 ~", F: "c6 ~@11 d6 ~@3", G: "b5 ~@11 c#6 ~@3", H: "d6 ~@11 a5 ~@3",
  I: "d5 ~@7 d6 ~@3 d6 ~@2 d6", J: "~ c6 ~@10 d6 ~@3", K: "a5 ~@14 d6",
  L: "~ a5 b5 d6 ~ a5 b5 d6 ~ a5 b5 d6 ~ a5 b5 d6", M: "~@4 d5 ~@3 a5 ~@3 d6 ~@3", N: "d5 ~@7 d6 ~@6 d6", O: "a6 ~@15",
})).s("gm_celesta").gain(0.26)

// chords · string ensemble 1
const string_ensemble_1 = note(`<
  ~@2 A@3 ~@9 B C ~@4 D E F G H I@2 J ~@12 D E F G H I@2 J K L M N O@2 P Q K L M N O@2 P Q R@2
>`.pickRestart({
  A: "[[g3,a3,d4,f#4]@11 ~@5]/3", B: "[g2,f#3,b3]@3 [f#2,a3,c#4,e4]", C: "e2@7 a2@7 ~@2, [g3,b3,d4]@7 ~",
  D: "a4 a5 a6 b6", E: "c7@3 b6", F: "a6@6 a5 b5", G: "~@3 b5, c6", H: "a5@5 f#5 c#5 a4",
  I: "[c5@3 ~ [g3,f#4,b4]@3 [f#3,e4,a4,c#5], ~@3 d5@4 ~]/2", J: "[e3,d4,g4,b4]@7 [a3,g4,b4,d5]@8 ~",
  K: "[d3,c#4,f#4,a4]@15 ~", L: "[d3,c4,f4,a4]", M: "[d3,b3,e4,g#4]@7 [d3,a#3,d#4,g4]@7 ~ [d3,a3,d4,f#4]",
  N: "~ a4 b4 d5 ~ a4 b4 d5 ~ [a3,a4] [b3,b4] [d4,d5] ~@4", O: "[a3 ~ [d3,c4,f4]@2, [d3,c#4,f#4] ~, ~ a4@3]/2",
  P: "[d3,b3,e4,g#4]@8 [d3,a#3,d#4,g4]@6 ~ [d3,a3,d4,f#4]", // E7 D#maj7 D
  Q: "~ a3 b3 d4 ~ [a3,a4] [b3,b4] [d4,d5] ~ [a3,a4] [b3,b4] [d4,d5] ~ [a3,a4] [b3,b4] [d4,d5]", // A B D A B D A B …
  R: "[[d2,a2]@11 ~@5]/2", // D5
})).s("gm_string_ensemble_1").gain(0.28)

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

// drums · kick · soft notes
const kick_soft = s("bd").struct(`<
  ~@4 A B@2 ~@2 B ~@2 C ~ C ~ A B@2 ~@2 B ~@2 C ~ C ~ B C B ~@5 A B@2 ~@2 B ~@2 C ~ C ~ B C B ~@5 B C B ~@7
>`.pickRestart({
  A: "~@2 x ~@6 x ~@6", B: "~@9 x ~@6", C: "~@9 x ~@5 x",
})).gain(0.25)

// drums · rim
const rim = s("rim").struct("<~@4 A@3 B ~@8 A@3 B ~@16 A@3 B ~@26>".pickRestart({
  A: "~ x ~ x", B: "~ x ~@2",
})).gain(0.5)

// drums · snare
const snare = s("sd").struct(`<
  ~@3 A ~@3 B C@5 D C E ~@3 B C@5 D C F C@3 G C@2 H I ~@3 B C@5 D C F C@3 G C@2 H I C@3 G C@2 H I ~@2
>`.pickRestart({
  A: "~@13 x!2 ~", B: "~@12 x!3 ~", C: "~ x ~ x", D: "~@4 x ~@6 x!3 ~@2", E: "~@4 x ~@2 x ~ x ~@3 x ~@2",
  F: "~@2 x ~ x ~@2 x", G: "~@2 x ~@2 x!2 ~@2 x!2 ~@2 x ~@2", H: "~@2 x ~@3 x!2", I: "~ x!2 ~@2 x!2 ~@2 x!2 ~@2 x!2 ~",
})).gain(0.5)

// drums · snare · soft notes
const snare_soft = s("sd").struct("<~@27 A ~@3 B ~@2 A ~@12 A ~@3 B ~@2 A ~@4 B ~@2 A ~@3>".pickRestart({
  A: "~@13 x ~@2", B: "~ x ~@14",
})).gain(0.25)

// drums · low tom
const low_tom = s("lt").struct("<~@15 [~@7 x] ~@11 [~@11 x ~@4] ~@19 [~@11 x ~@4] ~@18>").gain(0.5)

// drums · hihat
const hihat = s("hh").struct(`<
  A ~ B C D E@2 F B G E@3 F E H D E@2 F B G E@3 F E I J K@2 ~ B K L ~ D E@2 F B G E@3 F E I J K@2 ~ B K L ~ J K@2 ~ B K
  L ~@3
>`.pickRestart({
  A: "x!4", B: "~ x!7", C: "x!6 ~@2", D: "~ x!6 ~", E: "x!7 ~", F: "x!4 ~@4", G: "x!8", H: "x ~ x!2 ~@4", I: "x!3 ~@5",
  J: "~@2 x!6", K: "x ~ x!6", L: "x ~ x!5 ~",
})).gain(0.5)

// drums · mid tom
const mid_tom = s("mt").struct("<~@7 A ~@7 A ~@3 A ~@11 B ~@7 A ~@11 B ~@7 B ~@6>".pickRestart({
  A: "~@5 x ~@2", B: "~@7 x",
})).gain(0.5)

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

// drums · high tom
const high_tom = s("ht").struct("<~@3 A ~@3 B ~@5 C ~@5 B ~@5 C ~ D ~@11 B ~@5 C ~ D ~@18>".pickRestart({
// … 48 more lines

More by Jackson 5