Strudelify

Come and Get It

The Beatles

KeyC majorTempo114 bpm
0:00/0:00
// Come and Get It — The Beatles
// 114 bpm, 4/4, key C major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: sustain pedal (CC 64) lengthens the held notes
// note: duplicate parts dropped: ch 5 "Piano2" epiano2 (copy of ch 2 "Violin" violin)
// note: Full arrangement: all 53 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(114/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 B C D A B E F G H E I J K L M N O P Q R G H Q S T U L V N O P E F W X Y F Z AA L AB AC AD AE AF AG A B AH AI AJ ~
>`.pickRestart({
  A: "c2 ~ c2@2 c2 ~ c2@2 c2 ~ c2 ~ c2@2 c2 c1", B: "c2 ~ c2 ~ c2 ~ c2 ~ c2 ~ c2@2 c2@2 c2 ~",
  C: "c2 ~ c2 ~ c2 ~ c2@2 c2 ~ c2 ~ c2@2 c2 c1", D: "c2 ~ c2 ~ c2@2 c2 c1 c2 ~ c2 ~ c2@2 c2 ~",
  E: "d2 d1 d2 ~ d2@2 d2@2 d2 ~ d2@2 d2@2 d2 ~", F: "g2 ~ g2@2 g2 ~ g2@2 g2 ~ g2@2 g2@2 g2 d2",
  G: "c2 c1 c2 ~ c2 ~ c2@2 c2 ~ c2@2 c2 ~ c2 ~", H: "c2 c1 c2 ~ c2 ~ c2 ~ c2 ~ c2@2 c2 ~ c2 ~",
  I: "g2 g1 g2 ~ g2@2 g2@2 g2 ~ g2@2 g2@2 g2 ~", J: "g#2 ~ g#2@4 d#2@2 g#2 ~ g#2@4 g#2 ~",
  K: "c2 ~ c2@4 g1@2 c2@2 e2 ~ c2 ~ c2 ~", L: "f2 ~ f2@4 f1@2 f2 ~ f2@4 c2@2, ~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~ f2 ~ f2 ~ f2 ~ f2@2 f2 ~ f2 ~", AJ: "c2 ~@15",
})).s("gm_fretless_bass").gain(0.35)

// chords · violin
const violin = note(`<
  ~@3 A B C D E F G H I J K L M@2 N@2 O I P@2 D I Q F R S@2 T U V I W@2 X Y Z AA AB AC@2 AD@2 AE AF AG AH AI AJ AK@2
>`.pickRestart({
  A: "~@6 c3@2 [g3,c4,e4]@2 c3@2 [g3,c4,e4] ~@3", B: "[g3,c4,e4] ~ [g3,c4,e4]@4 c3@2 [g3,c4,e4] ~ [g3,c4,e4]@4 c3@2",
  C: "[g3,c4,e4] ~ [g3,c4,e4]@3 ~ [g3,c4,e4]@4 c3 ~ [g3,c4,e4] ~@3", D: "[a3,d4,f4]",
  E: "~@2 [g3,b3,d4] ~@3 [g3,b3,d4] ~@3 [g3,b3,d4]@5 g2", F: "[g3,c4,e4]@4 ~@2 g4 ~, ~@4 c4@3 ~",
  G: "[g3,c4,e4] ~@10 c3 [g3,c4,e4] c3 g3 ~", H: "~@2 [a3,d4,f4] ~@3 [a3,d4,f4] ~ [a3,d4,f4] ~ d4@5 d3",
  I: "[g3,b3,d4]", J: "[c4,d#4,f#4,g#4] ~ c4@4 g#2@2 [c4,d#4,f#4,g#4] ~ [c4,d#4]@4 g#2@2",
  K: "~@2 [g3,c4,e4]@6 [g3,c4,e4] ~ g3@3 ~ [g3,c4,e4]@2", L: "d#4@4 ~@6 [c4,d#4,f4,g#4]@3 ~ [c4,d#4,f4,g#4]@2",
  M: "[[g3,c4,e4]@4 c4 ~@2 g4 g3@2 [b3,d4] ~@21, ~@8 [g4,b4,d5]@13 ~@11, ~@5 g3@6 ~@5]/2", // C Bm G
  N: "[c4@4 g4@2 [g3,c4,e4]@3 ~ [g3,c4,e4]@3 ~ [g3,c4,e4]@8 c3@2 [g3,c4,e4]@2 c3@2 [g3,c4,e4] ~@3]/2", // C
  O: "~@2 [a3,d4,f4]@6 [a3,d4,f4] ~ [a3,d4,f4]@3 ~ [a3,d4,f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~ g3@4 c3 ~ [g3,c4,e4] ~@3", AI: "[c4,d#4,f4,g#4]@4 d#4 ~ g#4 ~ [g3,b3,d4] ~ [g3,b3,d4]@5 ~",
  AJ: "~@2 [c4,d#4,f4,g#4]@5 ~ [c4,d#4,f4,g#4] ~@7", AK: "[[c3,c4,e4,g4]@29 ~@3, g3 ~@31]/2",
})).s("gm_violin").gain(0.24).pan(0)

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

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

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

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

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

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

// drums · high tom
const high_tom = s("ht").struct("<~@3 x ~@20 [~ x ~@2] ~@25 x ~@2>").gain(0.35)

// drums · crash
const crash = s("cr").struct("<A ~@3 A ~@7 A ~@4 A ~@7 A ~@4 A ~ A ~@5 A ~@4 A ~@7 A ~>".pickRestart({
  A: "x",
})).gain(0.35)

// drums · ride bell
const ride_bell = s("rd").struct("<~@27 [~ x ~@2] ~@25>").gain(0.2)

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

// drums · cabasa
const cabasa = s("cabasa:4").struct("<A@3 ~ A@7 ~@5 B A@7 ~@6 A ~ A@6 ~@5 A@7 ~@3>".pickRestart({
  A: "~ x ~ x ~ x ~ x", B: "~@5 x ~ x",
})).gain(1.51)

// drums · shaker
const shaker = s("sh").struct("<A@3 ~ A@7 ~@5 B A@7 ~@6 A ~ A@6 ~@5 A@7 ~@3>".pickRestart({
  A: "x!4", B: "~@3 x",
})).gain(0.35)

// drums · shaker · soft notes
const shaker_soft = s("sh").struct("<A@3 ~ A@7 ~@6 A@7 ~@6 A ~ A@5 ~@6 A@7 ~@3>".pickRestart({
  A: "~ x ~ x ~ x ~ x",
})).gain(0.2)

stack(
  bass, violin, kick, snare, low_tom, hihat, mid_tom, open_hat, high_tom, crash, ride_bell, tambourine, cabasa, shaker,
  shaker_soft
)

More by The Beatles