Strudelify
KeyG majorTempo125 bpm
0:00/0:00
// Le Roi — Brassens Georges
// 125 bpm, 4/4, key G major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: metre changes (4/4 at bar 1, 2/4 at bar 15, 4/4 at bar 15, 2/4 at bar 27, ...) are rendered on a constant 4/4 grid of one bar per cycle
// note: Full arrangement: all 115 bars on a 16-step grid, each part at one level. Source detail keeps the original performance.
setcpm(125/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 · acoustic guitar nylon · "Alto"
const acoustic_guitar_nylon = note(`<
  A@4 B C B D B C B D E F G@2 H I J K L I J K M N O P@2 B C B D B C B D E F G@2 H I J K L I J K M N O P@2 B C B D B C B
  D E F G@2 H I J K L I J K M N O P@2 B C B D B C B D E F G@2 H I J K L I J K M N O P@2 B C B D B C B D E F Q
>`.pickRestart({
  A: "~ [b3,d4,f#4] ~ [b3,d4,f#4]", B: "d4@3 b3 d4@3 f#4", C: "c4@2 a3!2 a3@2 ~@2", D: "c4@2 b3 a3 b3@2 ~@2, ~ f#3 ~@2",
  E: "~@3 f#4 g4@2 [c4,e4,a4]@2, e4@3 ~@5, ~ [g3,b3] ~@2", F: "f#4@2 f#4 e4 d4@2 c4 d4, ~ [a3,d4] ~ f#3",
  G: "[e4 f#4 d4 c4 b3@12]/2", H: "~@4 d4@3 b3", I: "d4@3 f#4 c4@2 a3!2", J: "a3@2 ~@2 d4@3 b3",
  K: "d4@3 f#4 c4@2 b3 a3, ~@3 f#3", L: "b3@2 ~@2 d4@3 b3", M: "b3@2 ~@5 f#4, ~@4 e4@3 ~, ~@3 [g3,b3]",
  N: "g4@2 [c4,e4,a4]@2 f#4@2 f#4 e4, ~@3 [a3,d4]", O: "d4@2 c4 d4 e4 f#4 d4 c4, ~ f#3 ~@2", P: "[b3@3 ~]/2",
  Q: "e4 f#4 d4 c4 b3@4",
})).s("gm_acoustic_guitar_nylon").gain(0.4).pan(0.9)

// bass · acoustic bass · "Basso"
const bass = note(`<
  A@4 B C B D B C E F G H I J K L M N O L M P Q R S T@2 B C B D B C E F G H I J K L M N O L M P Q R S T@2 B C B D B C E
  F G H I J K L M N O L M P Q R S T@2 B C B D B C E F G H I J K L M N O L M P Q R S T@2 B C B D B C E F G H U
>`.pickRestart({
  A: "b2 ~ f#2 ~", B: "b1 [d3,f#3] b1 [f#3,b3]", C: "f#2 [f#2,c3,f#3] f#2 [c3,f#3]", D: "f#2!2 b2 [d3,f#3]",
  E: "b1 [d3,f#3] b1 [d3,b3]", F: "f#2@2 f#2@2 b2 a2 g2 f#2, ~@3 [d3,f#3]", G: "e2 ~ a2!2", H: "d2 ~ b1 ~",
  I: "e2 [f#2,e3,a#3] b2 [d3,f#3]", J: "f#2 [d3,f#3] b2 [d3,f#3]", K: "f#2 [d3,f#3] b1 [d3,f#3]",
  L: "b1 [f#3,b3] f#2 [f#2,c3,f#3]", M: "f#2 [c3,f#3] b1 [d3,f#3]", N: "b1 [f#3,b3] f#2!2",
  O: "b2 [d3,f#3] b1 [d3,f#3]", P: "b1 [d3,b3] f#2!2", Q: "b2 a2 g2 f#2 e2@2 ~@2, ~ [d3,f#3] ~@2", R: "a2!2 d2 ~",
  S: "b1 ~ e2 [f#2,e3,a#3]", T: "b2 [d3,f#3] f#2 [d3,f#3]", U: "e2 [f#2,e3,a#3] [b1,d3,f#3]@2",
})).s("gm_acoustic_bass").gain(0.4).pan(0.1)

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

// drums · snare
const snare = s("sd").struct("<A@4 ~@12 B ~@11 C ~@12 B ~@11 C ~@12 B ~@11 C ~@12 B ~@11 C ~@11>".pickRestart({
  A: "x ~@2 x", B: "~ x ~@2", C: "~@3 x",
})).gain(0.4)

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

// drums · low tom
const low_tom = s("lt").struct("<A@4 ~@12 B ~@11 A ~@12 B ~@11 A ~@12 B ~@11 A ~@12 B ~@11 A ~@10 C>".pickRestart({
  A: "~ x", B: "x", C: "x!2 ~@2",
})).gain(0.4)

// drums · open hat
const open_hat = s("oh").struct(`<
  ~@4 A B C ~ D E F ~ G@2 ~@2 H@2 I@2 J K L M N G E ~@2 A B C ~ D E F ~ G@2 ~@2 H@2 I@2 J K L M N G E ~@2 A B C ~ D E F
  ~ G@2 ~@2 H@2 I@2 J K L M N G E ~@2 A B C ~ D E F ~ G@2 ~@2 H@2 I@2 J K L M N G E ~@2 A B C ~ D E F ~ G@2 ~
>`.pickRestart({
  A: "~ x ~ x ~@4", B: "~ x ~ x ~@3 x", C: "~@7 x", D: "x!4", E: "x", F: "~@2 x!6", G: "x!2", H: "~@5 x ~ x",
  I: "~@3 x ~@4", J: "~@2 x!2", K: "x!3 ~", L: "~@6 x!2", M: "x!4 ~@4", N: "~ x",
})).gain(0.4)

// drums · splash
const splash = s("cr").struct("<~@14 A ~@12 B ~@11 A ~@12 B ~@11 A ~@12 B ~@11 A ~@12 B ~@11 A>".pickRestart({
  A: "~ x", B: "x",
})).gain(0.4)

stack(acoustic_guitar_nylon, bass, kick, snare, hihat, low_tom, open_hat, splash)

More by Brassens Georges