Strudelify

Liefde in de nacht

Nico Landers

KeyC majorTempo122 bpm
0:00/0:00
// Liefde in de nacht — Nico Landers
// 122 bpm, 4/4, key C major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: Full arrangement: all 99 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(122/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 1"
const piano = note(`<
  ~@6 A B@2 C@2 D@2 E F E G H I J K L@2 M@2 N@2 D@2 O P Q R S I J T U V W X Y Z Y Z AA AB AC@2 ~@2 C@2 B@2 C@2 D@2 E F E
  G H AD J K AE@4 AF@4 O P Q R S I J T U V W X Y Z Y Z AA AB AC@2 ~@2 AG AH
>`.pickRestart({
  A: "~@12 [c3,e3,g3,b3,c4,e4]@3 ~", B: "[[f2,c3,f3,a3,c4,e4]@31 ~]/2",
  C: "[[c3,e3,g3,b3,c4,e4]@26 ~@2 [c3,e3,g3,b3,c4,e4]@3 ~]/2", // Cmaj7
  D: "[[f2,c3,f3,a3,c4,e4]@24 [a3,c4]@3 ~ [a3,c4,e4]@4, ~@24 [f2,c3,f3]@7 ~]/2", E: "[g2,g3,b3,d4]@15 ~",
  F: "[f2,c3,f3,a3,c4]@7 ~ [f3,a3,c4]@3 ~ [f3,a3,c4,e4]@4, ~@8 [f2,c3]@7 ~", G: "[a2,e3,a3,c4,e4]@15 ~",
  H: "[g#2,d#3,f#3,g#3,c4,d#4]@15 ~", I: "[g2,c3,g3,c4,e4]@15 ~", J: "[g2,g3,a#3,c#4,e4]@15 ~",
  K: "[d3,a3,c4,e4,f4]@7 ~ [g2,g3,b3,d4,f4]@8", // Dm7 G7
  L: "[[c3,e3,g3,b3,c4,e4]@23 ~ [e3,g3,b3,c4]@4 [g3,b3,c4,e4]@3 ~, ~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",
  AC: "[g2,g3,b3,d4,g4]/2", AD: "[g2,c3,g3,c4,e4]@15 ~, g4 ~@3",
  AE: "[[c3,e3,g3,b3,c4,e4]@23 ~ [e3,g3,b3,c4]@4 [b3,c4,e4]@3 ~ [f3,a3,c4,e4]@23 ~ [f3,a3,c4]@3 ~ [f3,a3,c4,e4]@4, ~@24 c3@8 [f2,c3]@31 ~, ~@7 g3@9]/4", // Cmaj7 Fmaj7 F Fmaj7 F5
  AF: "[[c3,e3,g3,b3,c4,e4]@24 [e3,g3,b3,c4]@4 [e3,b3,c4,e4]@3 ~ [f2,c3,f3,a3,c4,e4]@24 [a3,c4]@3 ~ [a3,c4,e4]@4, ~@24 c3@8 ~@24 [f2,c3,f3]@7 ~, ~@7 g3@2 ~@7]/4", // Cmaj7 Fmaj7 Am F5
  AG: "[c3,b3,c4,e4]@15 ~, g3@3 ~@5", AH: "[e4,e5]@2 ~ [d4,d5]@2 ~ [c4,c5]@2 ~@8, [f2,f3,a3], c4@3 ~@13",
})).s("gm_piano").gain(0.42)

// bass · electric bass finger · "FINGERDBAS"
const bass = note(`<
  A B@6 C D B E C@2 F C F G H I J K B@2 C D B E C@2 F C F G H I L M N@3 O E D E P Q R S@4 B@2 C D B E C@2 F C F G H I L
  T B@2 C D B E C@2 F C F G H I L M N@3 O E D E P Q R S@4 E D
>`.pickRestart({
  A: "~@7 g1", B: "c2 ~@2 c2 ~@2 g1@2 c2 ~@2 c2 ~@2 g1@2", C: "f2 ~@2 f2 ~@2 c2@2 f2 ~@2 f2 ~@2 c2@2",
  D: "f2 ~@2 f2 ~@2 c2@2 f2 ~@2 f2 ~@2 g1@2", E: "c2 ~@2 c2 ~@2 g1@2 c2 ~@2 c2 ~@2 c2@2",
  F: "g2 ~@2 g2 ~@2 d2@2 g2 ~@2 g2 ~@2 d2@2", G: "a2 ~@2 a2 ~@2 e2@2 a2 ~@2 a2 ~@2 e2@2",
  H: "g#2 ~@2 g#2 ~@2 d#2@2 g#2 ~@2 g#2 ~@2 d#2@2", I: "g2 ~@2 g2 ~@2 e2@2 g2 ~@2 g2 ~@2 e2@2",
  J: "g2 ~@2 g2 ~@2 e2@2 g2 ~@2 g2 ~@2 e1@2", K: "d2 ~@2 d2 ~@2 a1 g#1 g1 ~@2 g1 ~@2 g1@2",
  L: "g2 ~@2 g2 ~@2 e2@2 g2 ~@2 g2 ~@2 g1@2", M: "d2 ~@2 d2 ~@2 a1@2 g#1 ~@2 g#1 ~@2 g#1@2",
  N: "g1 ~@2 g1 ~@2 g1@2 g1 ~@2 g1 ~@2 g1!2", O: "g1 ~@2 g1 ~@2 g1@2 g1 ~@2 g1!2 ~ g1!2",
  P: "f2 ~@2 f2 ~@2 c2@2 f2 ~@2 f2 ~@2 f2@2", Q: "e2 ~@2 e2 ~@2 b1@2 e2 ~@2 e2 ~@2 c2@2",
  R: "a1 ~@2 a1 ~@2 a1@2 g#1 ~@2 g#1 ~@2 g#1@2", S: "g1 ~@2 g1 ~@2 g1@2 g1 ~@2 g1 ~@2 g1@2",
  T: "d2 ~@2 d2 ~@2 a1@2 g1 ~@2 g1 ~@2 g1@2",
})).s("gm_electric_bass_finger").gain(0.35)

// chords · electric guitar clean · "CLEAN GTR"
const electric_guitar_clean = note(`<
  ~@13 A B C D E F G H I J K L I J K L C B C D E F G M N O P@2 F Q F Q R S T ~@3 I J K L I J K L C B C D E F G H I J K L
  I J K L C B C D E F G M N U@3 F Q F Q R S V ~@5
>`.pickRestart({
  A: "[d4,g4] ~@2 [g3,b3,d4,g4]!4 ~ [g3,b3,d4,g4] ~@2 [g3,b3,d4,g4]!4 ~", // G5 G
  B: "[c4,f4,a4,c5] ~@2 [c4,f4,a4,c5]!4 ~ [c4,f4,a4,c5] ~@2 [c4,f4,a4,c5]!4 ~", // F
  C: "[g3,b3,d4,g4] ~@2 [g3,b3,d4,g4]!4 ~ [g3,b3,d4,g4] ~@2 [g3,b3,d4,g4]!4 ~", // G
  D: "[c4,e4,a4,c5] ~@2 [c4,e4,a4,c5]!4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b4] ~@2 [b3,e4,g4,b4]!4 ~", // Em
  S: "[a3,c4,e4,a4] ~@2 [a3,c4,e4,a4]!4 ~ [g#3,c4,d#4,g#4] ~@2 [g#3,c4,d#4,g#4]!4 ~", T: "[g3,b3,d4,g4]",
  U: "[[g3,b3,f4]@7 ~ [g3,g4]@7 ~ [a3,c4,d4,f4]@7 ~ [g3,d4,f4]@7 ~ [a3,c4,d4,f4]@7 ~ [g3,b3,d4,f4]@7 ~, ~ b3@2 b3@2 ~]/3", // G7 G Dm7 G7 Dm7 G7
  V: "[g3,b3,d4,g4] ~@15", // G
})).s("gm_electric_guitar_clean").gain(0.2).pan(0.3)

// other · string ensemble 1 · "STRINGS"
const string_ensemble_1 = note("<~@67 A B@2 C D B@2 E F G F H I J@2 K L M N O H P Q P R S L M N O Q P>".pickRestart({
  A: "~ [a4,a5]", B: "[[b4,b5] [c5,c6]@2 [d5,d6]]/2", C: "[e5,e6] [d5,d6]", D: "[g4,g5] [a4,a5]",
  E: "[e5,e6]@8 [d5,d6]@3 ~ c5@4, ~@11 c6@4 ~", F: "[d5,d6]", G: "[c5,c6]", H: "[e5,e6]", I: "[d#5,d#6]",
  J: "[e5,e6]/2", K: "[d5,d6] [c5,c6]", L: "[d4,d5] [e4,e5]", M: "[f4,f5] [g4,g5]", N: "[a4,a5] [b4,b5]",
  O: "[c5,c6] [d5,d6]", P: "[e5,e6]@3 [d5,d6]@3 [c5,c6]@2 [e5,e6]@3 [d5,d6]@3 [c5,c6]@2", Q: "[e5,e6]@15 ~",
  R: "[b4,b5]@3 [c5,c6]", S: "[a4,a5] [g#4,g#5]",
})).s("gm_string_ensemble_1").gain(0.23)

// chords · synth strings 1 · "SYN STR 1"
const synth_strings_1 = note(`<
  ~@21 A B@3 C@5 D E@3 F G H I@6 J@2 K L@5 M@2 N@2 M@2 N@2 O D E@3 F G P M@2 N@2 M@2 N@2 O D E@3 F G H I@6 J@2 K Q@7
>`.pickRestart({
  A: "~ a3", B: "[b3@8 ~@8 c4@8 d4@7 e4@9 d4@8, ~@8 a3@9 ~@31, ~@15 f4@32 ~]/3",
  C: "[g3@8 a3@8 b3@8 a3@7 ~@9 d4@8 e4@8 d4@8 [b3,d4,g4]@16, c4@31 c4@8 ~@41, ~@32 f4@33 ~@15]/5", D: "[a3,c4,f4]",
  E: "[[b3,d4,g4]@15 ~ [c4,a4]@15 ~ [c4,d#4]@16, ~@15 e4@16 g#4@16 ~]/3", F: "[c4,e4,g4]", G: "[c#4,e4,g4]",
  H: "[a3,e4] [g#3,d4], [c4,f4]", // A5 G#dim F5
  I: "[d4@8 e4@8 f4@8 g4@7 ~ a4@7 [g4,b4]@8 ~ [a4,c5]@8 [b4,d5]@7 ~ [g4,c5]@15 ~@4 d5@2 c5@3 e5@2 d5@3 c5@2 ~, g3@4 ~ [f4,a4], ~@31 f4@8 ~@24 e4@16 e5@3 ~@14]/6", // G Am Bm C5 F
  J: "[[e4,g4,c5]@15 ~@4 d5@2 c5@3 e5@3 d5@2 c5@2 ~, ~@15 e5@3 ~@14, ~ [f4,a4]]/2", K: "[d4,e4,g4,b4]@3 [e4,g4,c5]",
  L: "[[c4,e4,a4]@7 ~ [c4,d#4,g#4]@7 [g3,g4]@63 ~@2]/5", M: "[b3,c4,e4,g4]/2", N: "[a3,c4,e4,g4]/2", O: "[b3,d4,g4]",
  P: "[c4,f4] [b3,f4], d4", // F5 Bdim
  Q: "[[c4,e4,a4]@7 ~ [c4,d#4,g#4]@7 d4@8 e4@8 f4@8 g4@8 [f4,a4]@8 [g4,b4]@8 [a4,c5]@8 ~ d5@7 ~ [g4,c5]@15 ~@4 d5@2 c5@3 e5@2 d5@3 c5@2 ~, ~@15 g3@63 ~@18 [f4,a4]@15 ~, ~@71 b4@7 ~ e4@16 e5@3 ~@14]/7", // Am G# F G Am C5 F
})).s("gm_synth_strings_1").gain(0.18)

// drums · kick
const kick = s("bd").struct("<~ [x!4]!98>").gain(0.48)

// drums · snare
const snare = s("sd").struct(`<
  ~@23
  [~ x ~ x]!17
  [~@4 x ~@3 x ~ x ~ x!4]
  [~ x ~ x]!45
  [~@4 x ~@3 x ~ x ~ x!4]
  [~ x ~ x]!9
  [~@4 x ~@3 x ~ x ~ x!4]
  [~ x ~ x]!2
>`).gain(0.56)

// drums · hihat
const hihat = s("hh").struct(`<
  [~@14 x!2]
  [x!2 ~ x!2 ~ x!4 ~ x!2 ~ x!2]!39
  [x!2 ~ x!2 ~ x!4 ~ x!2 ~@3]
  [x!2 ~ x!2 ~ x!4 ~ x!2 ~ x!2]!45
  [x!2 ~ x!2 ~ x!4 ~ x!2 ~@3]
  [x!2 ~ x!2 ~ x!4 ~ x!2 ~ x!2]!11
  [x!2 ~ x!2 ~ x!4 ~ x!2 ~ x ~]
>`).gain(0.4)

// drums · hihat · soft notes
const hihat_soft = s("hh").struct("<~ [~@5 x ~@2]!98>").gain(0.08)

// drums · tambourine
const tambourine = s("tb").struct("<~@3 [x!16]!37 [x!13 ~@3] [x!16]!45 [x!13 ~@3] [x!16]!11 [x!15 ~]>").gain(0.32)

// drums · congas
const congas = s("conga:13").struct(`<
  ~@47
  [~@3 x ~ x ~ x]!2
  [~@3 x ~@3 x]
  [~@6 x ~@3 x ~@2 x!2 ~]
  [~@3 x ~ x ~ x]!44
  [~@3 x ~@3 x]
  [~@6 x ~@3 x ~@2 x!2 ~]
  [~@3 x ~ x ~ x]!2
>`).gain(1.02)

// drums · congas
const congas_2 = s("conga:18").struct("<~@47 [~@8 x ~@2 x ~@4]!52>").gain(1.02)

// drums · congas
const congas_3 = s("conga:33").struct("<~@47 A B@2 C A B@44 C B C>".pickRestart({
  A: "x ~@2 x ~@11 x", B: "~@3 x ~@11 x", C: "~@3 x ~@12",
})).gain(1.02)

// drums · claves
const claves = s("clave:2").struct("<~@23 A@18 B@6 C@3 D A@36 B@6 C@3 D B@2>".pickRestart({
  A: "x ~@2 x ~@2 x ~@9", B: "x ~@2 x ~@2 x ~ x ~@2 x ~@2 x ~", C: "x ~@2 x!2 ~@2 x",
  D: "~ x ~ x ~@2 x ~@2 x ~ x ~@2 x ~",
})).gain(1.96)

stack(
  piano, bass, electric_guitar_clean, string_ensemble_1, synth_strings_1, kick, snare, hihat, hihat_soft, tambourine,
  congas, congas_2, congas_3, claves
)