Strudelify

dear future husband

Meghan Trainor

KeyE majorTempo85 bpm
0:00/0:00
// dear future husband — Meghan Trainor
// 85 bpm, 4/4, key E major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: Tempo changes preserved in elapsed time; displayed bars use the dominant tempo.
// note: metre changes (4/4 at bar 1, 2/4 at bar 9, 4/4 at bar 9, 2/4 at bar 24, ...) are rendered on a constant 4/4 grid of one bar per cycle
// note: Transcription provider: pdmx. https://musescore.com/score/5863850; license: https://creativecommons.org/publicdomain/zero/1.0/
// note: Full arrangement: all 62 bars on a 24-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(85/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.

// other · trumpet · "Trumpet 2"
const trumpet = note(`<
  A@3 B@6 C ~@2 D E F G H E F I J K L M N O P@2 N O P@2 D Q F R J K L S T U V@2 T U W@2 X Y Z AA AB AC AD@2 T U AE@2 AF
  ~
>`.pickRestart({
  A: "[~@11 d5@25]/3", B: "[~@7 d5@57 ~ e5@25 c#5@38 ~@16]/6", C: "~@3 d5@19 ~@2",
  D: "~@2 a4@3 a4 a4@2 a4 d5@3 ~@2 a4@3 a4 a4@2 a4 d5@3",
  E: "~@2 b4 b4@2 b4 b4@2 b4 b4@2 b4 b4@2 b4 b4@2 b4 b4@2 b4 d5@3",
  F: "~@2 b4 e5@2 f#5 e5@2 d5 b4@3 ~@2 c#5 e5@2 f#5 e5@2 d5 a4@3",
  G: "a4@2 a4 a4@2 a4 g4@3 a4@2 ~ a4@3 a4@2 a4 g4@3 ~@3", H: "~@2 a4 a4@2 a4 a4@2 a4 d5@3 ~@2 a4 a4@2 a4 a4@2 a4 d5@3",
  I: "a4@2 a4 a4@2 a4 g4@3 a4@2 ~ a4@2 a4 a4@2 a4 g4@3 ~@3",
  J: "~@3 b4@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~@3",
  AB: "~@3 c5@2 d#5 a#4@2 d#5 c5@2 d#5 ~@2 d#5@3 a#5 a#5@2 g#5 g5@2 f5",
  AC: "g5@5 d#5@4 ~@5 d#5@3 a#5 g#5@2 g5 f5@2 d#5",
  AD: "[c5@5 g#4@4 ~@2 g#4@3 g#4 g#4@2 g#4 g#4@2 a#4@3 a#4@6 a#5@4 ~@15]/2",
  AE: "[g#4@3 c5@3 c5@3 g5@2 a#4@3 a#4@3 d5@3 f5 d#5@2 a#4@6 a#5 ~@18]/2", AF: "g#4 c5!3 ~@4",
})).s("gm_trumpet").gain(0.45)

// other · flute
const flute = note("<A@3 B@6 C ~@52>".pickRestart({
  A: "[~@11 d6@25]/3", B: "[~@7 d6@55 ~@3 e6@24 ~ c#6@36 ~@18]/6", C: "~ d6@6 ~",
})).s("gm_flute").gain(0.15)

// other · trumpet
const trumpet_2 = note(`<
  ~@12 A B C D E B C F G H I J K L M@2 K L M@2 A N C O G H I P Q R S@2 Q R T@2 U V W X Y Z AA@2 Q R AB@2 AC ~
>`.pickRestart({
  A: "~@2 f#4@3 f#4 f#4@2 f#4 a4@3 ~@2 f#4@3 f#4 f#4@2 f#4 a4@3",
  B: "~@2 f#4 f#4@2 f#4 f#4@2 f#4 f#4@2 f#4 f#4@2 f#4 f#4@2 f#4 f#4@2 f#4 b4@3",
  C: "~@2 g4 e4@2 f#4 e4@2 d4 b3@3 ~@2 a4 e4@2 f#4 e4@2 d4 a3@3",
  D: "f#4@2 f#4 f#4@2 f#4 ~@3 f#4@2 ~ f#4@3 f#4@2 f#4 ~@6",
  E: "~@2 f#4 f#4@2 f#4 f#4@2 f#4 a4@3 ~@2 f#4 f#4@2 f#4 f#4@2 f#4 a4@3",
  F: "f#4@2 f#4 f#4@2 f#4 ~@3 f#4@2 ~ f#4@2 f#4 f#4@2 f#4 ~@6",
  G: "~@3 b4@2 d5 a4@2 d5 b4@2 f#4 ~@2 f#4@3 a4 g4@2 f#4 e4@2 d4", H: "f#4@5 d4@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5 c5@4 ~@5 c5@3 a#4 g#4@2 g4 f4@2 d#4",
  AA: "[g#4@5 f4@4 ~@2 f4@3 f4 f4@2 f4 f4@2 g#4@3 g#4@6 g5@4 ~@15]/2",
  AB: "[d#4@3 g#4@3 g#4@3 g4@2 g#4@3 g#4@3 g#4@3 f4 d#4@2 g4@6 g5 ~@18]/2", AC: "d#4 g#4!3 ~@4",
})).s("gm_trumpet").gain(0.45)

// chords · tenor sax · "Alto Saxophone"
const tenor_sax = note(`<
  A@3 B@6 C ~@2 D E F ~ D E F ~ D E G H D E F I D E F I D E F ~ D E G I J K L M J K L M N O P Q J K L M J K L M R@2
>`.pickRestart({
  A: "[~@11 [f#4,a4]@25]/3", B: "[~@7 [f#4,b4]@57 ~ [g4,b4]@25 [e4,a4]@38 ~@16]/6", C: "~@3 [f#4,a4]@19 ~@2",
  D: "~ [a3,d4] ~ [a3,d4] ~ [a3,d4] ~@2", E: "~ [b3,d4] ~ [b3,d4] ~ [b3,d4] ~@2",
  F: "~ [b3,d4] ~ [b3,d4] ~ [a3,c#4] ~ [a3,c#4]", G: "~ [b3,d4] ~ [b3,e4] ~ [a3,c#4] ~ [a3,c#4]",
  H: "~@3 [a3,d4]@3 [a4,d5]@5 ~@13", I: "~@3 [a3,d4]@3 ~@3 [a3,d4]@2 ~@13", J: "~ [g3,a#3] ~ [g3,a#3] ~ [g3,a#3] ~@2",
  K: "~ [g3,c4] ~ [g3,c4] ~ [g3,c4] ~@2", L: "~ [g#3,c4] ~ [g#3,c4] ~ [g#3,d4] ~ [g#3,d4]",
  M: "~@3 [g3,a#3]@3 ~@3 [g3,a#3]@2 ~@13", N: "d#4@2 ~@19 d4@3", O: "c4@2 ~@19 a#3@3",
  P: "~ [d#4,g#4] ~ [d#4,g#4] ~ [f4,g#4] ~ [f4,g#4]", Q: "[d#4,g4] ~@7",
  R: "[~@3 [g#3,c4]@3 ~@3 [g#3,c4]@3 ~@11 [g4,a#4]@13 ~@12]/2", // G# Gm
})).s("gm_tenor_sax").gain(0.4)

// other · trombone · "Baritone Saxophone"
const trombone = note(`<
  ~@11 A B C D E B C D E B C F G B C D H B C D H B C D E B C D I J K L M J K L M ~@2 N ~ J K L M J K L M O@2
>`.pickRestart({
  A: "~@2 f#2@3 g2@3 g#2@3 a2@3 a#2@3 b2@3 c3@3 c#3", B: "d3 f#3 a2 f#3 d3 f#3 d3 c#3",
  C: "b2 f#3 f#2 f#3 b2 f#3 b2 a2", D: "g2 g3 d3 g3 e3 g3 a2 g3", E: "d3 ~@7", F: "g2 g3 e3 g3 e3 g3 a2 g3",
  G: "d3@3 f#3@3 f#4@5 d3 d3@2 d3 c#3@2 c#3 b2@2 b2 a2@2 ~, ~@2 a2 ~@5",
  H: "d3@3 f#3@3 a2@3 f#3@2 d3 d3@2 d3 c#3@2 c#3 b2@2 b2 a2@2 ~",
  I: "d3@3 f#3@3 a2@3 f#3@2 d3 d3@2 d3 c#3@2 c#3 c3@2 c3 a#2@2 ~", J: "d#3!2 a#2 d#3!4 d3",
  K: "c3 d#3 g2 d#3 c3 d#3 c3 a#2", L: "g#2 d#3!3 d3 f3 a#2 f3",
  M: "d#3@3 d#3@3 a#2@3 d#3@2 d#4 d#3@2 d#4 d3@2 d4 c3@2 c4 a#2@2 ~", N: "g#3 ~ g#3 ~ a#3 ~ a#3 ~",
  O: "[g#2@3 d#3@3 d#3@3 d#3@3 a#2@6 ~@5 d#4@13 ~@12]/2",
})).s("gm_trombone").gain(0.4)

// bass · tuba
const bass = note(`<
  ~@11 A B C D E B C D E B C F G B C D G B C D G B C D E B C D H I J K L I J K L ~@3 M I J K L I J K L N ~
>`.pickRestart({
  A: "f#1 g1 g#1 a1 a#1 b1 c2 c#2", B: "d2 ~ a1 ~ d2 ~ d2 c#2", C: "b1 ~ f#1 ~ b1 ~ b1 a1", D: "g1 ~ d2 ~ e2 ~ a1 ~",
  E: "d2@3 ~@12 a1@2 a2 b1@2 b2 c#2@2 c#3", F: "g1 ~ e2 ~ e2 ~ a1 ~",
  G: "d2@3 ~@3 a1@3 ~@2 d3 d2@2 ~ c#2@2 ~ b1@2 ~ a1@2 ~", H: "d2@3 ~@3 a1@3 ~@2 d3 d2@2 ~ c#2@2 ~ c2@2 ~ a#1@2 ~",
  I: "d#2 ~ a#1 ~ d#2 ~ d#2 d2", J: "c2 ~ g1 ~ c2 ~ c2 a#1", K: "g#1 ~ d#2 ~ d2 ~ a#1 ~",
  L: "d#2@3 ~@3 a#1@3 ~@2 d#3 d#2@2 d#3 d2@2 d3 c2@2 c3 a#1@2 ~", M: "~@15 a#1@2 a#2 c2@2 c3 d2@2 d3",
  N: "g#1 ~ d#2 ~ a#1@2 ~@2",
})).s("gm_tuba").gain(0.4)

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

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

// drums · hihat
const hihat = s("hh").struct("<~@15 A ~@3 A B ~@14 A B ~@11 C@2 D A B ~@9>".pickRestart({
  A: "~ x ~ x ~@4", B: "~@6 x ~@2 x ~ x ~@12", C: "~ x ~ x ~ x ~@2", D: "~ x ~ x ~ x ~ x",
})).gain(0.4)

// drums · open hat
const open_hat = s("oh").struct(`<
  ~@3 A ~ B C ~ D ~@3 E@2 F G E@2 F G H F@2 I E@2 F I E@2 F I E@2 F G H F@2 I E@2 F I E@2 F I G@2 ~@2 H F@2 I E@2 F I J
  ~
>`.pickRestart({
  A: "~ x ~@4", B: "~@13 x ~@10", C: "~@5 x ~@2", D: "~@7 x", E: "~ x ~ x ~ x ~@2", F: "~ x ~ x ~ x ~ x", G: "x",
  H: "~@3 x ~@10 x ~@6 x ~@2", I: "~ x ~ x ~@4", J: "~@3 x ~@5 x ~@13 x",
})).gain(0.4)

// drums · open hat · soft notes
const open_hat_soft = s("oh").struct("<~@3 A ~ B C ~ D E ~@52>".pickRestart({
  A: "~ x!3 ~ x!3 ~@16", B: "~@10 x!3 ~ x!4 ~@6", C: "~@12 x!3 ~ x!3 ~@5", D: "~@15 x!6 ~ x!2", E: "x!4 ~@20",
})).gain(0.2)

stack(trumpet, flute, trumpet_2, tenor_sax, trombone, bass, kick, snare, hihat, open_hat, open_hat_soft)