Strudelify

Let's All Chant

Michael Zager

KeyE minorTempo115 bpm
0:00/0:00
// Let's All Chant — Michael Zager
// 115 bpm, 4/4, key E minor. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: pitch bends are ignored
// note: sustain pedal (CC 64) lengthens the held notes
// note: Full arrangement: all 93 bars on a 16-step grid, each part at one level. Source detail keeps the original performance.
setcpm(115/4)

// Notation: c3@3 lasts 3 steps · ~ is a rest · [c3,e3] is a chord · "a, b" plays two voices at once.
// A part's distinct bars are riffs (A, B, C...) played in order: edit a riff to change every repeat.

// bass · electric bass finger
const bass = note(`<
  ~@4 A@15 B C D C D C D C D A@15 B C D C D C D C D E F E G H I J K J K E F E G H I J K J K C D C D C D C D C D C D C D
  C D A@4 L
>`.pickRestart({
  A: "e3 b2 d3 d#3 e3 b2 d3 d#3", B: "e3@2 b2@2 d3@2 d#3 ~ e4@7 ~", C: "e3 e4 e3 d3 c3 c4 e3 e4",
  D: "d3 d4 d3 c3 b2 b3 d3 d4", E: "e3@5 ~ d3 ~ c3@3 ~ e3@3 ~", F: "d3@5 ~ c3 ~ b2@3 ~ d3@3 ~",
  G: "d3@3 ~ a2@3 ~ b2@3 ~ b3 ~ f#3@2", H: "e3@4 ~@2 d3 ~ c3@2 ~@2 c3 ~ e3@2", I: "d3@4 ~@2 c3 ~ b2@3 ~ b2 ~ d3@2",
  J: "e3@3 ~ d3@3 ~ c3@3 ~ b2@3 ~", K: "a2@3 ~ g2@3 ~ f#2@5 ~@3", L: "e3@3 ~@13",
})).s("gm_electric_bass_finger").gain(0.45)

// chords · piano
const piano = note(`<
  ~@4 A@8 B A C A B A C A D E F G H G H I A@8 B A C A B A C A D E F G H G H I J K J L M N O P O P J K J L M N O P O P D
  E F G H G H I D E F E H G H I A@4 Q
>`.pickRestart({
  A: "e3 b2 d3 d#3 e3 b2 d3 d#3",
  B: "[g3,b3] ~ [e3,g3,b3] ~ [e3,g3,b3] ~ [e3,g3,b3] ~ e3@2 b2@2 d3@2 d#3@2, e3 b2 d3 d#3 ~@4", // G Em
  C: "[g3,b3] ~ [e3,g3,b3] ~ [e3,g3,b3] ~ [d#3,b3]@2 e3@2 b2@2 d3@2 d#3@2, e3@2 b2@2 d3@2 [e3,g3] ~@9", // G Em G#m Em
  D: "[e4,g4,b4,e5]@3 d4 c4@2 e4@2, ~@8 [g4,c5,e5]@7 ~", E: "[d4,f#4,a4,d5]@3 c4 [b3,f#4,d5]@2 d4@2, ~@8 b4@7 ~",
  F: "e4@3 d4 c4@2 e4@2, [g4,b4,e5]@8 [g4,c5,e5]@7 ~", G: "[d4,f#4,a4,d5]@3 c4 [b3,f#4,d5]@2 d4@2, ~ b4",
  H: "[e4,g4,b4,e5]@3 d4 [c4,e5]@2 e4@2, ~@8 [g4,c5]@7 ~", I: "[d4,f#4,a4,d5]@6 c4@2 [b3,f#4,b4,d5]@4 d4@3 ~",
  J: "e3@5 ~ d3 ~ c3@3 ~ e3@3 ~", K: "d3@5 ~ c3 ~ b2@3 ~ d3@3 ~", L: "d3@3 ~ a2@3 ~ b2@3 ~ b3 ~ f#3@2",
  M: "e3@4 ~@2 d3 ~ c3@2 ~@2 c3 ~ e3@2", N: "d3@4 ~@2 c3 ~ b2@3 ~ b2 ~ d3@2", O: "e3@3 ~ d3@3 ~ c3@3 ~ b2@3 ~",
  P: "a2@3 ~ g2@3 ~ f#2@5 ~@3", Q: "e3@3 ~@13",
})).s("gm_piano").gain(0.35)

// chords · electric guitar muted
const electric_guitar_muted = note("<~@12 A B A B A B A B ~@16 A B A B A B A B ~@49>".pickRestart({
  A: "~@2 [g4,b4,e5]!2 ~@6 [g4,b4,e5]!2 ~@2 [g4,b4,e5] ~", // Em
  B: "~@2 [g4,b4,e5]!2 ~@6 [g4,b4,e5]!2 [g4,b4,e5]@2 [g4,b4,e5] ~", // Em
})).s("gm_electric_guitar_muted").gain(0.23)

// chords · string ensemble 1
const string_ensemble_1 = note(`<
  ~@20 A B A B A B A B ~@16 A B A B A B A B ~@20 A B A B A B A B A B A B A B A B ~@5
>`.pickRestart({
  A: "[e4,g4,b4,e5] [c4,g4,c5,e5]", B: "[d4,f#4,a4,d5] [b3,f#4,b4,d5]",
})).s("gm_string_ensemble_1").gain(0.25)

// other · clarinet
const clarinet = note("<~@52 A B A C D E F G H I A B A C D E F G J K ~@21>".pickRestart({
  A: "g3@2 e4 c4", B: "f#3@7 ~ b4 f#4 d4 b3 f#3@4", C: "f#3@7 ~ f#4 d4 f#4 [a4,b4] f#5 d5 b4 f#4",
  D: "g4@2 ~@4 b3 ~ e4 d4 c4 e4 c5 b4 a4 g4", E: "f#4@3 ~@3 d4 ~ b3 d4 f#4 g4 b4 c5 b4 a4",
  F: "g4@2 ~@2 f#4@3 ~ e4@2 ~@2 d4@3 ~", G: "c4@3 ~ b3@3 ~ a3@5 ~@3", H: "g4@2 ~@2 f#4@2 ~@2 e4@3 ~ d4@3 ~",
  I: "c4 ~ b3 ~ d4@2 ~@2", J: "e5 d#5 e5 f#5 g5 f#5 g5 a5 b5 ~ [a5,b5] a5 g5 ~ f#5 ~",
  K: "b5 ~ [a5,b5] a5 g5 ~ d5 ~ d6@5 ~@3", // Asus2
})).s("gm_clarinet").gain(0.39)

// other · harpsichord · Gsus2 Asus2
const harpsichord = note(`<
  ~@60
  [e4 d#4 e4 f#4 g4 f#4 g4 a4 b4 ~ a4 b4 [g4,a4] ~ f#4 ~]
  [b4 ~ [a4,b4] a4 g4 ~ f#4 ~ d5@4 ~@4]
  ~@31
>`).s("gm_harpsichord").gain(0.52)

// other · trumpet
const trumpet = note("<~@61 A B C B D E F B D ~@23>".pickRestart({
  A: "~@8 d5 c#5 d5 e5 f#5 e5 f#5 a5", B: "[g5,a5] g5 f#5 g5 a5 ~ g5 ~ [g5,a5] g5 f#5 g5 a5 ~ g5 ~",
  C: "f#5 ~ f#5 g5 a5 ~ f#5 ~ d5@2 ~@3 d5 e5 f#5", D: "f#5 ~ f#5 g5 a5 ~ f#5 ~ d6@4 ~@4",
  E: "~@2 b5!3 ~ g5!3 ~ e5 ~ e5@3 ~", F: "~@2 a5!3 ~ f#5!3 ~ d5 ~ d5@2 ~@2",
})).s("gm_trumpet").gain(0.62)

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

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

// drums · clap
const clap = s("cp").struct("<[~@5 x!3]!20 ~@8 [~@5 x!3]!16 ~@44 [~@5 x!3]!4 ~>").gain(0.5)

// drums · hihat
const hihat = s("hh").struct(`<
  ~@5 A B A ~ A B A ~ A B A ~ A B A C@8 ~ A B A ~ A B A ~ A B A ~ A B A C@8 ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A C@16
  ~ A B A ~
>`.pickRestart({
  A: "~@3 x", B: "x", C: "x!8",
})).gain(0.5)

// drums · low tom
const low_tom = s("lt").struct("<~@27 A ~@23 A ~@27 A ~@7 A ~@5>".pickRestart({
  A: "~@7 x",
})).gain(0.5)

// drums · mid tom
const mid_tom = s("mt").struct("<~@27 A ~@23 A ~@27 A ~@7 A ~@5>".pickRestart({
  A: "~@6 x ~ x ~ x!3 ~@3",
})).gain(0.5)

// drums · open hat
const open_hat = s("oh").struct(`<
  ~@5 A ~ A ~ A ~ A ~ A ~ A ~ A ~ A B@8 ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A B@8 ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A B@16
  ~ A ~ A ~
>`.pickRestart({
  A: "~@7 x", B: "~@5 x ~ x",
})).gain(0.5)

// drums · high tom
const high_tom = s("ht").struct("<~@27 A ~@23 A ~@27 A ~@7 A ~@5>".pickRestart({
  A: "~ x ~@2",
})).gain(0.5)

// drums · crash
const crash = s("cr").struct(`<
  ~@4 A ~@7 A ~@7 A ~@7 A ~@7 A ~@7 A ~@7 A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~@5 A ~@7 A ~@7 A ~@3 A
>`.pickRestart({
  A: "x",
})).gain(0.5)

// drums · shaker
const shaker = s("sh").struct("<~@4 A@16 B ~@7 A@16 B ~@7 A@20 B ~@7 B ~@7 A@4 ~>".pickRestart({
  A: "x ~ x!3 ~ x!3 ~ x!3 ~ x!2", B: "x",
})).gain(0.5)

stack(
  bass, piano, electric_guitar_muted, string_ensemble_1, clarinet, harpsichord, trumpet, kick, snare, clap, hihat,
  low_tom, mid_tom, open_hat, high_tom, crash, shaker
)