Strudelify
KeyD majorTempo127 bpm
0:00/0:00
// 1-2-3 — Estefan Gloria
// 127 bpm, 4/4, key D major. 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 118 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(127/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 · alto sax
const alto_sax = note("<~@36 A B C ~@57 A B C ~@19>".pickRestart({
  A: "~@4 d4@3 ~ a4@4 b4@4", B: "d4@10 g4@3 ~ f#4@2", C: "d4@15 ~",
})).s("gm_alto_sax").gain(0.62)

// other · alto sax · soft notes
const alto_sax_soft = note("<~@36 [~@5 a#4 ~@2 g#4 ~@7] ~@59 [~@5 a#4 ~ g#4 ~@8] ~@21>").s("gm_alto_sax").gain(0.31)

// bass · acoustic bass · "ACOU BASS"
const bass = note(`<
  ~@3 A B C B C B C B C D E F G H D I J K L M N O P Q R B S B T B U B V W X W Y D E Z G H D I J K L M N O P Q R B S B T
  B U ~ AA D E Z G H D I J K L AB N O P Q R AC S B T AC S B T B S B T B U B V W X W Y ~@18
>`.pickRestart({
  A: "c3 ~ c3 ~@13", B: "g2 ~@2 g2 a2@2 a#2@2 b2@2 ~@5 c3", C: "~ c3 ~ c3 c4 ~ c3@2 d3@2 ~@6",
  D: "g2@4 ~@2 d3 ~ e3@3 ~ d3@4", E: "g2@3 ~@3 d3@2 e3@3 ~ d3@3 ~", F: "b2@3 ~@3 g2@2 b2@4 d3@4",
  G: "c3@2 ~ c3 ~ c3!2 ~ b2@2 c3@2 c3@2 d3 ~", H: "g2@4 ~@2 d3@2 e3@4 d3@3 ~", I: "b2@3 ~@3 g2@2 b2@3 ~ b3@2 b2@2",
  J: "a2@4 ~@2 e2@2 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3 ~@3 d3@2 e3@3 ~ d3@3 ~",
  E: "b2@3 ~@3 g2@2 b2@4 d3@3 ~", F: "c3@2 ~ c3 ~ c3!2 ~ b2@2 c3@2 c3@2 d3 ~", G: "g2@4 ~@2 d3@2 e3@4 d3@3 ~",
  H: "b2@3 ~@3 g2@2 b2@3 ~ b3@2 b2@2", I: "a2@4 ~@2 e2@2 a2@4 b2@3 ~", J: "c3@3 ~@3 g2 ~ c3@3 ~ d3@3 ~",
  K: "b2 ~ b2 ~@3 b2 ~ b2@2 ~ b2 ~@2 b2 ~", L: "a#2@3 ~@3 f2 ~ a#2@3 ~ a#2@3 ~", M: "a2@3 ~@3 a2@2 ~@2 a2 ~ b2@3 ~",
  N: "c3@4 ~@2 g2 ~ c3@3 ~ f3@4", O: "b2@2 ~ b2@2 ~ b2 ~ b2@4 ~ a#2 g2 b2",
  P: "c3@2 ~ c3@2 ~ c3 ~ c3@2 c3@2 ~@2 c3 c#3", Q: "d3@2 d#3 d3@2 ~ d3 ~ d3@2 ~ d3@2 d3 ~@2",
  R: "g2 ~@2 g2 a2@2 a#2@2 b2@2 ~@5 c3", S: "~ c3 ~ c3 c4 ~ c3@2 ~ d4 ~@2 d4 ~ d4 ~, ~@4 d3 ~@3",
})).s("gm_acoustic_bass").gain(0.16)

// chords · epiano1 · "E.PIANO 1"
const epiano1 = note(`<
  ~@12 A B C D A B E F G H I J G K L M ~@8 A N A O P@2 Q R S@2 T U G H I J G K L M ~@8 V@2 Q L W@2 Q X G H I J G K L M
  ~@16 A N A O ~@18
>`.pickRestart({
  A: "[b4,d5,f#5]", B: "[g4,b4,d5]", C: "[f#4,b4,d5]", D: "~@3 f#5, [b4,e5,g5]", E: "[f#4,b4,d5,a5]",
  F: "g5@8 ~@4 a5@3 ~, [e4,b4,e5]@15 ~, ~@8 g5@7 ~", G: "[e5,g5,b5]", H: "[d4,d5,f#5,a5]", I: "[d5,f5,a5]",
  J: "g5@2 ~ a5, [c5,e5], ~ g5", K: "a5@5 ~@2 f#5, d5, f#5@7 ~, ~@5 a5@3", L: "[c5,e5,g5]", M: "[d5,f#5,a5]@15 ~",
  N: "[b4,e5,g5]", O: "[b4,e5,g5] ~@15", P: "[b5@7 b5, [d5,f#5]]/2", Q: "[d5,f#5,a5]", R: "~@3 e6, [c5,e5,g5], ~ a5",
  S: "[d6@7 d6, [f#5,b5]]/2", T: "a5@2 ~ e6, [d5,f#5], ~ a5", U: "g5@2 ~ a5, [c5,e5,d6], ~ g5",
  V: "[[d5,f#5,b5]@6 f#5!2, ~@3 [d5,b5]]/2", W: "[[d5,b5]@6 ~ f#5, f#5@7 ~, ~@3 [d5,b5]]/2",
  X: "[c5,e5,g5]@8 [c5,e5,g5]@4 [d5,f#5,a5]@3 ~", // C D
})).s("gm_epiano1").gain(0.44)

// chords · epiano1 · "E.PIANO 1" · soft notes
const epiano1_soft = note("<~@100 A@2 B C D@2 E F G H I J G K L M ~@2>".pickRestart({
  A: "[b5@7 b5, [d5,f#5]]/2", B: "[d5,f#5,a5]", C: "~@3 e6, [c5,e5,g5], ~ a5", D: "[d6@7 d6, [f#5,b5]]/2",
  E: "a5@2 ~ e6, [d5,f#5], ~ a5", F: "g5@2 ~ a5, [c5,e5,d6], ~ g5", G: "[e5,g5,b5]", H: "[d4,d5,f#5,a5]",
  I: "[d5,f5,a5]", J: "g5@2 ~ a5, [c5,e5], ~ g5", K: "a5@5 ~@2 f#5, d5, f#5@7 ~, ~@5 a5@3", L: "[c5,e5,g5]",
  M: "[d5,f#5,a5]@15 ~", // D
})).s("gm_epiano1").gain(0.19)

// chords · vibraphone · "VIBRAPHON"
const vibraphone = note(`<
  ~@14 A B ~@2 C D ~ E ~ F ~ E ~@10 G H I ~@3 J K ~@2 J L ~ E ~ F ~ E ~@19 E ~ F M E ~@18 G H I ~@19
>`.pickRestart({
  A: "~@4 [g3,b3] ~ [a3,c4] ~ [b3,d4] ~@2 [b3,d4] ~@4", B: "[a3,c4] ~ [b3,d4] ~ [c4,e4] ~@2 [g3,c4] ~@8",
  C: "~@4 [b3,d4] ~ [c4,e4] ~ [d4,f#4] ~@2 [d4,f#4] ~@2 [d4,f#4] ~", D: "[e4,g4] ~ [f#4,a4] ~ [g4,b4] ~@11",
  E: "~@6 a3 b3 d4!2 ~ d4 ~@4", F: "~@6 [f3,a3] [g3,b3] c4!2 ~ [a3,c4] ~@4, ~@4 a3 ~@3",
  G: "~@4 [b4,d5]@3 ~ [f#5,a5]@3 ~ [g5,b5]@2 ~@2", H: "[b4,d5]@7 ~@3 [e5,g5]@2 ~@2 [d5,f#5] ~", I: "[b4,d5]@3 ~",
  J: "~@4 [b3,d4] ~ [c4,e4] ~ [d4,f#4] ~@2 [d4,f#4] ~@2 [b3,d4] ~", K: "[c4,e4] ~ [d4,f#4] ~ e4@2 ~@10, ~@4 g4 ~@11",
  L: "[e4,g4] ~ [d4,f#4] ~ [c4,e4]@4 ~@8", M: "~@3 b5@4 ~, ~ d5@6 ~, ~@2 e5@5 ~",
})).s("gm_vibraphone").gain(0.69)

// chords · vibraphone · "VIBRAPHON" · soft notes
const vibraphone_soft = note("<~@102 A B ~@2 A C ~ D ~ E ~ D ~@4>".pickRestart({
  A: "~@4 [b3,d4] ~ [c4,e4] ~ [d4,f#4] ~@2 [d4,f#4] ~@2 [b3,d4] ~", B: "[c4,e4] ~ [d4,f#4] ~ e4@2 ~@10, ~@4 g4 ~@11",
  C: "[e4,g4] ~ [d4,f#4] ~ [c4,e4]@4 ~@8", D: "~@6 a3 b3 d4!2 ~ d4 ~@4",
  E: "~@6 [f3,a3] [g3,b3] c4!2 ~ [a3,c4] ~@4, ~@4 a3 ~@3", // F G Am
})).s("gm_vibraphone").gain(0.21)

// chords · string ensemble 2 · "SLOWSTRIN"
const string_ensemble_2 = note(`<
  ~@20 A B C D A E F G ~@12 H@2 I F J@2 K L A B C D A E F G ~@16 A B C D A E F G ~@20 H@2 I ~@3 K ~@11
>`.pickRestart({
  A: "[e5,g5,b5]", B: "[d4,d5,f#5,a5]", C: "[d5,f5,a5]", D: "g5@2 ~ a5, [c5,e5], ~ g5",
  E: "a5@5 ~@2 f#5, d5, f#5@7 ~, ~@5 a5@3", F: "[c5,e5,g5]", G: "[d5,f#5,a5]@15 ~", H: "[d5,f#5,b5]/2",
  I: "[d5,f#5,a5]", J: "[f#5,b5,d6]/2", K: "[f#5,a5,d6]", L: "[c5,e5,g5]@7 ~",
})).s("gm_string_ensemble_2").gain(0.43)

// chords · string ensemble 2 · "SLOWSTRIN" · soft notes
const string_ensemble_2_soft = note("<~@103 A B@2 ~ C D E F G D H A I ~@2>".pickRestart({
  A: "[c5,e5,g5]", B: "[f#5,b5,d6]/2", C: "[c5,e5,g5]@7 ~", D: "[e5,g5,b5]", E: "[d4,d5,f#5,a5]", F: "[d5,f5,a5]",
  G: "g5@2 ~ a5, [c5,e5], ~ g5", H: "a5@5 ~@2 f#5, d5, f#5@7 ~, ~@5 a5@3", I: "[d5,f#5,a5]@15 ~",
})).s("gm_string_ensemble_2").gain(0.14)

// chords · acoustic guitar steel · "STEEL GTR"
const acoustic_guitar_steel = note(`<
  ~@20 A B C D A E ~ F ~@20 A B C D A E ~ F ~@7 G H I J K L M N@2 ~ O ~@44
>`.pickRestart({
  A: "[e5,g5,b5]@2 ~ [e5,g5,b5] ~@12", B: "[d5,f#5,a5]@2 ~ [d5,f#5,a5] ~@12",
  C: "~@2 [d5,f5,a5] ~@2 [d5,f5,a5] ~@2 [d5,f5,a5] ~@7", D: "~@2 [c5,e5,g5] ~@2 [c5,e5,g5] ~@10",
  E: "~@2 [d5,f#5,a5] ~@2 [d5,f#5,a5] ~@2 [d5,f#5,a5] ~@7", F: "e5 ~@15", G: "~@14 f#5 g5",
  H: "f#5@5 ~ e5 f#5 e5@5 ~ d5 e5", I: "d5@6 b4 c5 b4@3 ~ a4 b4 f#4 e4", J: "d4@10 e4 c4 d4 e4 b3 d4",
  K: "e4@5 ~ d4 c4 b3 [g3,a3] g3@2 g3@3 ~", L: "~@2 e4 d4 c4 d4 e4 ~ e4 ~@2 b3@4 ~",
  M: "e4 b3 c4 d4 b3 c4 d4 b3 e4@7 ~", N: "[b4@14 a4@5 g4 f#4 g4 a4 b4 a4 f#4 e4 d4@3 ~@2]/2",
  O: "~@2 [d5,f#5,a5] ~@2 [d5,f#5,a5] ~@2 [d5,f#5,a5] ~@2 [d5,f#5,a5] ~@4", // D
})).s("gm_acoustic_guitar_steel").gain(0.54)

// chords · acoustic guitar steel · "STEEL GTR" · soft notes
const acoustic_guitar_steel_2 = note("<~@24 A ~@27 A ~@55 B C D E F G ~ H ~@2>".pickRestart({
  A: "f5 ~@7", B: "[e5,g5,b5]@2 ~ [e5,g5,b5] ~@12", C: "[d5,f#5,a5]@2 ~ [d5,f#5,a5] ~@12",
  D: "~@2 [d5,f5,a5] ~@2 [d5,f5,a5] ~@2 [d5,f5,a5] ~@7", E: "~@2 [c5,e5,g5] ~@2 [c5,e5,g5] ~@10",
  F: "[e5,f5,g5,b5]@2 ~ [e5,g5,b5] ~@12", G: "~@2 [d5,f#5,a5] ~@2 [d5,f#5,a5] ~@2 [d5,f#5,a5] ~@7", H: "e5 ~@15",
})).s("gm_acoustic_guitar_steel").gain(0.14)

// chords · synth brass 2 · "SYNBRASS"
const synth_brass_2 = note(`<
  ~@26 A B C@2 D@2 C@2 E@2 ~@3 F ~@14 A B C@2 D@2 C@2 ~ G H@2 ~ I ~@3 J K ~ L ~ M ~ A B N@2 D@2 N@2 D@2 C@2 D@2 C@2 E@2
  ~@3 F ~@18
>`.pickRestart({
  A: "[c5,e5,g5]", B: "[d5,f#5,a5]@15 ~", C: "[~@7 [b5,e6,g6]@6 ~@3]/2", D: "[~@15 [b5,e6,g6]@12 ~@5]/2",
  E: "[~@14 [b5,e6,g6]@13 ~@5]/2", F: "[b4,e5,g5] ~@7",
  G: "~@2 [c5,e5,g5] ~ [e5,g5] ~@3 [c5,e5,f#5,a5,d6] ~ [c5,e5,f#5,a5,d6] ~ [f#5,a5,d6] ~@3, ~@2 c5 ~@3 [c5,e5] ~", // C Em D7 D C
  H: "[d5,f#5,b5]/2", I: "e5", J: "[e5,g5]@12 [d5,f#5,a5]@3 ~", K: "~@8 [b5,e6,g6]@2 ~ [b5,e6,g6] ~@4",
  L: "~@8 [a5,d6,f6]@2 ~ [a5,d6,f6] ~@4", M: "~@6 [b5,e6,g6] ~ [b5,e6,g6]@2 ~ [b5,e6,g6] ~@4",
  N: "[~@14 [b5,e6,g6]@11 ~@7]/2", // Em
})).s("gm_synth_brass_2").gain(0.57)

// chords · synth brass 2 · "SYNBRASS" · soft notes
const synth_brass_2_soft = note("<~@63 A ~@2 B C D@2 B E ~@42 F G H@2>".pickRestart({
  A: "~@13 g5 ~@2", B: "[d5,f#5,a5]", C: "[c5,g5]", D: "[d5,f#5,b5]/2", E: "c5@13 ~@3", F: "[c5,e5,g5]",
  G: "[d5,f#5,a5]@15 ~", H: "[~@7 [b5,e6,g6]@6 ~@3]/2",
})).s("gm_synth_brass_2").gain(0.29)

// other · piano · "A.PIANO 1"
const piano = note(`<
  ~@28 A ~ B ~ B ~ C ~ D ~ E ~@17 A ~ B ~ B ~ C ~@19 B ~@3 B ~ A ~ B ~ B ~ C ~ E ~ D ~@19
>`.pickRestart({
  A: "g3@2 ~ [g2,g3] a3@2 a#2@2 b2@2 ~@6, g2 ~@3 a2 ~ a#3 ~ b3 ~@7", // G
  B: "[g2,g3]@2 ~ [g2,g3] a3@2 [a#2,a#3]@2 [b2,b3]@2 ~@6, ~@4 a2 ~@11", // G A# B
  C: "[g2,g3]@2 ~ [g2,g3] [a2,a3]@2 a#3@2 [b2,b3]@2 ~@6, ~@6 a#2 ~@9", D: "g2 ~@5 g2 d2 g2!2 ~ g2 ~@4",
  E: "g2@2 ~@4 g2 d2 g2!2 ~ g2 ~@4",
})).s("gm_piano").gain(0.61)

// other · piano · "A.PIANO 1" · soft notes · G
const piano_soft = note("<~@116 [g3@2 ~ [g2,g3] a3@2 a#2@2 b2@2 ~@6, g2 ~@3 a2 ~ a#3 ~ b3 ~@7] ~>")
  .s("gm_piano").gain(0.08)

// drums · kick
const kick = s("bd").struct(`<
  A@3 B C D C@3 D@2 E F@15 E C@7 F@4 G F@15 E C@7 H F@15 I J D C K J D C K C@7 F@4 G F@9 ~@9
>`.pickRestart({
  A: "x!4", B: "x ~ x!2 ~ x ~ x ~ x ~ x ~@4", C: "x ~@2 x ~@2 x ~ x ~@6 x", D: "~ x ~ x ~@2 x ~ x ~@7",
  E: "~ x ~ x ~@2 x ~ x ~@3 x!3 ~", F: "x!2", G: "x", H: "~ x ~@2 x ~@3 x ~ x ~ x!2 ~@2",
  I: "~ x ~ x ~@2 x ~ x ~@3 x!4", J: "x ~@3 x ~@3 x ~@6 x", K: "~ x ~ x ~@2 x ~ x!2 ~@2 x!2 ~@2",
})).gain(0.64)

// drums · kick · soft notes
const kick_soft = s("bd").struct("<~@109 [x!2]!6 [~ x ~ x ~@2 x ~ x ~@3 x!3 ~] [x ~@2 x ~@2 x ~ x ~@6 x]!2>").gain(0.14)

// drums · clap
const clap = s("cp").struct("<~@11 A ~@15 A ~@27 A ~@23 A ~@38>".pickRestart({
  A: "~@8 x ~ x!3 ~@3",
})).gain(0.43)

// drums · clap · soft notes
const clap_soft = s("cp").struct("<~@115 [~@8 x ~ x!3 ~@3] ~@2>").gain(0.07)

// drums · snare
const snare = s("sd").struct(`<
  ~@3 A@7 B C A@7 D A@3 D A@3 C A@7 E A@2 F ~ A@7 D A@3 D A@3 C A@7 ~ A@7 E A@3 D A@3 C G A@2 H G A@2 H A@7 E A@2 F ~
  A@7 D ~@10
>`.pickRestart({
  A: "~ x ~ x", B: "~@2 x ~@3 x!2", C: "~ x ~@2 x ~@6 x!2 ~ x ~", D: "~@4 x ~@6 x!2 ~@3", E: "~@4 x ~@4 x ~ x ~ x ~@2",
  F: "~@4 x ~@7 x!4", G: "x!3 ~", H: "~@4 x ~@7 x!2 ~@2",
})).gain(0.71)

// drums · snare · soft notes
const snare_soft = s("sd").struct(`<
  ~@108
  [~ x ~ x]!3
  [~@4 x ~@6 x!2 ~@3]
  [~ x ~ x]!3
  [~ x ~@2 x ~@6 x!2 ~ x ~]
  [~ x ~ x]!2
>`).gain(0.21)

// drums · low tom
const low_tom = s("lt").struct(`<
  ~@10 A ~@8 B ~@3 B ~@11 B ~@11 B ~@3 B ~@11 C ~@7 B ~@3 B ~@4 D ~@2 E D ~@2 E ~@7 B ~@11 B ~@3 B ~@6
// … 53 more lines

More by Gloria Estefan