Strudelify

Latin Dance

Massada

KeyC majorTempo113 bpm
0:00/0:00
// Latin Dance — Massada
// 113 bpm, 4/4, key C major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: Tempo changes preserved in elapsed time; displayed bars use the dominant tempo.
// note: Full arrangement: all 50 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(113/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 · "Elect. Grand"
const piano = note(`<
  ~ A B C D A B E F A B C G A B E G A B H I A B H J A B E K A L M K A B E C A B N O A P ~@7
>`.pickRestart({
  A: "[c4,f4,a4] ~@2 [f2,c4,f4,a4] ~ [a2,e4,g4,c5] ~ [d4,g4,b4] ~@4 [c2,e4,g4,c5]@3 ~, f2@2 ~@5 g2@3 ~@6", // F Am7 G C
  B: "[f2,c4,f4,a4] ~@2 [f2,c4,f4,a4] ~ [a2,e4,g4,c5] ~ [g2,d4,g4,b4] ~@3 [c3,e4,g4,c5] [e4,g4,c5]@2 c3 ~, ~@12 c3 ~@3", // F Am7 G C
  C: "[c4,f4,a4] ~@2 [f2,c4,f4,a4] ~ [a2,e4,g4,c5] ~ [d4,g4,b4] ~@2 g2 ~ [c2,e4,g4,c5]@2 ~@2, f2@2 ~@5 g2@2 ~@7", // F Am7 G C
  D: "[c4,f4,a4] ~@2 [f2,c4,f4,a4] ~ [a2,e4,g4,c5] ~ [g2,d4,g4,b4] ~ g2 ~ g2 [c4,e4,g4]@4, f2@2 ~@10 c3 ~@3", // F Am7 G C
  E: "[f2,c4,f4,a4] ~@2 [f2,c4,f4,a4] ~ [a2,e4,g4,c5] ~ [d4,g4,b4] ~@2 g2 ~ [c2,e4,g4,c5]@2 ~@2, ~@7 g2@3 ~@6", // F Am7 G C
  F: "[c4,f4,a4] ~@2 [f2,c4,f4,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4,f4,a4] ~@2 [f2,c4,f4,a4] ~ [a2,e4,g4,c5] a2 [g2,d4,g4,b4] ~@4 [c4,e4,g4]@3 ~, f2@2 ~@10 c3 ~@3", // F Am7 G C
  P: "[f2,c4,f4,a4] ~@2 [f2,c4,f4,a4] ~ [a2,e4,g4,c5] ~ [g2,d4,g4,b4] ~@3 [c3,e4,g4,c5] [e4,g4,c5]@3 ~, ~@12 c3 ~@3", // F Am7 G C
})).s("gm_piano").gain(0.52)

// bass · acoustic bass · "Acbass"
const bass = note(`<
  ~ A B C D C E C F C G C H C I C J C I C K C B C H L G C M C G C N O E C P C I C J C Q R E S T U V@2
>`.pickRestart({
  A: "f2 ~@2 f2 ~@4 g2@4 c2@2 ~@2", B: "f2@2 ~ f2 ~@4 g2@2 ~ g2 c3@4", C: "f2@2 ~ f2 ~@4 g2@4 c2@3 ~",
  D: "f2@2 ~ f2 ~@2 f#2 ~ g2@3 f2 e2 ~ c2 ~", E: "f2@2 ~ f2 ~@4 g2@4 c3@3 ~", F: "f2@2 ~ f2 ~@2 f#2 ~ g2@2 ~ g2 c3@4",
  G: "f2@2 ~ f2 ~@4 g2@4 c3@4", H: "f2@2 ~ f2 ~@3 f#2 g2@4 c3@3 ~", I: "f2@2 ~ f2 ~@4 g2@3 ~ c3@4",
  J: "f2@2 ~ f2 ~@2 f#2 ~ g2@3 ~ c3@4", K: "f2@2 ~ f2 ~@3 f#2 g2@4 c3@4", L: "f2@2 ~ f2 ~@4 g2@4 c2@4",
  M: "f2@3 f2 ~@4 g2@4 c3@4", N: "f2@2 ~ f2 ~@2 f#2 ~ g2@4 c3@4", O: "f2@3 f2 ~@4 g2@4 c2@3 ~",
  P: "f2@2 ~ f2 ~@4 g2@4 e2@3 ~", Q: "f2@2 ~ f2 ~@4 g2@3 g2 c3@4", R: "f2@2 ~ f2 ~@4 g2@3 ~ c2@3 ~",
  S: "f2!2 a2@2 c3@2 d3 ~ d#3 ~ d3 ~ c3@3 ~", T: "f3@2 ~ f3 ~@2 a3@3 g3 ~ e3 ~@2 c3 ~, ~@6 g#3 ~@9",
  U: "f2@2 ~ f2@2 ~ a2 ~ g2@4 c2@3 ~", V: "[f2@2 ~ f2 ~@4 g2!2 ~ c2 c3@10 ~@10]/2",
})).s("gm_acoustic_bass").gain(0.7)

// other · flute · "Wood flute"
const flute = note("<~@9 A B C D E F G H ~@8 A I J D E F G H A K J L E F G H ~@9>".pickRestart({
  A: "~@3 [e5,f5,g5,a5] [b5,c6] b5 ~ d6 ~ c6@3 g5 ~ e5 ~", B: "a5@3 ~@2 b5 a5 g5@3 ~@2 c5!2 c5@2",
  C: "~@3 [f5,g5,a5] c6 b5 ~ d6 ~ c6@2 ~@2 g6 ~ g6", D: "g6 f6 ~ f6!2 e6 ~ e6!2 d6 ~ d6!2 e6 c6@2",
  E: "~@3 [b5,c6] ~ b5 ~ d6 ~ c6@3 g5 ~ e5 ~", F: "a5@4 ~ b5 a5 g5@3 ~@2 e5 c5@3",
  G: "~@3 [b5,c6] ~ b5 ~ d6 ~ c6 ~@3 f6 ~ e6", H: "~ g6 ~ f6 ~ a6 ~ g6 ~ c7 ~ b6 c7@4",
  I: "a5@3 ~@2 b5 a5 g5@4 ~ f5 e5 d5 e5", J: "c5 ~@2 [f5,g5,a5] c6 b5 ~ d6 ~ c6@2 ~@2 g6 ~ g6",
  K: "a5@3 ~@2 b5 a5 g5@3 ~@2 f5 e5 d5 e5", L: "c5 ~@2 [f5,g5,a5] c6 b5 ~ d6 ~ g5@3 ~@4",
})).s("gm_flute").gain(0.61)

// other · alto sax
const alto_sax = note("<~@17 A B C D E F G H A B C D E F G I A J C K E F G L ~@9>".pickRestart({
  A: "~@3 [a4,b4,c5] ~ b4 ~ d5 ~ c5@3 ~@2 c4 ~", B: "d4!2 c4 d4 ~ c4 ~ d4 ~ d4 c4 ~ [d#4,e4] ~ c4@2",
  C: "~@3 c5 ~ b4 ~ d5 ~ c5@3 ~ g4 ~ g4", D: "g4 f4 ~ f4!2 e4 ~ e4!2 d4 ~ d4!2 e4 c4@2",
  E: "~@3 c5 ~ b4 ~ [c#5,d5] ~ c5@3 ~@2 c4 ~", F: "d4!2 c4 d4 ~ g3 ~ d4 ~ d4 c4 ~ [d#4,e4] ~ c4@2",
  G: "~@3 [a4,b4,c#5] c5 b4 ~ d5 ~ c5@3 ~@2 d5 c5", H: "b4 a4 g4 ~ f4 g4 a4 b4@3 ~ c5 c5@2 ~@2",
  I: "b4 a4 g4 ~ f4 g4 a4 b4@2 ~@2 b4 c5@3 ~", J: "d4!2 c4 d4 ~@3 d4 ~ d4 c4 ~ [d#4,e4] ~ c4@2",
  K: "c4@2 ~ c5 ~ b4 ~ d5 ~ c5@3 ~@4", L: "b4 a4 g4 ~ f4 g4 a4 b4@3 ~ a4 [a4,b4] ~@3, ~@12 c5@3 ~",
})).s("gm_alto_sax").gain(0.7)

// chords · brass section · "Hit Brass"
const brass_section = note("<~@26 A B C ~ D E F ~ A B G ~ H E F ~@9>".pickRestart({
  A: "~@3 c4", B: "f4@7 ~ e4@7 ~", C: "d4@7 ~@2 [c5,e5,g5] ~ c5 [c5,e5,g5] ~ [c5,d5,g5]!2", D: "~@8 c4@3 ~ g3@3 ~",
  E: "c3@3 ~", F: "~ f4 ~ [c5,f5,a5] ~@5 f4 [c5,f5,a5] f4 [c5,e5,g5] ~ [c5,d5,g5]!2", G: "f4@7 ~ d4@4 g4@4, c4 ~@15",
  H: "~@8 c4@4 g3@3 ~",
})).s("gm_brass_section").gain(0.8)

// drums · kick
const kick = s("bd").struct("<~ A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@3 B A@7 B A@3 B A@3 B ~>".pickRestart({
  A: "x ~@2 x ~@12", B: "x ~@2 x ~@7 x ~@4",
})).gain(0.8)

// drums · snare
const snare = s("sd").struct(`<
  ~ A B ~ A@2 B ~ A@2 B ~ A@2 B ~ A@2 B ~ A@2 B ~ A@2 B ~ A@2 B ~ A@2 B ~@2 A B ~ C A B ~ A@2 B ~ A ~
>`.pickRestart({
  A: "~@3 x", B: "~@11 x!2 ~@3", C: "~@12 x ~ x!2",
})).gain(0.8)

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

// drums · open hat
const open_hat = s("oh").struct(`<
  ~@2 A ~ B ~ A ~ B ~ A ~ B ~ A ~ B ~ A ~ A ~ A ~ B ~ A ~ C ~ A ~ B D A ~ E ~ A ~ B D A ~ B ~ A ~ B ~
>`.pickRestart({
  A: "~@7 x", B: "~@15 x", C: "~@13 x ~@2", D: "x", E: "~@4 x ~@2 x",
})).gain(0.8)

// drums · tambourine
const tambourine = s("tb").struct(`<
  ~@4 A B C D C D C D C D C D C D C D C D C D C D C D C D C D C D C D@3 C D C D C D C D C D C ~
>`.pickRestart({
  A: "~@8 x!8", B: "x!2 ~ x ~ x ~ x", C: "~@2 x ~@3 x ~@3 x ~@3 x!2", D: "~ x ~ x ~ x ~ x",
})).gain(0.56)

// drums · cowbell
const cowbell = s("cb").struct("<~@5 [~ x!3 ~@12]!44 ~>").gain(0.72)

// drums · bongos
const bongos = s("bongo:4").struct(`<
  ~@10 A ~ B ~ A ~ B ~ A ~ B ~ A ~ B ~ A ~ B ~ A ~ B ~ A ~@3 A ~ B ~ A ~ B ~ A ~ B ~
>`.pickRestart({
  A: "~@9 x ~ x!2 ~ x!2", B: "~@9 x ~ x!4 ~",
})).gain(1.89)

// drums · bongos · soft notes
const bongos_soft = s("bongo:4").struct("<~@12 A ~@3 A ~@3 A ~@3 A ~@3 A ~@3 A ~@7 A ~@3 A ~@3 A ~>".pickRestart({
  A: "~@5 x ~@2",
})).gain(0.84)

// drums · bongos
const bongos_2 = s("bongo:18").struct(`<
  ~@9 A B@2 C A B@2 C A B@2 C A B@2 C A B@2 C A B@2 C A B@3 A B@2 C A B@2 C A B@2 C ~
>`.pickRestart({
  A: "~@7 x", B: "~ x ~@6", C: "~ x!2 ~@3 x ~@9",
})).gain(1.89)

// drums · congas
const congas = s("conga:13").struct(`<
  ~@9 A B C D A B C D A B C D A B C D A B C D A B C D A B C E A B C D A B E D A B C D ~
>`.pickRestart({
  A: "x!2 ~ x ~ x ~ x ~ x!5 ~@2", B: "~ x ~ x ~ x ~ x ~@8", C: "x!2 ~ x ~ x ~ x ~ x ~ x!2 ~@3",
  D: "x!2 ~ x ~ x ~ x!2 ~@7", E: "x!2 ~ x ~ x ~ x ~ x ~ x!2 ~ x ~",
})).gain(2.3)

// drums · congas · soft notes
const congas_soft = s("conga:13").struct(`<
  ~@10 A ~@3 A ~@3 A ~@3 A ~@3 A ~@3 A ~@3 A ~@3 A ~@3 A ~@3 A ~@3
>`.pickRestart({
  A: "x",
})).gain(1.54)

// drums · congas
const congas_2 = s("conga:33").struct(`<
  ~@9 A ~ B ~ A ~ B ~ A ~ B ~ A ~ B ~ A ~ B ~ A ~ B ~ A ~ B ~ A ~ B ~ A ~@3 A ~ B ~@2
>`.pickRestart({
  A: "~ x ~@14", B: "~@7 x",
})).gain(2.3)

// drums · congas · soft notes
const congas_soft_2 = s("conga:33").struct(`<
  ~@10 A@3 ~ A@3 ~ A@3 ~ A@3 ~ A@3 ~ A@3 ~ A@3 ~ A@3 ~ A@3 ~ A@3 ~
>`.pickRestart({
  A: "~ x ~@14",
})).gain(1.54)

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

// drums · triangle
const triangle_2 = s("triangles:35").struct("<[x ~ x!3 ~ x!2] x ~@48>").gain(4.18)

stack(
  piano, bass, flute, alto_sax, brass_section, kick, snare, hihat, open_hat, tambourine, cowbell, bongos, bongos_soft,
  bongos_2, congas, congas_soft, congas_2, congas_soft_2, triangle, triangle_2
)