Strudelify

The Man Who Shot Liberty Valance

Gene Pitney

KeyA majorTempo120 bpm
0:00/0:00
// The Man Who Shot Liberty Valance — Gene Pitney
// 120 bpm, 4/4, key A major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: metre changes (4/4 at bar 1, 2/4 at bar 25, 4/4 at bar 26, 2/4 at bar 33, ...) are rendered on a constant 4/4 grid of one bar per cycle
// note: pitch bends are ignored
// note: sustain pedal (CC 64) lengthens the held notes
// note: Full arrangement: all 68 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(120/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 · "FINGERDBAS"
const bass = note(`<
  ~@4 A B C D E F G H I J K L C D E F G H I M K N@2 O P Q@2 R S C D E F G H I T K U V W X Y Z AA AB AC AD AE@2 AF AG
  AH@2 AI AG AH@2 AJ AK AL AM@3
>`.pickRestart({
  A: "e2 ~ b1 ~ e2 ~ b1 ~", B: "e2@2 ~@2 b1@3 ~ e2@2 b1@2 c#2@2 d#2@2", C: "e2@2 ~@2 b1@2 ~@2 a1@2 ~@2 e1@3 ~",
  D: "g#1@3 ~ c#2@2 ~@2 c#2@2 ~@2 c#2@2 ~@2", E: "a1@3 ~ a1@2 ~@2 b1@2 ~@2 b1@2 d#2@2",
  F: "e2@2 ~@2 b1@3 ~ a1@3 ~ e1@2 ~@2", G: "g#1@2 ~@2 c#2@3 ~ c#2@3 ~ c#2@2 ~@2", H: "g#1@2 ~ g#1@5 d#2@3 d#2@4 ~",
  I: "g#1@2 ~ g#1@4 ~ a1@2 ~@2 b1@3 ~", J: "e2@3 ~ g#1@3 ~ c#2@2 ~ g#1 c#2@2 b1@2", K: "a1@15 ~",
  L: "e2@3 ~ b1@3 ~ e2@2 b1@2 c#2@2 d#2 ~", M: "e2@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]/3",
})).s("gm_electric_bass_finger").gain(0.4)

// chords · epiano2 · "E.PIANO 2"
const epiano2 = note(`<
  ~@11 A B ~ C D E F G E F A B ~ C H I J K L@2 ~ D E F G E F A B ~ C M N O P N O Q R ~ S T U V W X@2 Y W X@2 ~@6
>`.pickRestart({
  A: "[g#2,d#3,g#3,b3,d#4]@7 ~ [d#2,a#2,d#3,f#3,a#3,d#4]@7 ~", // G#m D#m
  B: "[g#2,d#3,g#3,b3]@7 ~ [e3,a3,c#4]@3 ~ [f#3,b3,d#4]@3 ~", C: "[a2,e3,a3,c#4,e4,a4]@15 ~",
  D: "~@5 [b3,d#4,b4,d#5] [c#4,e4,c#5,e5] [f#4,d#5,f#5], ~@14 d#4 ~", E: "[b3,e4,g#4] [c#4,e4,a4]",
  F: "[b3,d#4,g#4] [c#4,e4,g#4]@3", // G#m C#m
  G: "[c#4,e4,a4]@8 [d#4,f#4,b4] ~ [b3,d#4,b4,d#5]@2 [c#4,e4,c#5,e5]@2 [f#4,d#5,f#5]@2, ~@14 d#4 ~", // A B C#m D#m
  H: "[c#2,c#3,e3,g#3,c#4]@7 ~ [e4,c#5]!2 [e4,g#4,c#5] ~ [b4,d#5]@2 [f#4,d#5] ~, ~@8 g#4@2 ~@2 e4 ~ b4@2", // C#m B D#m
  I: "[f#4,b4,d#5]@2 [g#4,e5] ~ [e4,g#4,c#5]@3 ~ [e4,g#4,b4]!3 ~ [g#4,c#5] ~ [e4,g#4,d#5] ~, ~ c#5 ~@4 e4 ~", // B C#m E C#5 Emaj7
  J: "[e4,a4,c#5]@2 [f#4,b4] ~ [e2,g#3,b3,e4]@2 [g#2,d#3,g#3,b3,d#4,g#4]@2, ~@4 d#5 ~@11", // A B5 E G#m
  K: "[c#2,c#3,g#3,c#4,e4]@4 [g#2,d#3,g#3,b3,d#4]@3 [a2,a3,c#4,e4]@4 ~ [g#2,d#3,g#3,b3,d#4,g#4]@3 ~", // C#m G#m A G#m
  L: "[[c#2,c#3,g#3,c#4,e4]@4 [g#2,d#3,g#3,b3,d#4]@2 ~ [a2,a3,c#4,e4]@16 ~@9]/2", // C#m G#m A
  M: "~@5 [c4,e4,c5,e5] [d4,f4,d5,f5] [g4,e5,g5], ~@14 e4 ~", N: "[c4,f4,a4] [d4,f4,a#4]", O: "[c4,e4,a4] [d4,f4,a4]@3",
  P: "[d4,f4,a#4]@8 [e4,g4,c5] ~ [c4,e4,c5,e5]@2 [d4,f4,d5,f5]@2 [g4,e5,g5]@2, ~@14 e4 ~", // A# C Dm C
  Q: "[a2,e3,a3,c4,e4]@7 ~ [e2,b2,e3,g3,b3,e4]@7 ~", R: "[a2,e3,a3,c4]@7 ~ [f3,a#3,d4]@3 ~ [g3,c4,e4]@3 ~",
  S: "[a#2,f3,a#3,d4,f4,a#4]@15 ~", // A#
  T: "[d2,d3,f3,a3,d4]@7 ~ [f4,d5]!2 [f4,a4,d5] ~ [c5,e5]@2 [g4,e5] ~, ~@8 a4@2 ~@2 f4 ~ c5@2", // Dm C
  U: "[g4,c5,e5]@2 [a4,f5] ~ [f4,a4,d5]@3 ~ [f4,a4,c5]!3 ~ [a4,d5] ~ [f4,a4,e5] ~, ~ d5 ~@4 f4 ~", // C Dm F D5 Fmaj7
  V: "[f4,a#4,d5]@2 [g4,c5] ~ [f2,a3,c4,f4]@2 [a2,e3,a3,c4,e4,a4]@2, ~@4 e5 ~@11", // A# C5 F Am
  W: "[d2,d3,a3,d4,f4]@4 [a2,e3,a3,c4,e4]@3 [a#2,a#3,d4,f4]@4 ~ [a2,e3,a3,c4,e4,a4]@3 ~", // Dm Am A# Am
  X: "[[d2,d3,a3,d4,f4]@4 [a2,e3,a3,c4,e4]@2 ~ [a#2,a#3,d4,f4]@16 ~@9]/2", Y: "~@2 [f2,a3,c4,f4] [a2,e3,a3,c4,e4,a4]",
})).s("gm_epiano2").gain(0.52)

// chords · acoustic guitar nylon · "NYLON GTR"
const acoustic_guitar_nylon = note(`<
  ~@4 A B C D E F G H I J K L C D E F G H I M K N O P Q R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[a3,e4,a4,c5,e5]@3 [a#3,a#4,d5,f5]@4 ~ [a3,e4,a4,c5,e5,a5]@3 ~", // Dm Am A# Am
  AO: "[[d3,d4,a4,d5,f5]@4 [a3,e4,a4,c5,e5]@2 ~ [a#3,a#4,d5,f5]@16 ~@9]/2", AP: "~@2 [f3,a4,c5,f5] [a3,e4,a4,c5,e5,a5]",
  AQ: "[~@4 [f5,a5]@9 ~@3, ~@7 [d4,a4,d5]@18 ~@7]/2", // F D5
})).s("gm_acoustic_guitar_nylon").gain(0.43)

// chords · string ensemble 1 · "STRINGS"
const string_ensemble_1 = note(`<
  ~@21 A B ~@9 C D E F D G A H ~@3 I J K I L M N ~@2 O P Q R S ~@2 R S ~@7
>`.pickRestart({
  A: "[g#4,b4]@7 ~@9", B: "~@8 [a4,c#5,e5]@3 ~ [b4,d#5,f#5]@2 ~@2",
  C: "~@5 [b4,d#5] [c#5,e5] [b4,d#5,f#5], ~@10 f#4 ~ a4 ~@3", D: "[b4,g#5] [c#5,a5], e4",
  E: "[d#4,b4]@2 [e4,c#5]@5 ~, g#5", F: "[e4,c#5,a5]@8 [f#4,d#5,b5] ~@7", G: "[d#4,b4]@2 [e4,c#5]@5 ~, g#5@7 ~",
  H: "~@8 [a4,c#5,e5,e6]@4 [b4,d#5,f#5,f#6]@3 ~", I: "[c5,a5] [d5,a#5], f4", J: "[e4,c5]@2 [f4,d5]@5 ~, a5",
  K: "[f4,d5,a#5]@8 [g4,e5,c6] ~@7", L: "[e4,c5]@2 [f4,d5]@5 ~, a5@7 ~", M: "[a4,c5]@7 ~@9",
  N: "~@8 [a#4,d5,f5,f6]@4 [c5,e5,g5,g6]@3 ~", O: "~@8 [f5,a5,d6]@3 ~ [f5,a5,c6,e6]@4",
  P: "[f5,a5,c6,e6]@3 ~ [a5,d6,f6]@4 [a5,a6]@8, ~@4 f5@11 ~", Q: "[f5,f6]@4 [g5,g6]@3 ~@9", R: "~@2 a5 c6",
  S: "[a5,d6]@4 [d6,f6]@3 ~ [f6,a6]@8", // D5 Dm F
})).s("gm_string_ensemble_1").gain(0.34)

// chords · string ensemble 1 · "STRINGS" · soft notes
const string_ensemble_1_soft = note("<~@21 A@2 ~@15 B@2 ~@8 C@2 ~@7 D ~@3 D ~@6>".pickRestart({
  A: "[~@8 f#4@8 [g#4,b4]@7 ~@9, d#5@3 ~, ~@7 a#4@7 ~@18]/2", // G#m
  B: "[~@8 f#4@8 [g#4,b4]@7 ~@9, [d#5,d#6]@3 ~, ~@7 a#4@7 ~@18]/2", // G#m D#
  C: "[~@8 g4@8 [a4,c5]@7 ~@9, [e5,e6]@3 ~, ~@7 b4@7 ~@18]/2", D: "f6 ~@15",
})).s("gm_string_ensemble_1").gain(0.17)

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

// drums · rim
const rim = s("rim").struct(`<
  ~@4 A@7 ~@2 A ~ A@6 ~@2 A ~ B ~@4 C A D A@5 ~@2 A ~ A@6 ~@2 A ~ B ~@4 C ~@3 C A@3 D ~@2
>`.pickRestart({
  A: "~@2 x!2 ~@2 x ~@3 x!2 ~@2 x ~", B: "~@2 x!2 ~@12", C: "~@10 x!2 ~@2 x ~", D: "~@2 x!2 ~@2 x ~@9",
})).gain(0.57)

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

// drums · snare · soft notes
const snare_soft = s("sd").struct("<~@25 A B C D E ~@22 A B C D E ~ F D E ~@7>".pickRestart({
  A: "~@5 x ~@5 x ~@3 x", B: "~@3 x ~@3 x ~@3 x ~@3 x", C: "~@3 x ~ x ~@5 x ~@3 x", D: "~@3 x ~@7 x ~@3 x",
  E: "~@3 x ~@12", F: "~@2 x!4 ~@5 x ~@3 x",
})).gain(0.21)

// drums · low tom
const low_tom = s("lt").struct("<~@25 A ~@2 A@2 ~@22 A ~@2 A@2 ~@2 A@2 ~@7>".pickRestart({
  A: "~@7 x ~@8",
})).gain(0.71)

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

// drums · mid tom
const mid_tom = s("mt").struct("<~@25 [~@5 x!2 ~@9] ~@26 [~@5 x!2 ~@9] ~@15>").gain(0.71)

// drums · open hat
const open_hat = s("oh").struct(`<
  ~@3 A ~@6 B C ~@3 D ~@4 B C ~@8 E ~ F ~@4 B C ~@3 D ~@4 B C ~@8 E G ~@2 E ~@3 H ~@2
>`.pickRestart({
  A: "~@13 x ~ x", B: "~@13 x ~@2", C: "~@15 x", D: "~@11 x ~ x ~ x", E: "~@7 x ~@8", F: "~ x", G: "~@3 x ~ x ~ x ~@8",
  H: "~@5 x ~ x!2 ~@7",
})).gain(0.71)

// drums · crash
const crash = s("cr").struct("<~@28 [~@7 x ~@8]!2 ~@25 [~@7 x ~@8]!2 ~@2 [~@7 x ~@8]!2 ~@7>").gain(0.71)

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

// drums · tambourine
const tambourine = s("tb").struct("<~@4 A@10 ~ A@9 ~ B ~@4 C A B A@8 ~ A@9 ~ B ~@4 C B ~@2 C A@3 B ~@2>".pickRestart({
  A: "~ x ~ x ~ x ~ x", B: "~ x ~ x ~@4", C: "~@5 x ~ x",
})).gain(0.71)

// drums · cabasa
const cabasa = s("cabasa:4").struct("<~@11 A@2 ~@8 A@2 ~@15 A@2 ~@8 A@2 ~@18>".pickRestart({
  A: "x!8",
})).gain(3.62)

// drums · cabasa · soft notes
const cabasa_soft = s("cabasa:4").struct("<~@11 A@2 ~@8 A@2 ~@15 A@2 ~@8 A@2 ~@18>".pickRestart({
  A: "~ x ~ x ~ x ~ x ~ x ~ x ~ x ~ x",
})).gain(1.09)

stack(
  bass, epiano2, acoustic_guitar_nylon, string_ensemble_1, string_ensemble_1_soft, kick, rim, snare, snare_soft,
  low_tom, hihat, mid_tom, open_hat, crash, ride, tambourine, cabasa, cabasa_soft
)

More by Gene Pitney