Strudelify

Ain't She Sweet

The Beatles

KeyC majorTempo150 bpm
0:00/0:00
// Ain't She Sweet — The Beatles
// 150 bpm, 4/4, key C major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: duplicate parts dropped: ch 6 "VOCAL" piano (copy of ch 5 "VOCAL" epiano2)
// note: Full arrangement: all 50 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(150/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 · electric bass finger · "BASS"
const bass = note(`<
  A B C D E F G H I D J B K L G M N O P Q R S T U V W X D Y Z AA AB AC AD AE AF AC AG AH AI A D AJ B AK AL AM AB AN AO
>`.pickRestart({
  A: "c2 ~ c2@2 c2 ~ c2@2 c2 ~ c2 ~ c2@2 g1 c2", B: "g2 ~ g2@2 g2 ~ g2@2 g2 ~ g2@2 g2@2 g2 d2",
  C: "c2 ~ c2 ~ c2@2 c1 ~ c2 ~ c2 ~ c2@2 c1 ~", D: "g2 ~ g2 ~ g2 ~ g2@2 g2 ~ g2@2 g2 ~ g2 d2",
  E: "c2 ~ c2 ~ c2@2 c2 ~ b1 ~ b1@2 b1 ~ b1@2", F: "a1 ~ a1@2 a1 ~ a1@2 a1 ~ a1@2 a1 ~ a1@2",
  G: "d2 ~ d2@2 d2 ~ d2@2 g2 ~ g2 ~ g2@2 d2 g2", H: "~ c1 c2 ~ c2@2 c2@2 c2 ~ c2@2 c2@2 c2 ~, c2 ~@7",
  I: "c2 ~ c2 ~ c2@2 g1 c2!2 ~ c2 ~ c2@2 c2 ~", J: "c2 ~ c2@2 c2 ~ c2@2 c2 ~ c2@2 c2 ~ c2@2",
  K: "c2 ~ c2@2 c2 ~ c2@2 b1 ~ b1 ~ b1@2 b1 ~", L: "a1 ~ a1 ~ a1@2 e1 a1!2 ~ a1@2 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g2@4 g2 ~ g2 ~ g2 ~ g2@2 d2 ~", AJ: "c2 ~ c2 ~ c2@2 g1 c2!2 ~ c2@2 c2 ~ c2@2",
  AK: "c2 ~ c2 ~ c2@2 g1 c2 b1 ~ b1 ~ b1@2 b1 ~", AL: "a1 ~ a1@2 a1 ~ a1@2 a1 ~ a1 ~ a1@2 a0 ~",
  AM: "d2 ~ d2 ~ d2@2 d1 ~ g2 ~ g2@2 g2 ~ g2@2", AN: "c2 ~ c2@2 c2 ~ c2@2 a1 ~ a1 ~ g1 ~ g1 ~",
  AO: "c2 ~ g1 ~ a1@2 c2@6 ~@4",
})).s("gm_electric_bass_finger").gain(0.56)

// chords · electric guitar muted · "GUITAR"
const electric_guitar_muted = note(`<
  A B C D E F G H I J I J K L M N O P Q R S O Q B T D I U V W X Y P Z AA@2 AB@2 Y AC AD AE A AC AF AG AH H AI AJ
>`.pickRestart({
  A: "[g3,c4,e4] ~ [g3,c4,e4]@5 ~ [g3,c4,d#4] ~ [g3,c4,d#4]@5 ~", // C Cm
  B: "~@2 b3@2 d4@2 [g3,b3,d4]@3 ~ [g3,b3,d4]@3 ~ [g3,b3,d4]@2, g3 ~@3", C: "[g3,c4,e4] [g3,c4,d#4]",
  D: "~@2 [g3,b3,d4] ~ [g3,b3,d4] ~ [g3,b3,d4] ~ [g3,b3,d4] ~ [g3,b3,d4]@5 g2", // G
  E: "[g3,c4,e4]@8 ~@2 [a3,b3,d#4,f#4] ~ [a3,b3,d#4,f#4] ~ [a3,b3,d#4,f#4] ~", // C B7
  F: "[a3,c4,e4]@4 a3 ~ c4 e4 [a3,c#4,e4]@4 a3 ~ c#4 e4", // Am A
  G: "~@2 [a3,d4,f#4] ~ [a3,d4,f#4] ~ [a3,d4,f#4] ~ [g3,b3,d4] ~ [g3,b3,d4]@5 ~", // D G
  H: "[g3,c4,e4]@4 ~@2 g4 c5, ~@4 c4@3 ~, ~@5 e4@2 ~", // C
  I: "[g3,c4,e4] ~ [g3,c4,e4]@5 ~@3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// F
  AA: "[~@2 e4@2 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, c4 ~@7]/2", // C
  AB: "[~@2 a4@2 c5@2 [a3,c4,f4]@3 ~ [a3,c4,f4]@3 ~ [a3,c4,f4]@8 f3@2 [a3,c4,f4]@2 f3@2 [a3,c4,f4] ~@3, f4 ~@7]/2", // F
  AC: "~@2 [g3,b3,d4] ~ [g3,b3,d4] ~ [g3,b3,d4] ~ [g3,b3,d4] ~ [g3,b3,d4]@4 g2@2", // G
  AD: "[g3,c4,e4]@4 c4 ~ e4 g4 [g3,c4,d#4]@8", AE: "~@2 [g3,b3,d4]@6 [g3,b3,d4] ~ [g3,b3,d4]@3 ~ [g3,b3,d4]@2",
  AF: "[g3,c4,e4] [a3,b3,d#4,f#4]", AG: "~@2 [a3,c4,e4] ~ [a3,c4,e4] ~ [a3,c4,e4] ~ [a3,c#4,e4]@8",
  AH: "[f#3,a3,d4]@4 d4 ~ f#4 a4 [g3,b3,d4]@8", // D G
  AI: "[g3,c4,e4] ~ [g3,c4,e4]@2 [a3,c4,f4] ~ [a3,c4,f4]@2 [g3,c4,e4] ~ [g3,c4,e4]@2 [a3,c4,f4] ~ [a3,c4,f4] ~", // C F C F
  AJ: "[g3,c4,e4] ~@5 [g3,c4,e4]@5 ~@5", // C
})).s("gm_electric_guitar_muted").gain(0.22).pan(1)

// chords · acoustic guitar steel · "GUITAR"
const acoustic_guitar_steel = note(`<
  A B C D E F G H I@2 C J K L M H N O P Q R O Q S T@2 C B U V W X R@2 Q@2 R@2 Q Y C B Z B U V AA AB AC AD
>`.pickRestart({
  A: "[c4,e4,g4]@6 ~@2 [c4,d#4,g4]@5 ~@3", B: "[d4,g4,b4]@3 ~", C: "[c4,e4,g4]@5 ~@3 [c4,d#4,g4]@4 ~@4",
  D: "[d4,g4,b4]@13 ~@3", E: "[c4,e4,g4]@4 ~@4 [b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 [c4,d#4,g4] ~", AA: "[d4,f#4,a4] ~ [d4,g4,b4] ~", AB: "[c4,e4,g4]@7 ~",
  AC: "[c4,e4,g4]@5 ~@4 c4 ~@6", AD: "~@4 [d4,g4,b4] ~ [c4,e4,g4]@8 ~@2",
})).s("gm_acoustic_guitar_steel").gain(0.63).pan(0.3)

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

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

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

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

// drums · mid tom
const mid_tom = s("mt").struct("<~@15 [~@13 x ~@2] ~@15 [~@13 x ~@2] ~@15 [~@13 x ~@2] ~@2>").gain(0.48)

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

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

// drums · tambourine
const tambourine = s("tb").struct("<[x!8]!15 ~@8 [x!8]!8 ~@9 [x!8]!7 ~@3>").gain(0.48)

// drums · cabasa
const cabasa = s("cabasa:4").struct("<[~ x ~ x ~ x ~ x]!15 ~@8 [~ x ~ x ~ x ~ x]!8 ~@9 [~ x ~ x ~ x ~ x]!7 ~@3>")
  .gain(1.83)

// drums · shaker
const shaker = s("sh").struct("<[x!4]!15 ~@8 [x!4]!8 ~@9 [x!4]!7 ~@3>").gain(0.48)

// drums · shaker · soft notes
const shaker_soft = s("sh").struct(`<
  [~ x ~ x ~ x ~ x]!7
  ~
  [~ x ~ x ~ x ~ x]!7
  ~@9
  [~ x ~ x ~ x ~ x]!7
  ~@9
  [~ x ~ x ~ x ~ x]!7
  ~@3
>`).gain(0.3)

stack(
  bass, electric_guitar_muted, acoustic_guitar_steel, kick, snare, low_tom, hihat, mid_tom, open_hat, crash, tambourine,
  cabasa, shaker, shaker_soft
)

More by The Beatles