Strudelify
0:00/0:00
// warszawianka — Kompozytor: Józef PÅawiÅskiAranżacja: Franciszek KÅonowski
// 120 bpm, 4/4, key G major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: Transcription provider: pdmx. https://musescore.com/score/6064171; license: https://creativecommons.org/publicdomain/zero/1.0/
// note: Full arrangement: all 50 bars on a 16-step grid, each part at one level. Source detail keeps the original performance.
setcpm(120/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.

// chords · piano
const piano = note(`<
  A B C D E B C D F G H I J K L M N G H I J K L M O P B C D E B C D F G H I J K L M N G H I J K L M Q
>`.pickRestart({
  A: "[g#2,c3,d#3,f#3,g#4]@4 [g2,b2,e3,g4]@3 [g2,b2,d#3,d#4] [g2,b2,d3,g4]@4 [g#2,b2,d3,g#4]@4", // G#7 Em Gaug G G#dim
  B: "[e2,a2,c3,a3]@4 [e2,a2,c3,a3]@3 [e2,a2,c3,g3] [g2,b2,d3,f3]@4 [g2,b2,d3,e3]@4", // Am Am7 G7 Em7
  C: "[f2,a2,d3]@4 [f2,a2,d3]@3 [f2,a2,d3] [f2,a2,c#3]@4 [f2,a2,d3]@4", // Dm Faug Dm
  D: "[e2,g#2,b2,e3]@4 [e2,g#2,b2,e3]@3 [e2,g#2,b2,e3] [e2,g2,b2]@4 [e2,g2,c#3]@4", // E Em C#dim
  E: "[d2,g2,b2,d3]@4 [d2,g2,b2,d3]@3 [e2,g2,b2,d3,e3] [f2,g2,b2,d3,f3]@4 [f2,g2,b2,d3,g3]@4", // G Em7 G7
  F: "[d2,g2,b2,d3]@2 [f2,g2,b2,d3,f3] [e2,g2,c3,e3] [e2,g2,c3,d3]@2 [e2,g2,a#2,c3]@2", // G G7 C C7
  G: "[f2,c3,f3]@4 [f2,f3]@2 c3 f3 [f2,c3]@2 ~ f3 [f2,f3]@2 c3 f3, ~@5 c3 ~@2", // F5 F F5 F
  H: "[g2,d3,g3]@4 [g2,g3]@2 d3 g3 [g2,c3]@2 ~ g3 [g2,g3]@2 d3 g3, ~@5 c3 ~@2", // G5 G C5 G
  I: "[a2,e3,a3]@4 [a2,a3]@2 e3 a3 a2@2 e3 a3 a2@2 e3 a3, ~@4 d4@3 c4", // A5 A
  J: "[b2,g3,b3]@4 [b2,b3]@2 g3 [a3,b3] [b2,b3]@2 g3 b3 [b2,b3]@2 g3 b3", // Em B Asus2 B
  K: "[e2,b2,e3,b3]@4 [e2,b3]@2 b2 [e3,b3] e2@2 b2 e3 e2@2 c3 e3, ~@4 e4@3 c4", // E5
  L: "[a2,e3,a3]@4 [a2,a3]@2 e3 g#3 [a2,a3]@2 e3 a3 a2@2 e3 a3, ~@3 c4", // A5 A
  M: "[d2,a2,d3,b3]@4 [d2,b3]@2 a2 [d3,b3] d2@2 a2 d3 d2@2 a2 d3, ~@2 e3 f#3", // Bm7 G
  N: "[g2,d3,g3]@4 [g2,a#3]@2 d3 [g3,a3] g2@2 d3@2 [f2,c3,f3]@2 [g2,c3,e3]@2, ~@2 g3 ~", // G5 Gm Gsus2 F5 C
  O: "[g2,d3,g3]@3 g3 [g2,a#3]@2 d3 g3 [g2,g3]@2 d3 ~ g2@2 d3 g3, ~@6 a3@2 ~@3 g3@4 ~", // G5 Gm G
  P: "g2@2 b2 f3 g2@2 b2 f3 a2@2 c3 e3 a2@2 c3 e3, [g3,d4] [b3,f4] [c4,e4] [a3,e4]", // G5 Bdim C A5
  Q: "[g2,d3,g3]@3 g3 [g2,a#3]@2 d3 g3 [g2,d3,g3,a#3]@8, ~@3 a3 ~@4", // G5 Gm
})).s("gm_piano").gain(0.36)

// bass · electric bass pick · "Electric Bass"
const bass = note(`<
  A B C D E B C D F G H I J K I L M G H I J K I L N O B C D E B C D F G H I J K I L M G H I J K I L P
>`.pickRestart({
  A: "g#1@4 e1@3 e1 e1@4 g#1@4", B: "a1@2 a1@2 a1@3 a1 g1@4 g1@4", C: "f1@2 f1@2 f1@3 f1 f1@4 f1@4",
  D: "e1@2 e1@2 e1@3 e1 e1@4 e1@4", E: "g1@2 g1@2 g1@3 g1 g1@4 g1@4", F: "g1@2 g1 c2 c2@2 c2@2",
  G: "f1@2 c2@2 f1@3 c2 f1@2 c2@2 f1@2 c2@2", H: "g1@2 d2@2 g1@3 d2 g1@2 c2@2 g1@2 d2@2",
  I: "a1@2 e2@2 a1@3 e2 a1@2 e2@2 a1@2 e2@2", J: "b1@2 g1@2 b1@3 g1 b1@2 g1@2 b1@2 g1@2",
  K: "e1@2 b1@2 e1@3 b1 e1@2 b1@2 e1@2 c2@2", L: "d2", M: "g1@3 c2", N: "g1", O: "b1@2 c2 a1",
  P: "g1@3 g1 g1@2 g1@2 g1@8",
})).s("gm_electric_bass_pick").gain(0.39)

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

// drums · snare
const snare = s("sd").struct(`<
  [x!4]!9
  [x ~@3 x ~ x!3 ~ x!3 ~ x!2]!16
  [x ~@3 x ~@2 x!2 ~@2 x!2 ~@3]
  [x!4]!8
  [x ~@3 x ~ x!3 ~ x!3 ~ x!2]!15
  [x ~@2 x!2 ~ x ~ x ~@7]
>`).gain(0.17)

// drums · crash
const crash = s("cr").struct("<A ~ B@4 ~ B C B@6 ~ D C@3 B@3 ~ B ~ B@7 C@4 B@5 C@6 B E>".pickRestart({
  A: "x!4", B: "x", C: "x!2", D: "~@3 x", E: "x!3 ~",
})).gain(0.17)

stack(piano, bass, kick, snare, crash)