Strudelify

californication

Andy Leonard

KeyA majorTempo96 bpm
0:00/0:00
// californication — Andy Leonard
// 96 bpm, 4/4, key A major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: pitch bends are ignored
// note: Transcription provider: pdmx. https://musescore.com/score/5038385; license: https://creativecommons.org/publicdomain/zero/1.0/
// note: Full arrangement: all 128 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(96/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.

// other · synth strings 1 · "Electric Violin"
const synth_strings_1 = note(`<
  ~@22 A B C@4 D E F G H G H G I J K@2 ~@13 L M ~@5 N@4 D E F O D P Q R S T U@2 V W X@2 Y@2 Z@2 AA AB AC@2 AD@2 AE AF@5
  AG ~@9 AH@4 AI AJ AI AJ AI AK AI AJ AL@2 AM@2 AL@2 AN@3 AO
>`.pickRestart({
  A: "c4 g4 e5 g4 g3 d4 b4 d4", B: "f4@2 c5@2 a5@2 c5@2 d4@4 [a4,d5,f5]!4",
  C: "[a4@16 f4@16 a4@16 f4@6 f4 c5 e5@2 d5@2 c5@2 b4@2, a5@27 ~@5]/4", D: "[a4,a5]@6 b4 c5", E: "[f4,f5]@5 c6 b5 g5",
  F: "[a4,a5]@5 a5 b5 c6", G: "[f4,f5]", H: "[a4,a5]@3 [a4,a5]", I: "c5!2 g4!2", J: "d5@4 d5@2 d5 e5 a4@4 a4@4",
  K: "[c5@4 c5@3 e4 g4@2 b4@2 c5@2 d5@6 ~@12]/2", L: "~@14 [e5,f5] [c5,d5]", M: "b4 ~@15", N: "[a4 f4 a4 f4, a5]/4",
  O: "[f4,f5]@8 f4 d5@3 c5@2 b4@2", P: "[f4,f5]@9 f4 c5@2 b4@2 g4@2", Q: "[a4,a5]@6 b5 c6",
  R: "[f4,f5]@8 [f4,f5] f4!4 [f4,f5] [f4,f5]@2, ~@9 f5@2 f5@2 ~@3", S: "c4@3 c4 c4@4 g3@4 g3@4",
  T: "d4@4 d4@2 d4 e4 a3@4 a3@2 a3@2",
  U: "[c4@4 c4@3 e5 g5@2 g4@2 c4@2 d5@4 d5@2 d4@3 d4 ~ a4@2 a4@2 d5 d4@2, ~@24 d5@5 ~@3]/2", V: "c4!2 g3!2",
  W: "d4@4 d4@2 d4 e4 a3@4 a3@2 ~@2", X: "[c4@2 d4@2 c4@2 a3@2 g3@2 b3@2 c4@2 d4@6 a5@8 g4 [a4,b4] [c5,d5] [e5,f5]]/2",
  Y: "[a5@3 c#6@3 f#5@10, g5 ~@31]/2", Z: "[a5@3 c#6@2 f#5@5 f#5 f#5@2 f#5!3]/2", AA: "f#5 e5 c#5@2 c#5@8 b4@2 c#5@2",
  AB: "e5@4 f#5@6 e5 c#5@5", AC: "[a5@3 c#6@2 e6@2 f#6@9]/2", AD: "[a5@3 c#6@2 e6 ~ f#6@2 f#6@5 ~@2]/2",
  AE: "a6 g#6 f#6 e6",
  AF: "[f#6@2 e6 c#6@2 e6@2 c#6@2 c#6 c#6@3 c#6 c#6@4 ~ e6@2 c#6 ~ f#6@2 e6 c#6 e6@2 c#6@2 b5@2 a5@2 e6@2 d6@2 c#6]/5",
  AG: "a5 ~@3", AH: "[a6 a6 a6 a6, a5]/4", AI: "[a5,a6]@3 [a5,a6]", AJ: "[f5,f6]",
  AK: "[f5,f6]@8 f5 c6@2 c6 b5 [b5,c6] g5@2", AL: "[c5!4 b4@2 c5 b4@2 a4@4 ~@3]/2", AM: "[a5 g5!3 g5@2 g5 a5@7 ~@2]/2",
  AN: "[a5@2 g5@2 g5@2 g5@2 g5@4 g5@2 a5@8 [a5,a#5,b5] [c6,c#6,d6,d#6,e6,f6] [f#6,g6,g#6] ~@23, ~ a6]/3", AO: "c4 ~",
})).s("gm_synth_strings_1").gain(0.72)

// other · synth strings 1 · "Electric Violin" · soft notes
const synth_strings_1_soft = note(`<
  ~@3 A B C B D E F E G H I E J E K E J E K ~@18 L@2 M N E J E G O P Q R Q S T U@2 V W X ~@68
>`.pickRestart({
  A: "~@3 [d4,f4,a4]", B: "[a4,c5,e5] ~@5 [a4,c5,e5] ~@5 [a4,c5,e5]@2 ~@2",
  C: "[f4,a4,c5] ~@5 [f4,a4,c5] ~@5 [d4,f4,a4]@2 ~@2", D: "[f4,a4,c5] ~@5 [f4,a4,c5] ~@5 [f4,a4,c5]@2 ~@2",
  E: "[a4,c5,e5] ~@5 [a4,c5,e5] ~@5 [a4,c5,e5]@4", F: "[f4,a4,c5] ~@5 [f4,a4,c5] ~@5 [a4,c5,f5]@4",
  G: "[f4,a4,c5] ~@5 [f4,a4,c5] ~@5 [f4,a4,c5]@4", H: "[a4,c5,e5]!2 [g4,b4,d5]!2", I: "[f4,a4,c5]!2 [d4,f4,a4]@2",
  J: "[f4,a4,c5] ~@5 a4 [d4,f4,a4]@4 ~ [d4,f4,a4]@4", K: "[f4,a4,c5] ~@5 [f4,a4,c5] ~@5 [d4,f4,a4]@4",
  L: "[e5@5 d5@2 c5@9]/2", M: "e5@10 d5@4 e5 d5", N: "c5", O: "a4 g4 a4 e4 g4 d4 g4 d4", P: "f4 c4 f4 c4 d4 ~ d6@2",
  Q: "a5", R: "f5@3 d5", S: "f5@13 ~@3", T: "a4", U: "[f4 a4@3]/2", V: "f4", W: "a4 g4", X: "f4@4 d4 ~@3",
})).s("gm_synth_strings_1").gain(0.4)

// chords · piano
const piano = note(`<
  A B A B A C A B A C A B D E A C A B A C A B F G H I J K L M N M O P N Q R S T@2 A C A B A C A U V G A C A B A C A W F
  X Y I H Z H I H AA H I H AB AC AD AE@2 AF AG AH@2 AI AJ AI AK AL AM AI AN AI AK AL AM AL AM AL AM A AO A AP A C A B AQ
  AR Y I H AS H I H AT H AU H AB R AV AW@2 AF AX AY@2 AZ BA
>`.pickRestart({
  A: "~@2 e4@2 [a3,b4]@2 e4@4 e4@2 d4 [d4,e4] c4@2, a3@4 ~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,a3,d4,a4,d5,f5] [a3,d4,a4,d5,f5]!2 a3!2 d4!2 [a3,d4,a4,d5,f5]!2, ~@13 [d4,a4,d5,f5] [a3,a4,d5,f5] d3]/2", // C G Dm
  AX: "[d3,a3,d4,a4,d5,f5]@2 [d3,a3,d4,a4,d5,f5]@2 [a2,a3,e4,a4,c5,e5]@2 [a2,a3,e4,a4,c5,e5] [a3,e4,a4,c5,e5]", // Dm Am
  AY: "[[c3,c4]@2 c4@2 c3@2 a2@2 [g2,g3,b3,d4,g4,d5,g5]@2 [b2,g3,b3,d4,g4,d5,g5]@2 [c3,g3,b3,d4,g4,d5,g5]@2 [d3,a3,d4,a4,d5,f5]@6 c2 [d2,e2] [f2,g2] [a2,b2] [c3,d3] [e3,f3] [g3,a3] [b3,c4] [d4,e4] [f4,g4] [a4,b4] [c5,d5], [e4,g4,c5,e5] [c4,e4,g4,c5,e5] ~@6]/2", // C G Dm Dsus2 Fsus2 Asus2 Csus2 Fmaj7 …
  AZ: "[e5,f5] [g5,a5] [b5,c6] [d6,e6] f6 g6 a6 b6 c7 d7 e7 f7 g7 a7 b7 c8", BA: "[e3,e4,e5,e6] ~",
})).s("gm_piano").gain(0.53)

// drums · kick
const kick = s("bd").struct(`<
  ~@4 A@8 B A@9 B C A@3 D A@7 E F G H ~ A@8 B A@9 B C I@4 A@7 J F G F K F G H ~ A@15 L M ~@3 A@4 B C I@4 A@2 I A@4 E F G
  F K F G N ~ O P
>`.pickRestart({
  A: "x!2 ~@3 x ~@2", B: "x!2 ~@2 x!2 ~@2", C: "x!2 ~@6", D: "x!2 ~@3 x ~ x", E: "x!2 ~@2 x ~@3", F: "x!2 ~@2 x!2 ~ x",
  G: "~ x ~ x!3 ~@2", H: "x!2 ~@3 x!3", I: "x ~@2 x ~@6 x ~@5", J: "x!2 ~@2 x ~@2 x", K: "~@2 x ~@3 x ~@3 x ~@2 x ~@2",
  L: "x!2 ~@2 x!4", M: "x", N: "x!2 ~@4 x!2", O: "~@5 x ~ x", P: "x ~@8 x ~@6",
})).gain(0.42).pan(0)

// drums · snare
const snare = s("sd").struct(`<
  ~@3 A B@7 C D C E B@7 F G H I@2 J H I@2 J H I@2 K L M N A B@3 C E B@3 F C E B@7 F G H I@2 J H I@2 O H I@2 N L M P Q L
  M N R H I@10 S H I@2 T ~@3 A B@3 U E G E I@6 J H I@2 N L M P Q L M N ~ R ~
>`.pickRestart({
  A: "~@15 x", B: "x ~@3 x ~@7 x ~@2 x", C: "x!2 ~ x", D: "~@4 x ~@2 x!2 ~@3 x ~@2 x", E: "~@4 x ~@7 x ~@2 x",
  F: "x ~@3 x ~@2 x!2 ~@3 x ~@2 x", G: "x ~@3 x ~@5 x!6", H: "~@4 x ~@2 x ~ x ~@2 x ~@2 x",
  I: "x ~@3 x ~@2 x ~ x ~@2 x ~@2 x", J: "x ~@3 x ~@2 x ~ x ~@2 x ~@3", K: "x ~@3 x ~@2 x ~@2 x!6",
  L: "~@4 x ~@2 x!2 ~@3 x ~@3", M: "~@4 x ~@2 x!3 ~@2 x ~@2 x", N: "x!3 ~", O: "x ~@3 x ~@4 x ~@2 x ~@3",
  P: "x ~@3 x ~@2 x!2 ~@3 x ~@3", Q: "~@4 x ~@2 x ~ x ~@2 x ~@3", R: "~ x", S: "x ~@3 x ~@2 x ~ x ~@6",
  T: "x ~@3 x ~@2 x!2 ~ x ~ x ~ x ~", U: "x ~@3 x ~@7 x!4",
})).gain(0.42).pan(0)

// drums · snare · soft notes
const snare_soft = s("sd").struct("<~@4 A@8 ~ A@9 ~ B ~@16 A@8 ~ A@9 ~ B ~@40 A@4 C B A ~@21>".pickRestart({
  A: "~@7 x ~ x ~@6", B: "~@7 x ~@8", C: "~@7 x!2 ~@7",
})).gain(0.21).pan(0)

// drums · low tom
const low_tom = s("lt").struct("<~@71 A ~@7 B ~@11 C ~@13 D ~@18 E ~@2 F>".pickRestart({
  A: "~@15 x", B: "~@7 x", C: "~@14 x!2", D: "~@10 x!6", E: "~@3 x", F: "~@8 x!2 ~@6",
})).gain(0.47).pan(0)

// drums · hihat
const hihat = s("hh").struct("<~@4 A@7 B A B A@9 C ~@16 A@3 B A@5 B A@9 C ~@40 A@3 B A C ~@22>".pickRestart({
  A: "x!8", B: "x!6 ~@2", C: "x!4 ~ x ~@2",
})).gain(0.42).pan(0)

// drums · mid tom
const mid_tom = s("mt").struct("<~@71 A ~@7 B ~@11 C ~@3 D ~@21 B ~@6 E ~@3>".pickRestart({
  A: "~@9 x ~ x!2 ~ x ~", B: "~@3 x", C: "~@12 x!2 ~@2", D: "~@4 x!4", E: "~@5 x ~@2",
})).gain(0.47).pan(0)

// drums · open hat
const open_hat = s("oh").struct("<~@11 A ~ A ~@9 B ~@11 B ~@7 A ~@5 A ~@9 B ~@45 B ~@22>".pickRestart({
  A: "~@3 x", B: "~ x",
})).gain(0.42).pan(0)

// drums · high tom
const high_tom = s("ht").struct("<~@124 [~@5 x ~@2] ~@3>").gain(0.53).pan(0)

// drums · crash
const crash = s("cr").struct(`<
  ~@24 A ~@3 A ~@2 B A ~@3 C D E ~@21 A ~@3 A ~@2 B A ~@3 C D F ~ C D G ~ A ~@9 H@2 A ~ A@3 ~@9 A ~@3 A ~@3 A ~@3 C D F
  ~ C D I J K A
>`.pickRestart({
  A: "x", B: "~@15 x", C: "x ~@3 x ~@2 x", D: "~ x ~@6", E: "~@5 x!3", F: "~ x", G: "~@6 x!2", H: "x!2", I: "~@7 x",
  J: "~@8 x!8", K: "x!8 ~@8",
})).gain(0.42).pan(0)

// drums · crash · soft notes
const crash_soft = s("cr").struct("<~@78 [~@5 x ~@2] ~@46 [x!9 ~@7] ~@2>").gain(0.21).pan(0)

// drums · ride bell
const ride_bell = s("rd").struct(`<
  ~@24 A B@2 C A B@3 A B@2 D E F D ~@21 A B@2 C A B@3 A B@2 D E F G B E F D ~ A B@9 H I A B A J ~@10 A B@3 A B@3 A B@2 D
  E F G B E F D ~@3
>`.pickRestart({
  A: "~ x!7", B: "x!8", C: "x!7 ~", D: "x!4 ~@4", E: "~ x!3 ~ x!2 ~", F: "x ~ x!6", G: "x!4 ~ x!3", H: "~ x!3 ~ x!3",
  I: "~ x!3 ~ x ~@2", J: "~ x!3 ~@4",
})).gain(0.42).pan(0)

stack(
  synth_strings_1, synth_strings_1_soft, piano, kick, snare, snare_soft, low_tom, hihat, mid_tom, open_hat, high_tom,
  crash, crash_soft, ride_bell
)