Strudelify

Liever Dan Lief

Tim Immers

KeyA majorTempo111 bpm
0:00/0:00
// Liever Dan Lief — Tim Immers
// 111 bpm, 4/4, key A major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: pitch bends are ignored
// note: Full arrangement: all 89 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
// note: Guitar parts that double another keep only their own notes (fills, solos): DISTORTION.
setcpm(111/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 · "A.PIANO 3"
const piano = note(`<
  ~ A@4 B@2 C@2 D@2 A@2 B@2 C@2 D@2 A E A B D F A B G A@2 B@2 C@2 D@2 A@2 B@2 C@2 D@2 A E A B D F A B G A@2 B@2 C@2 D@2
  A@2 B@2 C@2 D@2 A E A B D F A B G A B D F A B G A@3 H
>`.pickRestart({
  A: "~@2 [a3,c#4,f#4] ~@3 [a3,c#4,f#4] ~@3 [a3,c#4,f#4] ~@3 [a3,c#4,f#4] ~", // F#m
  B: "~@2 [a3,d4,f#4] ~@3 [a3,d4,f#4] ~@3 [a3,d4,f#4] ~@3 [a3,d4,f#4] ~", // D
  C: "~@2 [a3,c#4,e4] ~@3 [a3,c#4,e4] ~@3 [a3,c#4,e4] ~@3 [a3,c#4,e4] ~", // A
  D: "~@2 [g#3,b3,e4] ~@3 [g#3,b3,e4] ~@3 [g#3,b3,e4] ~@3 [g#3,b3,e4] ~", // E
  E: "~@2 [a3,c#4,f#4] ~@3 [a3,c#4,f#4] ~ [a3,d4,f#4]@3 ~ [g#3,b3,e4]@3 ~", // F#m D E
  F: "~@2 [g#3,c#4,e4] ~@3 [g#3,c#4,e4] ~@3 [g#3,c#4,e4] ~@3 [g#3,c#4,e4] ~", // C#m
  G: "~@2 [e4,g#4] ~@3 [d4,f#4] ~ [g#3,c#4,f4] ~@7, ~ b3 ~ a3 ~@4", // E D C#
  H: "~@2 [c#4,f#4] ~@3 [b3,e4] ~ [a3,c#4,f#4] ~@7, ~ a3 ~ g#3 ~@4", // F#5 E5 F#m
})).s("gm_piano").gain(0.29).pan(0.4)

// bass · electric bass finger · "FINGERDBAS"
const bass = note(`<
  ~ A B C D E@2 F G H@2 I J E@2 F G K H I L M N O P Q R S C D E@2 F G H@2 I J E@2 F G K H I L M N O P Q R S C D T U V W
  X Y Z AA AB AC AD AE AF AG AH AI M N O P Q R AJ M N O AK Q R S AL AM AN AO
>`.pickRestart({
  A: "c#2@2 f#1 ~ f#1 ~ f#1@4 a1@2 c#2 ~@3", B: "c#2 ~ f#1 ~ f#1 ~ f#1@4 a1@2 c#2 ~@3",
  C: "c#2 ~ f#1 ~ f#1 ~ f#1@4 a1@2 c#2 ~ f#1!2", D: "c#2 ~ f#1 ~ f#1 ~ f#1@5 ~ e1@3 ~", E: "a1@2 d1 ~ d1 ~ d1@8 ~@2",
  F: "e1@2 a1 ~ a1 ~ a1@8 e1!2", G: "e1@2 a1 ~ a1 ~ a1@8 ~@2", H: "b1@2 e1 ~ e1 ~ e1@8 ~@2",
  I: "c#2@2 f#1 ~ f#1 ~ f#1@8 ~ f#1", J: "c#2@2 f#1 ~ f#1 ~ f#1@5 ~ e1@3 ~", K: "b1@2 e1 ~ e1 ~ e1@8 ~ e1",
  L: "c#2@2 f#1 ~ f#1 ~ f#1@2 b1@3 ~ c#2@3 ~", M: "f#1@3 f#1 ~ f#1 e1 ~ f#1@4 g#1@2 a1@2",
  N: "d1@3 d2 ~ d2 a1 ~ d2@3 d2 ~@2 d2!2", O: "e2@3 e2 ~ b1 b1@2 e1@3 d2 e2@2 d2@2",
  P: "c#2@3 c#2 ~ g#1 b1@2 c#2@3 c#2 e2!2 c#2@2", Q: "f#1@3 f#1 ~ f#1 e1 ~ f#1@3 f#1 g#1@2 a1@2",
  R: "d1@3 d2 ~ d2 a1 ~ d2@3 d2!2 ~ d2!2", S: "e1@3 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#4,b4,e5]@3 ~ [b2,e3,g#3,b3,e4,g#4,b4]@3 ~ [e3,g#3,e4,g#4,b4,e5]@2 [g#3,b3,e4,g#4,b4,e5,g#5]@9 [g#4,g#5] [b3,a4,b4,a5,b5] [b3,b4,b5] [a3,a4,a5] ~ [g#3,g#4,g#5] ~ [a3,a4,a5] [f#3,f#4,f#5]@17, ~@12 b3 ~@35]/3", // E G# B7 B A G# A F#
  L: "~@7 e5 [a4,c#5,d5,f#5]@2 ~@2 [g#4,b4,c#5,e5]@3 ~, ~@8 f5 ~@7", // Dmaj7 C#m7
  M: "[f#4,a4,c#5,f#5]@2 ~@2 [g#4,b4,c#5,e5]@3 ~ [a4,c#5]@2 ~@6", // F#m C#m7 A
})).s("gm_brass_section").gain(0.4)

// other · electric guitar muted · "MUTED GTR"
const electric_guitar_muted = note(`<
  ~ A@8 B@2 A@6 B@2 A@4 B C A@2 D A@6 B@2 A@6 B@2 A@4 B C A@2 D A@6 B@2 A@6 B@2 A@4 B C A@2 D A@2 B C A@2 D A@3 E
>`.pickRestart({
  A: "a4!2 ~@2 a4!2 ~@2 a4!2 ~@2 a4!2 ~@2", B: "b4!2 ~@2 b4!2 ~@2 b4!2 ~@2 b4!2 ~@2",
  C: "g#4!2 ~@2 g#4!2 ~@2 g#4!2 ~@2 g#4!2 ~@2", D: "b4!2 ~@2 a4!2 ~@2 g#4 ~@7", E: "a4!2 ~@2 g#4!2 ~@2 a4 ~@7",
})).s("gm_electric_guitar_muted").gain(0.18)

// chords · electric guitar clean · "+CHORUS GT"
const electric_guitar_clean = note(`<
  ~ A@4 B@2 C@2 D@2 A@2 B@2 C@2 D@2 A E A B D F A B G A@2 B@2 C@2 D@2 A@2 B@2 C@2 D@2 A E A B D F A B G A@2 B@2 C@2 D@2
  A@2 B@2 C@2 D@2 A E A B D F A B G A B D F A B G A@3 H
>`.pickRestart({
  A: "~@2 [a3,c#4,f#4] ~@3 [a3,c#4,f#4] ~@3 [a3,c#4,f#4] ~@3 [a3,c#4,f#4] ~", // F#m
  B: "~@2 [a3,d4,f#4] ~@3 [a3,d4,f#4] ~@3 [a3,d4,f#4] ~@3 [a3,d4,f#4] ~", // D
  C: "~@2 [c#4,e4,a4] ~@3 [c#4,e4,a4] ~@3 [c#4,e4,a4] ~@3 [c#4,e4,a4] ~", // A
  D: "~@2 [b3,e4,g#4] ~@3 [b3,e4,g#4] ~@3 [b3,e4,g#4] ~@3 [b3,e4,g#4] ~", // E
  E: "~@2 [a3,c#4,f#4] ~@3 [a3,c#4,f#4] ~ [a3,c#4,f#4]@2 ~@2 [b3,e4,g#4]@2 ~@2", // F#m E
  F: "~@2 [g#3,c#4,e4] ~@3 [g#3,c#4,e4] ~@3 [g#3,c#4,e4] ~@3 [g#3,c#4,e4] ~", // C#m
  G: "~@2 [b3,e4,g#4] ~@3 [a3,d4,f#4] ~ [g#3,c#4,f4] ~@7", H: "~@2 [a3,c#4,f#4]@2 ~@2 [g#3,b3,e4]@2 [a3,c#4,f#4] ~@7",
})).s("gm_electric_guitar_clean").gain(0.19).pan(0.6)

// chords · synth strings 2 · "SYN STR 2"
const synth_strings_2 = note("<~@5 A@8 B@8 C@2 D@5 ~@2 A@8 B@8 C@2 D@5 ~@2 E@8 F@8 C@2 D@5 C@2 G@4 H@5>".pickRestart({
  A: "[[f#3,d4]@31 ~ c#4@31 ~ [b3,e4]@31 ~ [c#4,f#4]@32, a3@64 ~@31 a3@32 ~, ~@31 e3@32 g#3@32 ~@33]/8", // D E5 F#5
  B: "[[f#3,d4]@31 ~ c#4@31 ~ [b3,e4]@31 ~ [c#4,f#4]@28 [g#3,b3,e4]@4, a3@64 ~@31 a3@29 ~@4, ~@31 e3@32 g#3@32 ~@33]/8", // D E5 F#5 E
  C: "[[c#4,f#4] [f#3,d4], a3]/2", // F#5 D
  D: "[b3@16 ~@32 d4@15 [b3,e4,g#4]@4 ~ f#4@3 [g#3,c#4,f4]@3 ~@6, [g#3,e4]@32 [a3,f#4]@32 ~@3 [a3,d4]@4 ~@9, ~ c#4@2 ~@2]/5", // E C# C#m D D5
  E: "[[f#3,d4]@31 ~ c#4@31 ~ [b3,e4]@31 ~ [c#4,f#4]@32, a3@64 ~@31 a3@32 ~, ~@31 e4@32 g#3@32 ~@33]/8", // D E5 F#5
  F: "[[f#3,d4]@31 ~ c#4@31 ~ [b3,e4]@31 ~ [c#4,f#4]@28 [g#3,b3,e4]@4, a3@64 ~@31 a3@29 ~@4, ~@31 e4@32 g#3@32 ~@33]/8", // D E5 F#5 E
  G: "[b3@16 ~@32 d4@15 [b3,e4,g#4], [g#3,e4] [a3,f#4], ~ c#4@2 ~]/4", // E C#m D
  H: "[~@4 f#4@3 [g#3,c#4,f4]@3 ~@6 [a3,c#4]@51 ~ [g#3,b3]@4 [f#3,a3,c#4]@2 ~@6, ~@3 [a3,d4]@4 ~@8 f#3@52 e3@4 ~@9]/5", // C# A G#m F#m D5
})).s("gm_synth_strings_2").gain(0.13)

// other · electric guitar muted · "MUTED GTR"
const electric_guitar_muted_2 = note(`<
  ~ A B C D E@2 F G H@2 I J E@2 K G L H I M ~@7 C D E@2 F G H@2 I J E@2 K G L H I M ~@7 C D ~@34
>`.pickRestart({
  A: "c#3@2 f#2 ~ f#2 ~ f#2@4 a2@2 c#3 ~@3", B: "c#3 ~ f#2 ~ f#2 ~ f#2@4 a2@2 c#3 ~@3",
  C: "c#3 ~ f#2 ~ f#2 ~ f#2@4 a2@2 c#3 ~ f#2!2", D: "c#3 ~ f#2 ~ f#2 ~ f#2@5 ~ e2@3 ~", E: "a3@2 d3 ~ d3 ~ d3@8 ~@2",
  F: "e3@2 a2 ~ a2 ~ a2@8 e3!2", G: "e3@2 a2 ~ a2 ~ a2@8 ~@2", H: "b2@2 e3 ~ e3 ~ e3@8 ~@2",
  I: "c#3@2 f#2 ~ f#2 ~ f#2@8 ~ f#2", J: "c#3@2 f#2 ~ f#2 ~ f#2@5 ~ e2@3 ~", K: "e3@2 a2 ~ a2 ~ a2@8 e2!2",
  L: "b2@2 e3 ~ e3 ~ e3@8 ~ e2", M: "c#3@2 f#2 ~ f#2 ~ f#2@2 b2@3 ~ c#3@3 ~",
})).s("gm_electric_guitar_muted").gain(0.19).pan(0.8)

// chords · electric guitar muted · "FUNK GTR"
const electric_guitar_muted_3 = note(`<
  ~@21 A B C D A B E ~@18 A B C D A B E ~@2 F G H I ~ J K@2 ~ L H M ~ J N O A B C D A B E A B C D A B E A B A P
>`.pickRestart({
  A: "~@3 [a3,c#4,f#4] [a3,c#4] [a3,c#4,f#4] ~@5 [a3,c#4,f#4] [a3,c#4] [a3,c#4,f#4] ~@2", // F#m A F#m A F#m
  B: "~@3 [a3,d4,f#4] [a3,d4] [a3,d4,f#4] ~@5 [a3,d4,f#4] [a3,d4] [a3,d4,f#4] ~@2", // D D5 D D5 D
  C: "~@3 [g#3,b3,e4] [g#3,b3] [g#3,b3,e4] ~@5 [g#3,b3,e4] [g#3,b3] [g#3,b3,e4] ~@2", // E G#m E G#m E
  D: "~@3 [g#3,c#4,e4] [g#3,c#4] [g#3,c#4,e4] ~@5 [g#3,c#4,e4] [g#3,c#4] [g#3,c#4,e4] ~@2", // C#m C#5 C#m C#5 C#m
  E: "[b3,e4,g#4]@3 ~ [a3,d4,f#4]@3 ~ [g#3,c#4,f4] ~@7", F: "~@15 [b3,e4]",
  G: "[g#3,b3,e4] [a3,d4,f#4]@2 [a3,d4,f#4] [a3,d4] ~@2 [b3,e4] [g#3,b3,e4] [a3,d4,f#4] [f#4,a4,d5]!2 [f#4,a4] [f#4,a4,d5] ~@2", // E D D5 E5 E D F#m D
  H: "~@15 [a3,d4]", // D5
  I: "[f#3,a3,d4] [a3,c#4,e4]@2 [a3,c#4,e4] [a3,c#4] ~@2 [a3,d4] [f#3,a3,d4] [a3,c#4,e4] [c#4,e4,a4]!2 [c#4,e4] [c#4,e4,a4] ~@2", // D A D5 D A C#m A
  J: "~@3 [b3,e4] [b3,e4,g#4]!2 [d4,f#4] ~ f#4 ~@3 e4@3 ~", // E5 E D
  K: "[~@3 [b3,e4] [c#4,f#4,a4] [c#4,f#4,a4]@2 ~@3 [c#4,f#4,a4] [b3,e4] [c#4,f#4,a4] [c#4,f#4,a4]@2 b4@2 ~ a4 ~ b4 ~ f#4 ~ a4@5 ~@3]/2", // E5 F#m E5 F#m
  L: "~@3 [b3,e4] [g#3,b3,e4] [a3,d4,f#4]@2 [a3,d4,f#4] [a3,d4] ~ [f#4,a4,d5]!2 [f#4,a4] [f#4,a4,d5] ~@2", // E5 E D D5 D F#m D
  M: "[f#3,a3,d4] [a3,c#4,e4]@2 [a3,c#4,e4] b4 b4@2 a4 b4 a4 a4@4 ~@2", N: "~@6 a4 ~ b4 f#4@6 ~",
  O: "~@2 a4@2 b4 f#4@3 [a4,d5,f#5]@3 ~ e4@3 ~", P: "~@3 [a3,d4,f#4] [g#3,b3] [g#3,b3,e4] ~@2 [a3,d4,f#4] ~@7",
})).s("gm_electric_guitar_muted").gain(0.07).pan(0.3)

// other · flute
const flute = note(`<
  ~@12
  [e4 f#4 b4 c#5 a4 f#4 c#5 a4 f#5 ~ c#5 ~ e5 ~ b4 a4]
  ~@24
  [e4 f#4 b4 c#5 a4 f#4 c#5 a4 f#5 ~ c#5 ~ e5 ~ b4 a4]
  ~@51
>`).s("gm_flute").gain(0.25)

// chords · synth brass 1 · "SYNBRASS 1"
const synth_brass_1 = note(`<
  ~@21 A B C D A B E ~@18 A B C D A B E ~@2 F@2 G@2 H@2 I@2 F@2 G@2 H@2 I J A B C D A B E A B C D A B E I@3 K
>`.pickRestart({
  A: "~@3 [c#4,f#4,a4] ~@2 [c#4,f#4,a4]!2 ~@3 [c#4,f#4,a4] ~@2 [c#4,f#4,a4]!2", // F#m
  B: "~@3 [a3,d4,f#4] ~@2 [a3,d4,f#4]!2 ~@3 [a3,d4,f#4] ~@2 [a3,d4,f#4]!2", // D
  C: "~@3 [b3,e4,g#4] ~@2 [b3,e4,g#4]!2 ~@3 [b3,e4,g#4] ~@2 [b3,e4,g#4]!2", // E
  D: "~@3 [c#4,e4,g#4] ~@2 [c#4,e4,g#4]!2 ~@3 [c#4,e4,g#4] ~@2 [c#4,e4,g#4]!2", // C#m
  E: "~@3 [b3,e4,g#4] ~@2 [a3,d4,f#4] ~ [g#3,c#4,f4] ~@7", // E D C#
  F: "~@2 [d4,f#4,a4]!2 ~@2 [d4,f#4,a4] ~@3 [d4,f#4,a4]!2 ~@2 [d4,f#4,a4] ~", // D
  G: "~@2 [c#4,e4,a4]!2 ~@2 [c#4,e4,a4] ~@3 [c#4,e4,a4]!2 ~@2 [c#4,e4,a4] ~", // A
  H: "~@2 [b3,e4,g#4]!2 ~@2 [b3,e4,g#4] ~@3 [b3,e4,g#4]!2 ~@2 [b3,e4,g#4] ~", // E
  I: "~@2 [c#4,f#4,a4]!2 ~@2 [c#4,f#4,a4] ~@3 [c#4,f#4,a4]!2 ~@2 [c#4,f#4,a4] ~", // F#m
  J: "~@2 [c#4,f#4,a4]!2 ~@2 [c#4,f#4,a4] ~@9", K: "~@2 [c#4,f#4,a4]!2 ~@2 [b3,e4,g#4] ~ [c#4,f#4,a4] ~@7",
})).s("gm_synth_brass_1").gain(0.05).pan(1)

// other · brass section · "BRASS 1"
const brass_section_2 = note("<~@21 A ~@24 A ~@24 A ~@6 A ~@9 B>".pickRestart({
  A: "[f#4,f#5]@3 ~@13", B: "~@8 [f#4,f#5]@3 ~@5",
})).s("gm_brass_section").gain(0.45)

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

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

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

// drums · hihat · soft notes
const hihat_soft = s("hh").struct(`<
  ~@23 A ~@3 B ~@24 B ~@3 A ~ A@2 ~@4 A ~ A ~ A ~ C ~@4 A@5 ~@2 A@4 ~ A ~
>`.pickRestart({
  A: "~@3 x", B: "~@9 x ~@6", C: "~ x!2 ~",
})).gain(0.32)

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

// drums · crash
// … 70 more lines

More by Tim Immers