Strudelify

Baker Street

Undercover

KeyD majorTempo124 bpm
0:00/0:00
// Baker Street — Undercover
// 124 bpm, 4/4, key D major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: pitch bends are ignored
// note: bank select 127 (Roland MT-32 map) read through the MT-32 patch table: 
// note: Full arrangement: all 161 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(124/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.

// chords · piano
const piano = note(`<
  ~ A@2 B@2 C D E@2 F@4 G@2 H@2 F@4 G@2 H@2 I J I J K L M@2 I J I J K L N O P Q R S T U@2 V W@4 X@2 Y@2 W@4 X@2 Y@2 I J
  I J K L M@2 I J I J K L N O P Q R S T U@2 V P Q R S T U@2 V ~@16 I J I J K L M@2 I J I J K L N O P Q R S T U@2 V ~@8 P
  Q R S T U@2 V P Q R S T U@2 Z
>`.pickRestart({
  A: "[[d3,a3]@6 ~@7 a3 [a3,g4]@2, [d4,f#4]@5 d4@3, ~@12 a3@5 ~ a3@7 ~@7, ~@14 d3@17 ~, ~@11 f#4@3 ~@2]/2", // D5 A7 D
  B: "[a3@9 ~@13 a3@2 ~@4 a3@3 ~, d3@23 ~ d3@8, f#4@15 ~ f#4@16, d4@6 ~@2 d4@7 ~, ~@5 a3@5 ~@6]/2",
  C: "g3@9 ~@3 c4@2 e4@2, c3, [c4,e4]@3 ~, ~@5 g3@3", D: "b3@10 g3@5 ~, [e2,d4], g3@3 ~@5",
  E: "[[g3,b3]@5 ~@3 g4@4 ~ g4@3, g2, d4@3 b3@5, ~@5 g3@7 g3@4, ~@7 d4@9]/2", F: "[[a2,a3,c#4,e4,f#4]@57 ~@7]/4",
  G: "[[g2,b3,d4,e4,g4]@15 ~]/2", H: "[[d2,a3,d4,f#4]@31 ~]/2",
  I: "[a3,c4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 c4 ~ g4 ~ c4 ~",
  K: "c4 ~ f4 ~ c5 ~ c4 ~ c5 ~ c5 ~ c4 ~ f4 ~", L: "c4 ~ g4 ~ c5 ~ c4 ~ g4 ~ c5 ~ c4 ~ g4 ~",
  M: "g4 ~ b4 ~ d5 ~ g4 ~ g4 ~ b4 ~ g4 ~ b4 ~", N: "g4 ~ b4 ~ d5 ~ g4 ~ f#5 ~ g4 ~ d5 ~ g4 ~",
  O: "a4 ~ d5 ~ f#5 ~ a4 ~ a4 ~ d5 ~ a4 ~ d5 ~", P: "a4 ~ d5 ~ f#5 ~ a4 ~ d5 ~ a4@2 d5 ~ a4@2",
  Q: "a4 ~ c#5 ~ a5 ~ a4 ~ a4 ~ c#5 ~ a4 ~ c#5 ~", R: "d4 ~@15", S: "d4 ~ a4 ~ d4 ~ a4 ~ d4 ~ a4 ~ d5 ~ a4 ~",
  T: "d4 ~ a4 ~ d4 ~ a4 ~ d4 ~ a4 ~@5",
})).s("gm_epiano2").gain(0.57).pan(0.6)

// chords · string ensemble 2 · "Strijkers"
const string_ensemble_2 = note(`<
  ~ A@4 B@2 C@2 D@4 E@4 D@4 E@4 F G H G I@2 J@2 H G H G I@2 K L M@4 N@4 ~@16 H G H G I@2 J@2 H G H G I@2 K L M@4 N@4 M@4
  N@4 ~@8 D@4 E@4 F G H G I@2 J@2 H G H G I@2 K L M@4 N@4 ~@16 M@4 O@4
>`.pickRestart({
  A: "[[a3,f#4], d4@31 ~]/4", B: "[c4@15 ~ b3@15 ~, [g3,e4]@31 ~, ~@15 d4@16 ~]/2", C: "[b3,d4,g4]/2",
  D: "[c#4,e4,f#4,a4,a5]/4", E: "[[g4,g5] [a3,f#4,f#5], d4, [b3,e4]@31 ~@33]/4", F: "[a3,c4,f4], d4 ~@15",
  G: "[g3,a3,c4,e4]", H: "[a3,c4,d4,f4]", I: "[~ f#4, [g3,b3,d4]]/2", J: "[a3,d4,f#4]/2", K: "[a3,c#4,e4]",
  L: "[g3,b3,d4]", M: "[a3,d4,f#4]/4", N: "[[c4,e4] [b3,d4]@3, g3@63 ~]/4", O: "[[c4,e4]@16 [b3,d4]@39 ~@9, g3@7 ~]/4",
})).s("gm_string_ensemble_2").gain(0.15)

// chords · percussive organ · "Orgel"
const percussive_organ = note(`<
  ~@17 A@4 B@2 C@2 D E F G H I J K D E F G H I L M N O@3 P Q R S A@4 B@2 C@2 A@4 B@2 C@2 D E F G H I J K D E F G H I L M
  N O@3 P Q R S N O@3 P Q R S ~@8 A@4 B@2 C@2 D E F G H I J K D E F G H I L M N O@3 P Q R S ~@8 N O@3 P Q R S N O@3 P Q
  R T
>`.pickRestart({
  A: "[f#4,a4,c#5,e5]@2 ~@2 [f#4,a4,c#5,e5]@2 ~ [f#4,a4,c#5,e5] ~@2 [c#5,e5]@2 ~ [f#4,a4,c#5,e5] ~@2, ~@10 [f#4,a4] ~@5", // F#m7 C#m F#m7 F#m
  B: "[b4,d5,e5,g5]@2 ~@2 [b4,d5,e5,g5]@2 ~ [b4,d5,e5,g5] ~@2 [d5,e5]@2 ~ [b4,d5,e5,g5] ~@2, ~@10 [b4,g5] ~@5", // Em7 Dsus2 Em7 Em
  C: "[a4,d5,f#5]@2 ~@2 [a4,d5,f#5]@2 ~ [a4,d5,f#5] ~@2 [d5,f#5]@2 ~ [a4,d5,f#5] ~@2, ~@10 a4 ~@5", // D
  D: "[a4,c5,f5]@2 ~@2 [a4,c5,d5,f5]@2 ~ [a4,c5,d5,f5] ~@2 [c5,f5]@2 ~ [a4,c5,d5,f5] ~@2, d5 ~@9 [a4,d5] ~@5", // F Dm7 F5 Dm7 D5
  E: "[g4,a4,c5] ~@3 [g4,a4,c5] ~@2 [g4,a4,c5,e5] ~@2 [g4,a4,c5,e5] ~@2 [g4,a4,c5,e5] ~@2, e5 ~ e5 ~@5", // Am7
  F: "[a4,d5,f5] ~@3 [a4,c5,d5] ~@2 [a4,c5,d5,f5] ~@2 [a4,c5,d5,f5] ~@2 [a4,c5,d5,f5] ~@2, c5 ~ f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@10", // G5 G
  R: "[g4,b4,d5,e5] ~@3 [b4,d5]@2 ~ [g4,b4,d5,e5] ~@2 [g4,b4,d5,e5] ~@2 [g4,b4,d5,e5] ~@2, ~@4 [g4,e5] ~@11", // Em7 Bm Em7 C
  S: "[g4,b4,d5,e5] ~@3 [g4,b4,d5]@2 ~ [g4,b4,d5,e5] ~@2 [g4,b4,d5,e5] ~@2 [g4,b4,d5,e5] ~@2, ~@4 e5 ~@11", // Em7 G Em7
  T: "[g4,b4,d5,e5] ~@3 [g4,b4,d5]@2 ~ [g4,b4,d5,e5] ~@2 [g4,b4,d5,e5] ~@5, ~@4 e5 ~@11", // Em7 G Em7
})).s("gm_percussive_organ").gain(0.3).pan(0.8)

// bass · electric bass finger · "Bas"
const bass = note(`<
  ~@41 A@4 B C D@2 E@4 C D F@2 E@4 C D F@2 B E B E D G F@2 B E B E D G E H A@4 B C D@2 A@4 B C D@2 E@4 C D F@2 E@4 C D
  F@2 B E B E D G F@2 B E B E D G E H A@4 B C D@2 ~@16 A@4 B C D I
>`.pickRestart({
  A: "d2@2 ~@2 d2@2 ~ d2 ~@2 d2 ~@2 d2@2 ~", B: "c2@2 ~@2 c2@2 ~ c2 ~@2 c2 ~@2 c2@2 ~",
  C: "e1@2 ~@2 e1@2 ~ e1 ~@2 e1 ~@2 e1@2 ~", D: "g1@2 ~@2 g1@2 ~ g1 ~@2 g1 ~@2 g1@2 ~",
  E: "a1@2 ~@2 a1@2 ~ a1 ~@2 a1 ~@2 a1@2 ~", F: "d1@2 ~@2 d1@2 ~ d1 ~@2 d1 ~@2 d1@2 ~",
  G: "b1@2 ~@2 b1@2 ~ b1 ~@2 b1 ~@2 b1@2 ~", H: "g1 ~@7", I: "g1@2 ~@2 g1@2 ~ g1 ~@2 g1 ~@5",
})).s("gm_electric_bass_finger").gain(0.54)

// chords · alto sax · "Sax"
const alto_sax = note(`<
  A B@5 C D E F ~@30 G@6 H I J@2 ~@30 A B@5 C K L@6 H I J@2 ~@30 A B@5 C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~@2 a4@2 ~@11 a4 ~@2 c5@2 ~@6]/5", // G Csus2
  P: "g4@6 f4@2 [g4,a4,b4] [c5,d5,e5] ~@2 a4 [b4,c5,e5] d5 [c5,e5], ~@9 f5@2 e5@2 ~ f5@2, ~@5 f4 ~@2", // G C Cmaj7 C
})).s("gm_alto_sax").gain(0.57)

// chords · alto sax · "Sax" · soft notes
const alto_sax_soft = note(`<
  A B C ~@3 D@2 ~@32 E ~@39 A B C ~@3 F G E ~@39 A B C ~@3 D@2 E ~@7 A B C ~@3 F G A B C ~@3 D@2 ~
>`.pickRestart({
  A: "~@12 g4 ~@3", B: "~@3 c5 ~@12", C: "~@13 e5 ~@2", D: "[~@4 a4@2 ~@6 b4 ~@2 e5@2 ~@2 c5 ~@2 e5 ~@9]/2",
  E: "~@11 g4 ~@4", F: "~@4 a4@2 ~@6 b4 ~@2 e5", G: "~@3 c5 ~@2 e5 ~@9",
})).s("gm_alto_sax").gain(0.29)

// drums · kick
const kick = s("bd").struct(`<
  ~@25 A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A
  B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B
  A B A B A B A B A B A B A B A B A B A C
>`.pickRestart({
  A: "x!4", B: "x ~ x ~ x ~ x!2", C: "x!3 ~",
})).gain(0.45)

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

// drums · snare · soft notes
const snare_soft = s("sd").struct(`<
  ~@39 A ~ B@7 C B@7 ~ B@7 ~ B@7 ~ B@6 A ~ B@7 C B@7 C B@7 ~ B@7 ~ B@7 ~ B@6 A ~ B@7 C B@7 C B@7 C B@7 D
>`.pickRestart({
  A: "~ x ~@9 x ~@4", B: "~@15 x", C: "~@2 x!2 ~@2 x!2 ~@2 x!2 ~@4", D: "~@2 x!2 ~@2 x!2 ~@8",
})).gain(0.3)

// drums · clap
const clap = s("cp").struct("<~@40 [~@3 x] [~ x ~ x]!39 [~@3 x] [~ x ~ x]!47 [~@3 x] [~ x ~ x]!31 [~ x ~@2]>").gain(0.5)

// drums · hihat
const hihat = s("hh").struct("<~@33 A@6 ~@2 A@38 ~@2 A@46 ~@2 A@31 B>".pickRestart({
  A: "x!4", B: "x!3 ~",
})).gain(0.35)

// drums · low tom
const low_tom = s("lt").struct("<~@40 [~@11 x ~@4] ~@39 [~@11 x ~@4] ~@47 [~@11 x ~@4] ~@32>").gain(0.5)

// drums · open hat
const open_hat = s("oh").struct("<~@33 A@6 ~@2 A@38 ~@2 A@46 ~@2 A@31 B>".pickRestart({
  A: "~ x ~ x ~ x ~ x", B: "~ x ~ x ~@4",
})).gain(0.35)

// drums · mid tom
const mid_tom = s("mt").struct("<~@40 [~@5 x ~@2] ~@39 [~@5 x ~@2] ~@47 [~@5 x ~@2] ~@32>").gain(0.45)

// drums · high tom
const high_tom = s("ht").struct("<~@40 [~@9 x ~@6] ~@39 [~@9 x ~@6] ~@47 [~@9 x ~@6] ~@32>").gain(0.45)

// drums · tambourine
const tambourine = s("tb").struct("<~@33 A@6 ~@2 A@38 ~@2 A@46 ~@2 A@31 B>".pickRestart({
  A: "x ~@5 x!5 ~@3 x!2", B: "x ~@5 x!3 ~@7",
})).gain(0.45)

stack(
  piano, epiano2, string_ensemble_2, percussive_organ, bass, alto_sax, alto_sax_soft, kick, snare, snare_soft, clap,
  hihat, low_tom, open_hat, mid_tom, high_tom, tambourine
)