Strudelify

Elena no

Battisti

KeyA majorTempo120 bpm
0:00/0:00
// Elena no — Battisti
// 120 bpm, 2/2, key A major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: Full arrangement: all 148 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 · [...]/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 · piano
const piano = note(`<
  ~@13 A B C D@4 E@8 ~ F@3 G@7 H@6 I@7 J@8 K L@3 M@6 N@7 O@6 P@5 Q@8 R@4 J@8 K S T U@2 V@5 T W@7 X@16 Y@5 ~
>`.pickRestart({
  A: "~@7 a4", B: "c#5!4 d5!4", C: "d5 d#5!2 e5@2 d5 c5 a4",
  D: "[c5 a4!2 a4@12 ~ c#5!4 d5!4 d5 d#5!2 e5@2 d5 c5 a4, ~@15 a4@16 ~]/4",
  E: "[c5 a4!2 ~@13 e5@2 g5 e5@2 g5 e5@4 d5 c5 d5 c5 d5 c#5@3 ~@14 e5@2 g5 e5@2 g5 e5@4 d5 c5 d5 c5 d5 c#5, ~@3 a4@61]/8",
  F: "[~@4 a4!3 a4@5 a4!2 ~ a5@3 ~@3 a4!3, ~@14 a4@7 ~@3]/3",
  G: "[a4@2 a4@2 a4!2 ~ a5@3 ~@4 e5 d#5 e5 d#5 e5 d#5 e5 d#5 e5 e5@2 d5!5 f#5 e5@2 c#5@2 ~ c#5!2 f#4 ~@3 b4 c5 b4 ~ f#4 ~@5 c#5!2 f#4 a4, ~@6 a4@33 a4@6 a4@2 a4@8 ~]/7",
  H: "[~@2 b4 c5 b4 ~ f#4 ~@5 c#5!2 f#4 ~@3 b4 c5 b4 ~ f#4 ~@5 c#5!2 f#4 ~@3 b4 c5 b4 ~ f#4 ~@5 c#5!2 f#4 a4, ~@5 a4@2 a4@8 a4@6 a4@2 a4@8 a4@6 a4@2 a4@8 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b4 c5 b4 ~ f#4 ~@5 c#5!2 f#4 ~@3 b4 c5 b4 ~ f#4 ~@5 c#5!2 f#4 ~@3 b4 c5 b4 ~ f#4 ~@5 c#5!2 f#4 ~@3 b4 c5, ~ a4@2 a4@8 a4@6 a4@2 a4@8 a4@6 a4@2 a4@8 a4@6 a4@2 a4@8 a4@5]/8",
  Y: "[b4 ~ f#4 ~@5 c#5!2 f#4 ~@3 b4 c5 b4 ~ f#4 ~@5 c#5!2 f#4 ~@3 b4 c5 b4 ~ f#4 ~@5, ~ a4@2 a4@8 a4@6 a4@21 ~@2]/5",
})).s("gm_piano").gain(0.72)

// chords · piano
const piano_2 = note(`<
  A@2 B C D@2 A B A B A B A B A B A B A B A B A B A B A B A@4 B C A E A B A B A B A B A B A B A B A B A B A B A B A B
  A@4 B C A E A B A@2 B C A E A F G H@2 I J I K@2 L M N O P@3 Q A B A B A B A B A B A B A B A@4 R S T U V R W A R S T U
  V R W R W R W R W R W R W R W R W R W R W R W X
>`.pickRestart({
  A: "[a3,c#4,e4]!4", B: "[a3,d4,f#4]!4", C: "[a3,c4,f4]!4",
  D: "[[a3,c#4,e4]@2 [a3,c#4,e4]@2 [a3,c#4,e4]@2 [a3,c#4,e4] [b3,d4,g4]@3 [b3,d4,g4]@2 [b3,d4,g4]@2 [b3,d4,g4]@2]/2", // A G
  E: "[g3,d4,e4]!4", F: "[a3,d4,f#4]@4 [a3,d4,f#4]@4 [a3,d4,f#4]@4 [a3,d4,f#4] ~@3", G: "[c#4,e4,a4] [b3,d4,g4]",
  H: "[[a#3,c#4,f#4]@5 ~@3]/2", I: "[b3,d4,g4]", J: "[a#3,c#4,f#4]", K: "[g3,c4,e4]!2 [g3,b3,d4]!2", L: "[g#3,b3,e4]!4",
  M: "[g3,c4,e4]!4", N: "[g3,b3,d4]!2 [a3,c4,f4]!2", O: "[g#3,b3,e4]@3 ~", P: "[a3,c#4,g4,a4]@2 ~@3 [a3,d4,f#4,a4]@3",
  Q: "[a3,c#4,g4,a4] ~@3", R: "[a3,c#4,e4]!2 [a3,d4,f#4]!2", S: "[a3,d4,f#4]!2 [a3,c4,f4]!2",
  T: "[a3,c4,f4]!2 [a3,c#4,e4]!2", U: "[a3,c#4,e4]!2 [g3,d4,e4]!2", V: "[g3,d4,e4]!2 [a3,c#4,e4]!2",
  W: "[a3,d4,f#4]!2 [a3,c#4,e4]!2", X: "[a3,c#4,e4]!2 ~@2",
})).s("gm_piano").gain(0.15)

// bass · electric bass finger
const bass = note(`<
  A@6 B@8 C@14 D@2 E@4 F@2 C@24 D@2 E@4 F@2 C@2 E@4 F@2 C@2 G@7 H@5 I@3 J C@14 D@2 K L@4 M@2 N@2 L@4 M@2 N@22 O
>`.pickRestart({
  A: "[~@5 g2 e2 g2@5 d3 c3 ~ e2 d2@3 d2 f#2 g#2 ~ f2@5 f2 g2 f2 a2@7 ~ g2@7 g2@2, a2@14 a2@8 a2@9 ~@7 a2@10]/6",
  B: "[a2@4 ~ e2 c#2 d2@7 ~ e2, ~ a2@3]/2", C: "[a2@3 a2 a2@3 ~ d2@3 d2 d2@3 d2, ~@7 a2@9]/2", D: "a2@3 a2 a2@3 a2",
  E: "[a2@3 a2 a2@3 ~ g2@3 g2 g2@3 g2 f#2@3 f#2 f#2@3 f#2 f2@3 f2 f2@2 f#2 g2, ~@7 a2@25]/4",
  F: "[a2@3 a2 a2@3 ~ e2@3 e2 e2@3 e2, ~@7 a2@9]/2",
  G: "[a2!3 ~ g2!4 f#2@10 ~@6 g2@8 f#2@8 g2@8 c3@2 c3@2 b2@2 b2@2, ~@3 a2@53]/7",
  H: "[a2 ~ g2!2 e2@3 e2 c3@3 ~ g2!2 f2!2 e2@3 ~, ~ a2@19]/5", I: "~@5 d3@3, a2", J: "a2", K: "a2@2 a2@2 a2@3 a2",
  L: "[a2@3 ~ g2@3 g2 g2@3 g2 f#2@3 f#2 f#2@3 f#2 f2@3 f2 f2@2 f#2 g2 a2@3 a2, ~@3 a2@25 ~@4]/4",
  M: "[a2@3 ~ e2@3 e2 e2@3 e2 a2@3 a2, ~@3 a2@9 ~@4]/2", N: "[a2@3 ~ d2@3 d2 d2@3 d2 a2@3 a2, ~@3 a2@9 ~@4]/2",
  O: "a2 ~",
})).s("gm_electric_bass_finger").gain(0.72)

// drums · kick
const kick = s("bd").struct(`<
  ~@9
  [~@7 x]
  [x!2 ~ x!3 ~ x]!70
  ~@14
  [x!2 ~ x!3 ~ x]!16
  [x!2 ~ x!3 ~ x!2 ~ x ~@3 x ~]
  [x!2 ~ x!3 ~ x]!36
  [x!2 ~ x ~@4]
>`).gain(0.64)

// drums · snare
const snare = s("sd").struct("<~@10 [~ x ~ x]!70 ~@14 [~ x ~ x]!16 [~ x ~ x ~@2 x ~] [~ x ~ x]!36 [~ x ~@2]>")
  .gain(0.64)

// drums · mid tom
const mid_tom = s("mt").struct("<~@10 [~ x ~ x]!70 ~@14 [~ x ~ x]!16 [~ x ~ x ~@2 x ~] [~ x ~ x]!36 [~ x ~@2]>")
  .gain(0.64)

stack(piano, piano_2, bass, kick, snare, mid_tom)

More by Battisti