Strudelify

I Know a Place

Petula Clark

KeyC majorTempo130 bpm
0:00/0:00
// I Know a Place — Petula Clark
// 130 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: Full arrangement: all 60 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(130/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 · tenor sax · "Sax"
const tenor_sax = note(`<
  A B C D C B E@2 ~ F G H I J K L@2 M N O P M Q R@2 ~@2 A B C D C B E@2 ~ F G H I J K L@2 M N O P M Q R@2 O P O P O P O
  P
>`.pickRestart({
  A: "c3@3 ~ c3@3 ~ d3@3 ~ c3@2 d3@2", B: "e3@2 g3@2 e3@2 d3@3 ~ e3@2 d3@2 g2@2",
  C: "c3@3 ~ c3@2 c3@2 d3@3 ~ c3@2 d3@2", D: "e3 d3 e3 d3@4 ~", E: "[c3@3 ~ c3@2 c3@2 c3@2 d3@3 ~ e3@14 ~@4]/2",
  F: "e3@3 ~ e3@2 e3@2 e3@3 ~ e3@2 e3@2", G: "g#3@2 e3@2 e3@2 e3@5 ~ b2@2 b2@2", H: "e3@2 e3@5 ~ e3@3 ~ e3@2 e3@2",
  I: "c#4@3 ~ b3@3 ~ g#3@2 f#3@2 e3@2 c#3@2", J: "e3@2 e3@3 ~ e3@2 e3@3 ~ e3@3 ~", K: "g#3@3 ~ e3@3 ~ e3@5 ~ b2@2",
  L: "[e3@2 e3@2 e3@2 e3@2 e3@2 f3@3 ~ g3@5 ~ g3@2 g3@2 g3@2 b3@4 ~@2]/2", M: "c4@6 ~@2 a3@2 c4@5 ~",
  N: "f3@3 ~ a#3@2 a#3@2 g3@2 f3@2 g3@3 ~", O: "c4@3 ~ c4@2 c4@2 a3@3 ~ c4@3 ~", P: "f3@3 ~ a#3@3 ~ g3@6 ~@2",
  Q: "f3@3 ~ a#3@3 ~ g3@2 f3@2 g3@3 ~", R: "[c3@13 ~@3]/2",
})).s("gm_tenor_sax").gain(0.35).pan(0.3)

// chords · piano
const piano = note(`<
  A B C D E F G@2 H I J I K L M N@2 O P Q R S T U V S W X B Y Z AA AB AC@2 H AD J AD AE AD K AF@2 AG AH AI AJ AK AL AI
  AM AN AL AO AP AN AQ AG AR
>`.pickRestart({
  A: "[g3,c4,e4]@6 e4 g4 f4@2 ~@2 g#4@2 c5 ~, ~@8 [g#3,c4]@7 ~, ~@10 f4@5 ~", // C G#
  B: "~@4 b3@2 d4 ~ [c4,d4,f4,a4]@8, [d4,e4,g4]@7 ~@9, b3 ~@3, ~ g3@2 ~@5", // Dm7 Em7
  C: "[g3,c4,e4]@6 e4 g4 [f#3,a3,d4]@6 f#4 a4", D: "[g#3,b3,e4] ~ [g#3,b3,e4] ~ [b3,d4,f4,g4]@4, ~ e3@2 ~@5",
  E: "[g3,c4,e4]@2 ~@2 [g3,c4,e4]@2 ~@2 f4@2 ~@2 a4@2 c5 ~, ~@2 c3@4 ~@2 [c4,d4]@7 ~, ~@2 a4 ~, ~@10 f4@5 ~", // C Csus2
  F: "[b3,d4,e4,g4]@4 [c4,d4,f4,a4] ~ [c4,d4,f4,a4] ~, ~@5 f3@2 ~", // Em7 Dm7
  G: "[[g3,c4,e4]@6 e4 g4 [g3,c4,e4]@2 [a3,d4,f#4]@4 [g#3,b3,e4]@4 ~@2 [g#3,b3,e4]@2 ~@2 a3@2 ~@2 c4@2 e4 ~, ~@9 e3@2 ~ e4@3 ~, ~@6 c4 ~, ~@26 a3@5 ~]/2", // C D E
  H: "[b3,d4,e4,g#4] ~ [b3,d4,e4,g#4] ~ [b3,d4,e4,g#4]@2 [a3,c#4,e4]@2, ~ e3@2 ~@5", I: "[g#3,b3,e4] [b3,c#4,e4,g#4]",
  J: "~@4 g#4@2 b4 ~ [b3,c#4,e4,g#4]@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 f4@2 ~@2 a4@2 c5 ~, g3@7 ~ [a3,c4]@7 ~, e4@4 ~@6 f4@5 ~, ~@2 c4@5 ~@9", // Am
  AJ: "[f3,a#3,d4]@6 d4 f4 g3@2 ~@2 b3@2 d4 ~, ~@4 d4@3 ~, ~@2 b3 ~, ~@10 g3@5 ~", // A#
  AK: "[g3,c4,e4]@6 e4 g4 f4@2 ~@2 a4@2 c5 ~, ~@8 [a3,c4]@7 ~, ~@10 f4@5 ~", // C Am
  AL: "[a#3,d4,f4]@2 ~@2 [a#3,d4,f4]@2 ~@2 g3@2 ~@2 b3@2 d4 ~, ~ a#2@2 ~ d4@3 ~, ~@2 b3 ~, ~@10 g3@5 ~", // A#
  AM: "c4@2 ~@2 e4@2 g4 ~ [a3,c4,f4]@6 a4 c5, [a#3,g4]@7 ~@9, e4 ~@3, ~@2 c4@5 ~@9", // F D#
  AN: "[g3,c4,e4]@6 e4 g4 [a3,c4,f4]@6 a4 c5", // C F
  AO: "c4@2 ~@2 e4@2 g4 ~ [a3,c4,f4]@2 ~@2 [a3,c4,f4]@2 ~@2, g3@7 ~@3 f3@4 ~@2, e4 ~@3, ~@2 c4@5 ~@9", // F
  AP: "[a#3,d4,f4] ~ [a#3,d4,f4] ~ [g3,b3,d4] ~ [g3,b3,d4] ~, ~ a#2@2 ~@2 g2@2 ~", // A# G
  AQ: "[f3,a#3,d4]@6 d4 f4 [g3,b3,d4]@8", AR: "[a#3,d4,f4]@2 ~@2 [a#3,d4,f4]@2 ~@2 [g3,b3,d4]@7 ~, ~ a#2@2 ~@5",
})).s("gm_piano").gain(0.3).pan(0.9)

// chords · electric guitar muted · "Guitar"
const electric_guitar_muted = note(`<
  A B C D E F G H I J K J L J M N O P Q R Q P S T U R U A F V W E F G X Y Z M Z@2 L@2 AA AB AC S R Q T Q P AD R S AC S
  AC AE AC S
>`.pickRestart({
  A: "~@3 c4 ~@3 g#3, ~ e4@3 ~@2 c4@2, ~@2 g3@2 ~ g#3@2 ~", B: "~@3 b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 e4@3 ~ f4@3, ~ a#3 ~ a3", V: "~@3 c4 ~@3 d4, ~ e4@3 ~ f#4@3, ~ g3 ~ a3",
  W: "~@3 b3 ~@3 b3, ~ e4@3 ~@2 d4@2, ~@2 g#3@2 ~ b3@2 ~", X: "~@3 b3 ~@3 e3, ~ e4@3 ~@2 a3@2, ~@2 g#3@2 ~ e3@2 ~",
  Y: "~@3 b3 ~ g#3 ~ c#4, ~ d4@3 ~@4, ~ g#3 ~@2", Z: "~@3 g#3 ~@3 b3, ~ g#3@2 ~@3 g#3@2, ~@2 b3@2 ~ c#4@3",
  AA: "~@3 g#3 ~@4, ~ g#3@2 ~@5, ~ b3 ~@2", AB: "~ b3 ~ f4 ~@3 b3, ~@5 b3@2 ~, ~@3 d4",
  AC: "~@3 g3 ~@3 c4, ~ g3@2 ~@3 a3@2, ~@2 c4@2 ~ f4@3", AD: "~@3 a#3 ~@3 c4, ~ a#3@2 ~@3 a3@2, ~@2 c4@2 ~ f4@3",
  AE: "~@3 a#3 ~@3 d4, ~ d4@3 ~ g4@3, ~ f3 ~ b3",
})).s("gm_electric_guitar_muted").gain(0.27).pan(0.1)

// chords · string ensemble 1 · "Strings"
const string_ensemble_1 = note("<~@17 A B C D E B F G A H ~@17 I J E K L B L E ~@8>".pickRestart({
  A: "[g5,e6] [a5,f6]", B: "[f5,d6] [b5,g6]", C: "[e6,c7] [f6,c7]", D: "[f5,d6] [g6,b6]", E: "[e6,g6] [a5,f6]",
  F: "[e6,g6] [f6,c7]", G: "c6 [f6,c7]", H: "[a#5,e6] [a5,f6]", I: "[g5,e6] [f6,c7]", J: "[f5,d6] d6", K: "[d6,a#6] d6",
  L: "c6 [a5,f6]", // Dm
})).s("gm_string_ensemble_1").gain(0.24).pan(1)

// chords · string ensemble 1 · "Strings" · soft notes
const string_ensemble_1_soft = note("<~@24 A ~@20 B ~ B A ~ A ~@9>".pickRestart({
  A: "e6 ~", B: "~ g6",
})).s("gm_string_ensemble_1").gain(0.16).pan(1)

// bass · fretless bass · "Bass"
const bass = note(`<
  A B C D A B E@2 F G@6 H@2 I J K L K M K@2 N O A B C D A B E@2 F G@6 H@2 K P Q P K J K R A S A S A S A T
>`.pickRestart({
  A: "c2@5 ~ c2 ~ f1@5 ~ f1 ~", B: "g1@5 ~ g1 ~ f1@5 ~ f1 ~", C: "c2@5 ~ c2 ~ d2@5 ~ d2 ~",
  D: "e1@5 ~ e1 ~ g1@5 ~ g1 ~", E: "[c2@5 ~ c2 ~ c2@2 d2@4 e1@7 ~ e1 ~ a1@5 ~ a1 ~]/2", F: "e1@5 ~ e1 ~ e1@4 a1@4",
  G: "e1@5 ~ e1 ~ e1@5 ~ e1 ~", H: "[e1@5 ~ e1 ~ e1@2 f1@4 g1@6 d2@4 g1@5 ~ g1 ~]/2", I: "c2@6 ~ c2 f2@5 ~ c2 f2",
  J: "a#1@6 ~ a#1 g1@5 ~ g1!2", K: "c2@6 ~ c2 f1@5 ~ f1!2", L: "a#1@6 ~ a2 g2@5 ~ b1 g2", M: "a#1@6 ~ a2 g2@5 ~ d2 g2",
  N: "c2@6 ~ g2 f2@5 ~ a1 f2", O: "c2@6 ~ g2 f2@5 ~ d2 f2", P: "a#1@6 ~ a2 g2@5 ~ g1 g2", Q: "c2@6 ~ d2 f2@5 ~ a1 f2",
  R: "c2@6 ~ d2 f2@5 ~ f1 f2", S: "a#1@5 ~ a#1 ~ g1@5 ~ g1 ~", T: "a#1@5 ~ a#1 ~ g1@5 ~@3",
})).s("gm_fretless_bass").gain(0.3).pan(0)

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

// drums · rim
const rim = s("rim").struct("<A@8 ~ A@7 ~@11 A@8 ~ A@7 ~@9 A@7 ~>".pickRestart({
  A: "~ x ~ x",
})).gain(0.64)

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

// drums · snare · soft notes
const snare_soft = s("sd").struct("<~@20 A ~@5 B ~@18 A ~@2 A ~@2 B ~@7 C>".pickRestart({
  A: "~@7 x ~@8", B: "~@9 x ~@3 x ~@2", C: "~@3 x ~@5 x ~@6",
})).gain(0.32)

// drums · low tom
const low_tom = s("lt").struct("<~@8 A ~@7 A ~@9 B ~@8 A ~@7 C ~@7 D ~@7 E>".pickRestart({
  A: "~@3 x", B: "~@14 x!2", C: "~@12 x ~@2 x", D: "~@7 x", E: "~@12 x!3 ~",
})).gain(0.64)

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

// drums · hihat · soft notes
const hihat_soft = s("hh").struct("<~@17 A B A B C B A C A D ~@17 A B@2 C B C A D ~@8>".pickRestart({
  A: "~ x ~@3 x ~@3 x ~ x ~ x ~@2", B: "~ x ~@3 x ~@3 x ~@3 x ~@2", C: "~ x ~@3 x ~@3 x ~@6",
  D: "~ x ~@3 x ~ x ~ x ~ x ~ x ~ x",
})).gain(0.24)

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

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

// drums · high tom
const high_tom = s("ht").struct("<~@8 A ~@7 A ~@18 A ~@7 A ~@15 A>".pickRestart({
  A: "~@3 x ~@4",
})).gain(0.64)

// drums · crash
const crash = s("cr").struct("<x ~@8 x ~@26 x ~@15 x ~@7>").gain(0.56)

stack(
  tenor_sax, piano, electric_guitar_muted, string_ensemble_1, string_ensemble_1_soft, bass, kick, rim, snare,
  snare_soft, low_tom, hihat, hihat_soft, mid_tom, open_hat, high_tom, crash
)

More by Petula Clark