Strudelify

unravel

Kitseru

KeyG minorTempo135 bpm
0:00/0:00
// unravel — Kitseru
// 135 bpm, 4/4, key G 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: Transcription provider: pdmx. https://musescore.com/score/1485446; license: https://creativecommons.org/publicdomain/zero/1.0/
// note: Full arrangement: all 44 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(135/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 · electric guitar clean · "Guitare électrique"
const electric_guitar_clean = note("<A B C D E F G F E H I ~ J K L@4 ~@26>".pickRestart({
  A: "~@7 d5, eb3@3 eb3@3 bb4@2, ~ bb3@3 bb3@4, ~ g4@3, ~@5 f4@3",
  B: "~@7 d4, g3@3 g3@3 g3@2, ~ [d4,c5]@3 c5@4, ~@2 [bb4,d5]@3 [bb4,d5]@3, ~@4 d4@3 ~", // D7 Bb
  C: "~@7 c5, f3@3 f3@3 bb4@2, ~ c4@3 c4@4, ~ a4@3, ~@5 f4@3", D: "g3 [d4,c5] [bb4,d5] g3 [d4,c5] [bb4,d5] g3 d4",
  E: "~@7 bb3, eb3@3 eb3@3 eb3@2, ~ bb3@3 bb3@3 ~, ~@2 g4@3 g4@3",
  F: "~@7 d4, g3@3 g3@3 g3@2, ~ d4@3 d4@3 ~, ~@2 bb4@3 bb4@3",
  G: "~@7 c4, f3@3 f3@3 f3@2, ~ c4@3 c4@3 ~, ~@2 a4@3 a4@3",
  H: "~@7 d4, [g3,f4]@3 [g3,f4]@3 [g3,f4]@2, ~ [d4,c5]@3 c5@4, ~@2 [bb4,d5]@3 [bb4,d5]@3, ~@4 d4@3 ~", // G7 D7 Bb
  I: "f3 c4 a4 f3 c4 a4 f3 ~", J: "g3@3 g3@2 g3 g3@2 g3@3 g3@2 g3 g3@2",
  K: "bb4 g4 a4 bb4 g4 a4 bb4 g4 bb4 g4 a4 bb4 g4 a4 bb4@2", L: "g5 d5 bb4 d5 g5 d5 bb4 d5 g5 d5 bb4 d5 g5 d5 bb4 d5",
})).s("gm_electric_guitar_clean").gain(0.25)

// bass · electric bass finger · "Basse électrique"
const bass = note("<~@7 A B C D ~@2 E F G F G H@2 ~@7 I J K L I M K L N O P Q N R ~@3>".pickRestart({
  A: "~@6 d3@2 bb3@3 a3@3 f3@2", B: "eb3", C: "g3@2 ~ f3 bb3@2 a3@2", D: "f3",
  E: "g1 g1@2 g1@2 g1!2 ~ g1 g1@2 g1@2 g1!2 ~", F: "g2 f2", G: "eb2 d2", H: "g2/2",
  I: "eb2@3 eb2@3 eb2@2 eb2@3 eb2@3 eb2@2", J: "f2@3 f2@3 f2@2 f2@3 c3@3 f2@2", K: "g2@3 g2@3 g2@2 g2@3 g2@4 ~",
  L: "d2@3 d2@3 d2@2 d2@3 a1@3 d2@2", M: "f2@3 f2@3 f2@2 f2@3 f2@3 f2@2", N: "eb2!8", O: "f2!8", P: "g2!8", Q: "d2!8",
  R: "f2",
})).s("gm_electric_bass_finger").gain(0.4)

// other · piccolo · "Flûte aiguë"
const piccolo = note("<A@8 B@3 ~@33>".pickRestart({
  A: "[~ c6, d6@3 ~]/4", B: "[~@2 c6, d6]/3",
})).s("gm_piccolo").gain(0.4)

// chords · piano
const piano = note("<A ~@11 B ~@6 C D E F ~@21>".pickRestart({
  A: "~ d6@7, d5, ~ [g5,bb5]@15", // Gm
  B: "bb4 [d4,g4] [g4,a4] bb4 [d4,g4] [g4,a4] ~ [d4,g4] bb4 [d4,g4] [g4,a4] bb4 [d4,g4] [g4,a4] ~ d4, g3@15 ~, d5@3 c5@3 bb4@2 d5@3 c5@3 bb4@2", // G5 Gsus2 G5 Gsus2 G5 Gsus2 G5 Gsus2
  C: "[g3,g4,bb4]@15 ~", D: "~ [f4,bb4]@15, [eb3,eb4]", E: "~@3 c5@4 ~, [f3,c4,f4,a4]@15 ~", F: "~@3 bb4@4 ~, bb2@15 ~",
})).s("gm_piano").gain(0.25)

// other · viola · "Viole de gambe alto"
const viola = note("<~@23 [bb3 ~ g3!2 ~@2 c4 ~ bb3 ~ g3!2 ~@2 c4 ~]!3 ~@15 g3 ~@2>").s("gm_viola").gain(0.45)

// other · violin · "Erhu"
const violin = note("<~@18 A ~@4 B@3 ~ C D C E C D C E C D C E C D ~@3>".pickRestart({
  A: "g4 bb4 ~ g4 ~@2 c5 ~ g4 bb4 ~ g4 ~@2 c5 ~", B: "bb4 ~ a4!2 ~@2 a4 ~ bb4 ~ a4!2 ~@2 a4 ~", C: "bb4", D: "a4",
  E: "a4 f4",
})).s("gm_violin").gain(0.8)

// chords · koto
const koto = note(`<
  ~@41
  [~ g4 d4 ~ g4 d4 bb4@8 ~@2, d5@3 c5@3 ~@10]
  [~@3 bb4@5, d5, ~ g4@2 c5@13, ~ d4 g4@6, ~@5 d4@11]
  ~
>`).s("gm_koto").gain(0.3)

// chords · koto
const koto_2 = note("<~@41 A B@2>".pickRestart({
  A: "~ d4 g4 a4 g4 a4 bb4 d5 g4 bb4 a4 bb4 c5 bb4 a4 bb4, g3",
  B: "[~ d4 g4 a4 g4 a4 bb4 d5 g4 bb4 a4 bb4 c5 bb4 a4 bb4@17, g3 ~]/2",
})).s("gm_koto").gain(0.25)

// drums · kick
const kick = s("bd").struct("<~@19 A@3 ~ B@3 ~ C@8 D@3 E D ~@4>".pickRestart({
  A: "~@3 x ~@4", B: "x!4", C: "x ~@2 x ~@2 x ~@5 x ~@3", D: "x!2", E: "x ~@8 x ~ x ~@4",
})).gain(0.5)

// drums · kick · soft notes
const kick_soft = s("bd").struct("<x!11 ~@8 x!4 ~@21>").gain(0.2)

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

// drums · low tom
const low_tom = s("lt").struct("<~@11 [~@15 x] ~@14 [~@3 x] ~@17>").gain(0.5)

// drums · hihat
const hihat = s("hh").struct("<A@10 ~@9 B C D E F@2 G ~@9 H@5 ~@4>".pickRestart({
  A: "x ~ x!6 ~@4 x!4", B: "x ~ x!5 ~@5 x ~ x!2", C: "~@2 x!5 ~@3 x ~ x ~@3", D: "~@3 x!2 ~@5 x ~ x!4",
  E: "~@6 x ~@3 x!3 ~@3", F: "x ~ x!3 ~ x!3 ~ x!3 ~ x!2", G: "x ~ x!3 ~ x!3 ~ x!2 ~@4", H: "x!16",
})).gain(0.45)

// drums · mid tom
const mid_tom = s("mt").struct("<~@11 [~@13 x!2 ~] ~@32>").gain(0.4)

// drums · open hat
const open_hat = s("oh").struct("<~@20 [~@7 x] ~ [~@7 x] ~@12 [~ x ~ x ~ x ~ x]!5 ~@4>").gain(0.5)

// drums · high tom
const high_tom = s("ht").struct("<~@11 [~@3 x] ~ [x!2 ~ x ~ x!2 ~@9] ~@30>").gain(0.4)

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

stack(
  electric_guitar_clean, bass, piccolo, piano, viola, violin, koto, koto_2, kick, kick_soft, snare, low_tom, hihat,
  mid_tom, open_hat, high_tom, crash
)