Strudelify

Kreuzberger Nachte

Blattschuss

KeyG majorTempo115 bpm
0:00/0:00
// Kreuzberger Nachte — Blattschuss
// 115 bpm, 4/4, key G major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: pitch bends are ignored
// note: Full arrangement: all 58 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. 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 · [...]/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.

// bass · fretless bass · "FRETLESS"
const bass = note("<A B@3 C@4 B@4 C@4 B@4 C@4 D B@3 C@3 E B@4 C@4 B@4 C@4 D B@3 C@3 F B G>".pickRestart({
  A: "~@3 a2", B: "c2 ~ d2 g2 c2 ~ d2 g2", C: "g1 ~ a1 d2 g1 ~ a1 d2", D: "c2 ~ g2 ~ c3 ~ g2@2",
  E: "g1 ~ g1 ~ a1 ~ a1 ~ b1 ~ b1 ~ g1@2 b1@2", F: "g1 ~ g1 ~ a1 ~ a1 ~ b1 ~ b1 ~ b1 ~ b1 ~", G: "c2@5 ~@11",
})).s("gm_fretless_bass").gain(0.48)

// chords · piano · "A.PIANO 2"
const piano = note(`<
  ~ A@3 B@4 A@4 C D@2 E A@4 B F@2 G H A@3 B@3 I A@4 B F@2 G A@4 B F@2 G H A@3 B@3 I A J
>`.pickRestart({
  A: "[e4,g4,c5] ~ [e4,g4,c5] ~ [e4,g4,c5] ~ [e4,g4,c5] ~ [e4,g4,c5] ~ [e4,g4,c5] ~ [e4,g4,c5] ~ [e4,g4,c5] ~", // C
  B: "[d4,g4,b4] ~ [d4,g4,b4] ~ [d4,g4,b4] ~ [d4,g4,b4] ~ [d4,g4,b4] ~ [d4,g4,b4] ~ [d4,g4,b4] ~ [d4,g4,b4] ~", // G
  C: "[d4,g4,b4] ~ [d4,g4,b4] ~ [d4,g4,b4] ~ [d4,g4,b4] ~ [d4,g4,b4] ~ [d4,g4,b4] ~ [d4,g4,b4] ~ [f#4,a#4]@2, ~@14 d4 ~", // G F#
  D: "d4 ~ d4 ~ [d4,g4,b4] ~ [d4,g4,b4] ~ [d4,g4,b4] ~ [d4,g4,b4] ~ [d4,g4,b4] ~ [f#4,a#4]@2, [f4,a4]@4 ~@10 d4 ~", // G F# F
  E: "d4 ~ d4 ~ [d4,g4,b4] ~ [d4,g4,b4] ~ [d4,g4,b4] ~ [d4,g4,b4] ~ [d4,g4,b4] ~ [d4,g4,b4] ~, [f4,a4] ~@3", // G F
  F: "[d4,g4,b4] ~ [d4,g4,b4] ~ [d4,g4,b4] ~ [f#4,a#4]@2 d4 ~ d4 ~ [d4,g4,b4] ~ [f#4,a#4]@2, ~@6 d4 ~ [f4,a4]@4 ~@2 d4 ~", // G F# G F# F
  G: "[d4,g4,b4] ~ [d4,g4,b4] ~ [d4,g4,b4] ~ [f#4,a#4]@2 d4 ~ d4 ~ [d4,g4,b4] ~ [d4,g4,b4] ~, ~@6 d4 ~ [f4,a4]@4 ~@4", // G F# G F
  H: "[e4,g4,c5] ~ [e4,g4,c5] ~ [e4,g4,c5] ~ [e4,g4,c5] ~ [e4,g4,c5] ~@3 [b3,d4,g4]@3 ~", // C G
  I: "[b3,g4,b4] ~ [b3,g4,b4] ~ [c4,a4,c5] ~ [c4,a4,c5] ~ [c#4,a#4,c#5] ~ [c#4,a#4,c#5] ~ [d4,b4,d5] ~ [d4,b4,d5] ~", // Em F F# G
  J: "[c2,e4,g4,c5]@5 ~@11", // C
})).s("gm_piano").gain(0.18).pan(0.1)

// other · violin
const violin = note(`<
  ~@5 A B ~ C@2 D ~ E ~ F G H I ~ J K L M N O ~ P ~ Q ~ R ~@3 S ~ T U V W X ~ S ~@4 Y O ~ Z ~@3 R ~@3
>`.pickRestart({
  A: "b3 ~ b3 ~ b3 ~ a#3@2 a3@3 ~@5", B: "b3 ~ b3 ~ b3 ~ a#3@2 a3@4 ~@4", C: "[~@8 g5@11 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 b2 ~ b2 ~ g2@2 b2@2",
  E: "g2 ~ g2 ~ a2 ~ a2 ~ b2 ~ b2 ~ b2 ~ b2 ~", F: "[c3,c4]@5 ~@11",
})).s("gm_clavinet").gain(0.21).pan(0.1)

// chords · piano · "A.PIANO 2"
const piano_2 = note("<~ A@3 B@4 A@4 B@4 A@4 B@4 C A@3 B@3 D A@4 B@4 A@4 B@4 C A@3 B@3 D A E>".pickRestart({
  A: "[c4,e4] ~ [c4,e4] ~ [c4,e4] ~ [c4,e4] ~ [c4,e4] ~ [c4,e4] ~ [c4,e4] ~ [c4,e4] ~", // C
  B: "[b3,d4] ~ [b3,d4] ~ [b3,d4] ~ [b3,d4] ~ [b3,d4] ~ [b3,d4] ~ [b3,d4] ~ [b3,d4] ~", // Bm
  C: "[c4,e4] ~ [c4,e4] ~ [c4,e4] ~ [c4,e4] ~ [c4,e4] ~@3 [b3,d4]@3 ~", // C Bm
  D: "[g3,b3] ~ [g3,b3] ~ [a3,c4] ~ [a3,c4] ~ [a#3,c#4] ~ [a#3,c#4] ~ [b3,d4] ~ [b3,d4] ~", E: "[c4,e4]@5 ~@11",
})).s("gm_piano").gain(0.13).pan(1)

// chords · drawbar organ · "ORGAN 1"
const drawbar_organ = note("<~@31 A B ~@19 C ~@2 A B ~>".pickRestart({
  A: "[b3,g4,b4] ~ [b3,g4,b4] ~ [c4,a4,c5] ~ [c4,a4,c5] ~ [c#4,a#4,c#5] ~ [c#4,a#4,c#5] ~ [d4,b4,d5] ~ [d4,b4,d5] ~", // Em F F# G
  B: "c4@5 [a3,b3] [f3,g3] [c3,d3,e3] ~@8, [c5,e5] ~", // Asus2 Fsus2 C
  C: "~@4 b5!2 g5 ~ [b4,d5]@2 g4 ~ [g4,b4,g5]@2 [d4,d5] ~, ~ d5 ~@6, ~@3 g5@2 ~@11", // Bm G D
})).s("gm_drawbar_organ").gain(0.11)

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

// drums · clap
const clap = s("cp").struct("<~@28 A ~ A@3 ~ B ~ B ~@13 B ~ B ~ B@3 ~>".pickRestart({
  A: "~ x!4 ~@3", B: "~@2 x!3 ~@3",
})).gain(0.48)

// drums · snare
const snare = s("sd").struct("<A B@7 C B@23 D B@7 E F B@14 G ~>".pickRestart({
  A: "~@2 x!2 ~@2 x!2 ~@8", B: "~ x ~ x", C: "~@2 x ~@2 x!2 ~@9", D: "~@2 x ~@2 x!2 ~@3 x ~@5",
  E: "~@4 x ~@2 x!2 ~@2 x!2 ~@2 x", F: "x!2 ~ x", G: "~@4 x ~ x!3 ~@7",
})).gain(0.64)

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

// drums · hihat · soft notes
const hihat_soft = s("hh").struct(`<
  A B@3 C B@3 ~ B@3 C B@7 C B@3 D E@2 B F E@3 G B@3 C B@3 F B@3 C B@3 D E@2 B F E@3 G ~
>`.pickRestart({
  A: "~ x ~@3 x ~@10", B: "~ x ~@3 x ~ x", C: "~ x ~@3 x ~@2", D: "~ x ~ x ~@4", E: "~ x ~@5 x", F: "~ x ~@6",
  G: "~ x ~@2",
})).gain(0.16)

// drums · low tom
const low_tom = s("lt").struct("<~@8 [~@4 x ~@2 x] ~@23 [~@3 x] x ~@22 [~@15 x] x>").gain(0.4)

// drums · mid tom
const mid_tom = s("mt").struct("<[~@13 x!2 ~] ~@7 [~@10 x ~ x!2 ~@2] ~@23 [~@15 x] ~@23 [~@11 x!4 ~] ~>").gain(0.48)

// drums · open hat
const open_hat = s("oh").struct("<A ~@7 B ~@15 C D@2 ~ D@4 C ~@7 E ~@7 C D@2 ~ D@4 F ~>".pickRestart({
  A: "x!2 ~@2", B: "x", C: "~ x", D: "~@5 x ~@2", E: "~@9 x ~@3 x ~@2", F: "~ x ~@6",
})).gain(0.32)

// drums · high tom
const high_tom = s("ht").struct("<[~@5 x!2 ~] ~@55 [~@9 x!2 ~@5] ~>").gain(0.48)

// drums · cowbell
const cowbell = s("cb").struct("<~@50 A ~ B ~ A ~ A ~>".pickRestart({
  A: "~@5 x!2 ~", B: "~@4 x!2 ~@2",
})).gain(0.56)

// drums · crash
const crash = s("cr").struct("<~ A ~@7 A ~@15 A ~@7 A ~@7 A ~@7 A ~@7 A>".pickRestart({
  A: "x",
})).gain(0.32)

// drums · triangle
const triangle = s("triangles:30").struct("<~@50 [~@12 x!4] x [~@12 x!4] x [~@12 x!4] x ~@2>").gain(4.18)

stack(
  bass, piano, violin, clavinet, piano_2, drawbar_organ, kick, clap, snare, hihat, hihat_soft, low_tom, mid_tom,
  open_hat, high_tom, cowbell, crash, triangle
)