Strudelify

Brava

Mina

KeyA minorTempo158 bpm
0:00/0:00
// Brava — Mina
// 158 bpm, 4/4, key A 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: Full arrangement: all 68 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(158/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 · acoustic bass
const bass = note(`<
  ~@2 A B C D E F G H I J K L M A@2 B C D E F G H I J K L M A N O P Q R S T U@3 V W@2 X Y Z AA AB AC A B C D E F G H I J
  K L M A@3 ~@3
>`.pickRestart({
  A: "a1@4 g#1@3 ~ g1@3 ~ f#1@4", B: "~ a1@2 a1 g#1@2 g#1@2 g1 ~ g1@2 f#1 ~ f#1@2", C: "f1 ~@3 f1 a1 c2 a1",
  D: "g1@2 a1@2 a#1@2 c2@2 f1 ~ f1@2 g1@2 g1@2", E: "a1@2 c2@2 a1@2 f1@2 e1 ~ e1@2 b1@2 b1@2",
  F: "e2 b1!2 e1!2 f1 g#1 b1", G: "e1 f#1 g#1 b1 e2 d2 c2 b1", H: "a1 b1 c2 e2 b2 g2 e2 c2",
  I: "d3@2 d3@2 a#2@2 a#2@2 g2 ~ g2@2 d2@2 a#1@2", J: "c2 ~ g2@2 c2@2 g2@2 e2@2 c2@2 a#1@2 c2@2", K: "e2 ~@7",
  L: "e2 c2", M: "e2@7 ~ e2@8", N: "g1 a#1 d2 f2 d2 f2 d2 a#1", O: "g2 a2 a#2 g2 d2 g2 d2 e2",
  P: "f2 a2 a#2 b2 c3 d3 e3 c3", Q: "f2@2 a2@2 c3 ~ a2@2 g2@2 f2@2 g2 ~ a2@2",
  R: "f2@2 c3@2 a2@2 f2@2 a2@2 ~ g#2@2 g2@2 ~", S: "d#2@3 d2@2 c#2@2 ~ c2@2 g2@2 c2@2 e2@2", T: "g2 c3 g2 e2 c2 ~@3",
  U: "a1!4 ~@4", V: "a1@2 a1 ~ a1@2 a1@2 ~@8", W: "a1 ~@7", X: "a1 ~@3 f1 ~@3", Y: "a1 ~@3 a1 ~@3",
  Z: "c2@2 b1 a#1@2 c2 b1 a#1", AA: "c2@4 b1@2 a#1@4 c2@2 b1@2 a#1 ~", AB: "a#1@2 a1 g#1@2 a#1 a1 g#1",
  AC: "a#1@4 a1@2 g#1@4 a#1@2 a1@2 g#1 ~",
})).s("gm_acoustic_bass").gain(0.29)

// chords · string ensemble 2
const string_ensemble_2 = note("<~@30 A@2 B@3 ~@2 C@4 D E ~@25>".pickRestart({
  A: "[a4@7 ~ a4@7 a4@8 a4@3 g4@3 f4@3, [a#3,d4], f4@29 ~@3]/2", // A#
  B: "[e4@4 f4@8 ~@4 e4@4 f4@3 e4@4 f4@4 a4@4 c5@11 ~@2, [f3,a3]@15 ~, c4@11 ~ c4@33 ~@3]/3", // F
  C: "[b5@11 ~@4 a5@16 b5@12 a#5@5 a5@15 ~, [a4,c5,e5]@63 ~, ~@11 a#5@6 ~@47]/4", // Am
  D: "[b3,b4] [a#3,a#4] [a3,a4] [g#3,g#4] [g3,g4] ~@3", // B A# A G# G
  E: "~@5 [e3,e4]@2 ~ [e3,e4]@3 ~@5, [g3,g4] f#3 f3 ~@5, ~ f#4@2 f4@2 ~@11", // E G
})).s("gm_string_ensemble_2").gain(0.14)

// other · trumpet
const trumpet = note("<A B ~@13 C ~@13 C ~@15 D E ~@15 C ~@3 F G>".pickRestart({
  A: "c5 d5 e5 f5 g5 a5 a#5 b5 c6 a#5 a5 g5 f5 e5 f5 g5", B: "c5 ~@15", C: "[c5,e5] [b4,d#5] [a#4,d5] [a4,c#5]",
  D: "b5@2 a#5 a5@2 b5 a#5 a5", E: "b5@4 a#5@2 a5@4 b5@2 a#5@2 a5 ~", F: "~ c5", G: "~@2 a4 g4 ~ c4 ~@10",
})).s("gm_trumpet").gain(0.38)

// other · trumpet · soft notes · Dsus2
const trumpet_soft = note("<~@67 [~ b4 ~ f4 [d4,e4] b3 a3 g3 ~@8]>").s("gm_trumpet").gain(0.19)

// chords · trombone
const trombone = note(`<
  A B ~@2 C D@2 ~@2 E F ~@4 G ~@2 C D@2 ~@2 E F ~@4 G ~@4 H I ~@5 J@2 K L M N O P ~@2 C D@2 ~@2 E F ~@4 G ~@3 Q@2
>`.pickRestart({
  A: "[f3,a3,c4,e4] [g3,a#3,d4,f4] [a3,c4,e4,g4] [a#3,d4,f4,a4]", B: "[a3,c4,e4,g4] ~@7", C: "~ [f3,a3,c4]",
  D: "[[g3,a#3,d4]@8 [a3,c4,e4]@6 a3@3 g3@3 ~@2 [f3,a#3,d4]@2 [e3,g#3,c4]@8, ~@7 [c4,e4]@3 ~@6]/2", // Gm Am A# Eaug C
  E: "~@14 [a4,c5,e5,g5] ~", F: "[a#4,d5,f5,a5] ~@13 [d5,e5,f#5,a#5] ~",
  G: "[a2,e3]@4 [g#2,d#3]@4 [g2,d3]@4 [f#2,c#3]@3 ~", H: "~@8 [a3,e4,a4]@3 [g#3,d#4,g#4]@2 [g3,d4,g4]@3",
  I: "[d#3,a#3,d#4]@3 [d3,a3,d4]@2 [c#3,g#3,c#4]@3 ~@8", J: "a2 ~@15", K: "a2 ~@7 e2 ~@7", L: "a2 ~@7 a2 ~@7",
  M: "[c4,g4]@4 [b3,f#4]@2 [a#3,f4]@4 [c4,g4]@2 f#4@2 [a#3,f4] ~, ~@12 b3 ~@3", // C5 B5 A#5 C5 A#5
  N: "[c4,g4]@4 [b3,f#4] ~ [a#3,f4]@4 [c4,g4]@2 [b3,f#4]@2 [a#3,f4] ~", // C5 B5 A#5 C5 B5 A#5
  O: "[a#3,f4]@2 [a3,e4] [g#3,d#4]@2 [a#3,f4] [a3,e4] g#3, ~@14 d#4 ~", // A#5 A5 G#5 A#5 A5
  P: "[a#3,f4]@4 [a3,e4]@2 [g#3,d#4]@4 [a#3,f4]@2 [a3,e4]@2 [g#3,d#4] ~", // A#5 A5 G#5 A#5 A5 G#5
  Q: "[~@8 c5@10 b4 [g4,a4] [e4,f4] [c4,d4] [a3,b3] g3 f2@3 ~@5]/2", // Gsus2 Fmaj7 Csus2 Asus2
})).s("gm_trombone").gain(0.24)

// other · muted trumpet
const muted_trumpet = note("<~@6 A B C D E ~@9 A B C D E ~@9 F G ~@9 H I ~@6 A B C D E ~@8 J K>".pickRestart({
  A: "~@9 [g#3,g#4] [a#3,a#4] [d4,d5] [c4,c5] [e4,e5] [d4,d5] [f4,f5]", B: "[e4,e5] ~@7",
  C: "e5 ~ e5 ~ e5 ~ e5 ~ e5 ~ e5 ~ e5 ~ e5 ~", D: "~@14 [a4,c5,e5,g5] ~", E: "[a#4,d5,f5,a5] ~@13 [d5,e5,f#5,a#5] ~",
  F: "~@8 [e5,a5]@3 [d#5,g#5]@2 [d5,g5]@3", G: "[a#4,d#5]@3 [a4,d5]@2 [g#4,c#5]@3 ~@8", H: "b4@2 a#4 a4@2 b4 a#4 a4",
  I: "b4@4 a#4@2 a4@4 b4@2 a#4@2 a4 ~", J: "~ c5", K: "~@3 [a4,b4] [e4,f4,g4] [c4,d4] [a3,b3] g3 f3@2 ~@6",
})).s("gm_muted_trumpet").gain(0.19)

// chords · alto sax
const alto_sax = note(`<
  ~ A B C D E F G H@2 I J K ~@2 B@2 C D E F G H@2 I J L ~@2 B ~@4 M N ~ O@2 P O Q@2 R@2 S T U V B C D E F G H@2 I J K
  ~@2 B@3 ~@3
>`.pickRestart({
  A: "c4 a#3 a3 g3 f3 e3 f3 g3 ~@8", B: "g4@4 f#4@4 f4@4 e4@3 ~", C: "~ g4 ~ g4 f#4 ~ f#4 ~ f4 ~ f4@2 e4@2 e4 ~",
  D: "~ [a3,c4]", E: "[a#3,d4] [c4,e4]", F: "[a#3,d4]@7 ~ [g#3,c4]@8", G: "[e3,g#3]@15 ~",
  H: "[g#3@16 c4@15 ~, e4@31 ~]/2", I: "[f4,a4]@15 ~", J: "[e4,f#4]", K: "e4 ~@15", L: "e4 ~@7",
  M: "~@8 [e4,a4]@3 [d#4,g#4]@2 [d4,g4]@3", N: "[a#3,d#4]@3 [a3,d4]@2 [g#3,c#4]@3 ~@8",
  O: "[c3,e3,g3]@2 [c3,e3,g3]@2 [c3,e3,g3]@2 [c3,e3,g3] ~@9", // C
  P: "[c3,e3]@2 [c3,e3,g3]@2 [c3,e3,g3]@2 [c3,e3,g3] ~@9, g3 ~@15", Q: "[e3,a3] ~@15", R: "[e3,a3] ~@7 [e3,a3] ~@7",
  S: "[e4,b4]@2 [d#4,a#4] [d4,a4]@2 [e4,b4] [d#4,a#4] [d4,a4]", // E5 D#5 D5 E5 D#5 D5
  T: "[e4,b4]@4 [d#4,a#4]@2 [d4,a4]@4 [e4,b4]@2 [d#4,a#4]@2 [d4,a4] ~", // E5 D#5 D5 E5 D#5 D5
  U: "[d4,a4]@2 [c#4,g#4] [c4,g4]@2 [d4,a4] [c#4,g#4] [c4,g4]", // D5 C#5 C5 D5 C#5 C5
  V: "[d4,a4]@4 [c#4,g#4]@2 [c4,g4]@4 [d4,a4]@2 [c#4,g#4]@2 [c4,g4] ~", // D5 C#5 C5 D5 C#5 C5
})).s("gm_alto_sax").gain(0.2).pan(0.4)

// other · tenor sax
const tenor_sax = note(`<
  ~ A B C D E F@2 G H I J ~@3 B@2 C D E F@2 G H I J ~@3 B ~@4 K L ~ M@4 N@2 O@2 ~@4 B C D E F@2 G H I J ~@3 B@3 ~@2 P
>`.pickRestart({
  A: "~@8 c3 a#2 a2 g2 f2 e2 f2 g2", B: "e3@4 d#3@4 d3@4 c#3@3 ~", C: "~ e3 ~ e3 d#3 ~ d#3@2 d3@2 d3@2 c#3@2 c#3@2",
  D: "~ f3", E: "g3 a3", F: "[f3@7 ~ e3@23 ~]/2", G: "[e3,g#3]", H: "[e3,a3]@15 ~", I: "[a#3,d4]@15 ~", J: "[a#3,c4]",
  K: "~@8 a3@3 g#3@2 g3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b4 ~ b4 ~ e5 a5 b5 e6@2 ~@6, ~@4 [e3,g3,a3,d4]@9 ~@3, ~@9 e4@2 ~@4 b4@2 ~ e5@2 d5@2 ~@10]/2", // Em7
  L: "~@2 f1 ~",
})).s("gm_piano").gain(0.19)

// chords · piano · soft notes · G5
const piano_soft = note(`<
  ~@30
  [d5 c6 ~@2 d5 ~@3]
  [[d5,g5] c6 g5 ~ [d5,g5] ~ [d5,g5] ~]
  [~@3 e5 ~@3 e5 ~@5 a5@2 ~]
  [~@11 e5 ~@3 e5]
  [~ a5 ~@5 e5 ~@2 f5 ~@2 a5 ~ e5]
  ~@33
>`).s("gm_piano").gain(0.11)

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

// drums · snare
const snare = s("sd").struct(`<
  ~@2 A B C ~@4 D@2 ~@2 E F A@2 B C ~@4 D@2 ~@2 G F A ~@11 H@2 I J K L K M A B C ~@4 D@2 ~@2 E F A@3 ~ N O
>`.pickRestart({
  A: "~@3 x", B: "~ x ~ x!2 ~ x ~ x ~ x ~ x ~ x ~", C: "~ x", D: "x ~@6 x", E: "x!2 ~@14", F: "~@14 x!2",
  G: "x!2 ~@2 x!4 ~@8", H: "x", I: "x!12 ~ x!3", J: "x!13 ~@3", K: "~@3 x!2 ~@3 x!3 ~@3 x ~", L: "~@3 x!2 ~@3 x!3 ~@5",
  M: "~@3 x!2 ~@3 x!3 ~ x ~ x ~", N: "~@8 x!8", O: "x!5 ~@11",
})).gain(0.1)

// drums · snare · soft notes
const snare_soft = s("sd").struct("<~@13 A ~@13 B ~@15 C ~@16 A ~@7>".pickRestart({
  A: "~@2 x!6 ~@8", B: "~@2 x!2 ~@12", C: "~@3 x",
})).gain(0.05)

// drums · low tom
const low_tom = s("lt").struct("<~@46 [~@14 x!2] ~@20 [~@7 x ~@8]>").gain(0.15)

// drums · pedal hat
const pedal_hat = s("hh").struct("<~@12 [~ x ~@6] ~@13 [~ x ~@6] ~@32 [~ x ~@6] ~@8>").gain(0.05)

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

// drums · mid tom
const mid_tom = s("mt").struct("<~@45 [~@13 x ~@2]!3 ~@19 [~@5 x ~@10]>").gain(0.15)

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

// drums · crash · soft notes
const crash_soft = s("cr").struct("<[x!4]!2 ~@7 [~@5 x ~@2] ~@13 [~@5 x ~@2] ~@32 [~@5 x ~@2] ~@11>").gain(0.1)

// drums · ride
const ride = s("rd").struct(`<
  ~@2 A ~ B C D E F C G H ~ I J K A ~ B C D E F C G H ~ I J K C D E F L M N O@4 ~@8 A ~ B P D E F D G H ~ I J K A@2 ~@3
>`.pickRestart({
  A: "x!4", B: "~@4 x!4", C: "x!8", D: "x ~ x ~ x ~ x!3 ~ x ~ x ~ x ~", E: "x ~ x!3 ~ x!3 ~ x!3 ~ x!2",
  F: "x ~ x ~ x ~ x ~ x ~ x!3 ~ x ~", G: "~ x!7", H: "x ~ x!3 ~ x!3 ~ x!3 ~ x ~", I: "~@8 x ~@2 x ~@4",
  J: "x ~@2 x ~@4 x ~@2 x ~@4", K: "~ x!3", L: "x ~ x ~ x ~ x ~ x ~@2 x ~ x ~@2", M: "x ~@2 x ~ x ~@2 x ~ x ~ x ~ x ~",
  N: "x ~ x!3 ~ x!3 ~@7", O: "x!4 ~@4", P: "x ~ x!3 ~ x ~ x ~ x ~ x ~ x ~",
})).gain(0.19)

// drums · ride · soft notes
const ride_soft = s("rd").struct(`<
  ~@4 A B C@3 ~ D A ~ E F ~@3 A B C@3 ~ D A ~ E F ~ B C@3 G H D@2 I D@2 ~@10 A B C@3 ~ D A ~ E F ~@6
>`.pickRestart({
  A: "~@7 x", B: "~@5 x!2 ~@4 x ~@2 x ~", C: "~@3 x ~@3 x", D: "~@3 x ~@4", E: "~@13 x ~@2", F: "~@5 x ~@7 x ~@2",
  G: "~@5 x!2 ~@6 x ~@2", H: "~@5 x ~@8 x ~", I: "~ x ~ x ~@4",
})).gain(0.05)

stack(
  bass, string_ensemble_2, trumpet, trumpet_soft, trombone, muted_trumpet, alto_sax, tenor_sax, piano, piano_soft, kick,
  snare, snare_soft, low_tom, pedal_hat, open_hat, mid_tom, crash, crash_soft, ride, ride_soft
)

More by Mina