Strudelify

Vira e mexe

Andre & Adriano

KeyE majorTempo90 bpm
0:00/0:00
// Vira e mexe — Andre & Adriano
// 90 bpm, 4/4, key E major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: metre changes (2/4 at bar 1, 4/4 at bar 2, 2/4 at bar 21, 4/4 at bar 21, ...) are rendered on a constant 4/4 grid of one bar per cycle
// note: duplicate parts dropped: ch 8 trombone (copy of ch 3 brass section)
// note: Full arrangement: all 68 bars on a 16-step grid, each part at one level. Source detail keeps the original performance.
setcpm(90/4)

// Notation: c3@3 lasts 3 steps · ~ is a rest · [c3,e3] is a chord · "a, b" plays two voices at once.
// A part's distinct bars are riffs (A, B, C...) played in order: edit a riff to change every repeat.

// chords · synth bass 1
const synth_bass_1 = note(`<
  ~@3 A B C B C B C B D E F G H E F G H I J K L M C N O P C N Q R B C B S F@2 T U V W X Y Z W X AA AB ~@7 AC W X Y Z W X
  AD AE AF ~
>`.pickRestart({
  A: "[e4,f#4,b4] ~ [e4,f#4,b4] ~ [e4,f#4,b4]!2 ~ [e4,f#4,b4]!3 [f#4,b4] [e4,f#4,b4]!2 [f#4,b4] [d#4,f#4,b4] ~", // Esus2 B5 Esus2 B5 B
  B: "~@2 [b3,e4,g#4]!2 ~@2 [b3,e4,g#4]!2 ~@2 [c#4,e4,a4]!2 ~@2 [c#4,e4,a4]!2", // E A
  C: "~@2 [b3,e4,g#4]!2 ~@2 [b3,e4,g#4]!2 ~@2 [d#4,f#4,b4]!2 ~@2 [d#4,f#4,b4]!2", // E B
  D: "~@2 [b3,e4,g#4]!2 ~@2 [b3,e4,g#4]!2 ~@2 [e4,f#4,b4]!2 ~@2 [d#4,f#4,b4]!2", // E Esus2 B
  E: "~@2 [b3,e4,g#4]!2 ~@2 [b3,e4,g#4]!2 ~@2 [b3,d#4,g#4]!2 ~@2 [b3,d#4,g#4]!2", // E G#m
  F: "~@2 [c#4,e4,g#4]!2 ~@2 [c#4,e4,g#4]!2 ~@2 [b3,d#4,g#4]!2 ~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
  AD: "[b3,e4,g#4] ~@7 [d#4,f#4,b4] ~@7", // E B
  AE: "[e4,a4,c#5]@3 [e4,g#4,b4]@3 [e4,f#4,a4]@3 [e4,g#4,b4]@2 ~ [e4,a4,c#5] [e4,b4] [e4,a4] ~", AF: "[b3,e4,g#4]",
})).s("gm_synth_bass_1").gain(0.36)

// other · brass section
const brass_section = note(`<
  ~@3 A B C B D E F G H ~ I ~ J K L ~ M N O P Q R S T ~ U S V W X B C G Y Z AA AB AC AD AE AF ~ AG AE AH ~ AI ~@7 AJ AE
  AK ~ AL AE AM AN AO AP ~
>`.pickRestart({
  A: "b5 ~ b5 ~ b5!2 ~ b5!8 ~", B: "e5!2 ~ e5 g#5 ~ b5 ~@5 c#6 b5 g#5 f#5", C: "e5!2 ~ e5 c#5 ~ b4@7 ~@3",
  D: "e5!2 ~ e5 c#5 ~ f#5@6 ~@4", E: "~@3 e6 g#6 ~ b6 ~@5 c#7 b6 g#6 f#6", F: "e6!2 ~ e6 c#6 ~ b5@7 ~@3",
  G: "e6!2 ~ e6 g#6 ~ b6 ~@5 c#7 b6 g#6 f#6", H: "e6!2 ~ e6 c#6 ~ f#6@8 ~@2", I: "~@10 d#6 ~ d#6 c#6 b5 ~",
  J: "~@10 b5 ~ b5 c#6 d#6 f#6", K: "e6 ~@15", L: "~@10 g#5 b5 ~ d#6 b5 ~", M: "~@10 b5 c#6 ~ d#6 ~ f#6",
  N: "d#6@4 c6@4 c#6 ~@7", O: "~@2 d#6 b5 ~@12", P: "~@2 g#5 b5 ~@12", Q: "a5@4 b5@3 ~",
  R: "~@2 e5 f#5 ~ g#5 ~ b5 a5@4 b5@3 ~", S: "~@10 c#6 d#6 b5 ~@3", T: "~@10 d#6 e6 c#6 ~@3",
  U: "~@9 g#6 f#6 e6 b5 ~@3", V: "~@10 d#6 e6 c#6@2 b5@2", W: "a5 ~@3", X: "~@10 e6 c#6 ~ b5 g#5 f#5",
  Y: "e6!2 ~ e6 c#6 ~ f#6@6 c6@4", Z: "~@10 d#6 b5 ~@4", AA: "~@10 g#5 b5 ~@4", AB: "~ a5",
  AC: "b5@6 ~@4 e5 f#5 ~ g#5 ~ b5", AD: "a5@4 b5@3 ~@9", AE: "~@2 c#6 d#6 b5 ~@11", AF: "~@2 d#6 e6 c#6 ~@11",
  AG: "~ g#6 f#6 e6 b5 ~@11", AH: "~@2 d#6 e6 c#6@2 b5@2 a5@4 ~@4", AI: "~@2 e6 c#6 ~ b5 g#5 f#5 ~@8",
  AJ: "e6@5 c#6 b5 c#6 e6 ~@7, d#6 ~@15", AK: "~@2 d#6 e6 c#6@2 b5@2 a5@3 ~@5", AL: "e6 c#6 b5 c#6 b5 ~@11",
  AM: "~@2 d#6 e6 b5@4 a5@6 ~@2", AN: "e6 ~@7 b5 ~@7", AO: "a6@3 g#6@3 f#6@3 g#6@3 a6 g#6 f#6@2", AP: "e6",
})).s("gm_brass_section").gain(0.36)

// chords · acoustic guitar steel
const acoustic_guitar_steel = note(`<
  ~@3 A B C D E F G H I J K L M N O L P Q R S T U E V W X Y Z AA AB F G H I AC AD AE AF AG AH AI E AJ AH AK C AL ~@7 AM
  AH AI E AJ AH AK AN AO AP ~
>`.pickRestart({
  A: "[b3,e4,f#4] ~ [b3,e4,f#4] ~ [b3,e4,f#4]!2 ~ [b3,e4,f#4]!5 [e4,f#4] [b3,e4,f#4] [b3,d#4,e4,f#4] ~", // Bsus4 Esus2 Bsus4 B
  B: "[g#3,b3,e4]@2 ~ [g#3,b3,e4] [e4,g#4]@2 [g#3,b3,e4]@2 [a3,c#4,e4]@2 ~ [a3,c#4,e4] [e4,a4] ~ [a3,c#4,e4]@2", // E A A5 A
  C: "[g#3,b3,e4]@2 ~ [g#3,b3,e4] [e4,g#4]@2 [g#3,b3,e4] ~ [f#3,b3,d#4]@2 ~ [f#3,b3,d#4] [d#4,f#4]@2 [f#3,b3,d#4] ~", // E B D#m B
  D: "[g#3,b3,e4]@2 ~ [g#3,b3,e4] [e4,g#4]@2 [g#3,b3,e4]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2 [g#3,b3,e4]@2", // E Amaj7 C#m E
  AK: "[g#3,c#4,e4]@2 ~ [g#3,c#4,e4] [e4,g#4]@2 [g#3,c#4,e4] ~ [a3,c#4,e4]@2 ~ [a3,c#4,e4] [e4,a4]@2 [a3,c#4,e4]@2", // C#m E C#m A A5 A
  AL: "[g#3,b3,e4]@2 ~ [g#3,b3,e4] [e4,g#4]@2 [g#3,e4,a4] ~@9", // E Amaj7
  AM: "[g#3,b3,e4] ~ [e4,g#4]@2 [a3,c#4,e4] ~ [e4,a4] ~ [g#3,b3,e4]@2 ~ [g#3,b3,e4] [e4,g#4]@2 [g#3,b3,e4]@2", // E A A5 E
  AN: "[b3,e4,g#4] ~@7 [b3,d#4,f#4] ~@7", // E B
  AO: "[a3,e4,a4]@2 ~ [g#3,e4,g#4]@2 ~ [f#3,c#4,f#4]@3 [g#3,e4,g#4]@3 [a3,e4,a4] [g#3,e4,g#4] [f#3,f#4]@2", // A5 C#m F#5 C#m A5 C#m F#
  AP: "[e3,g#3,e4]", // E
})).s("gm_acoustic_guitar_steel").gain(0.41)

// bass · electric bass finger
const bass = note(`<
  ~@3 A B C B D E F G H I J K L M N O P Q R S T U V W X Y V Z AA AB E AC E AD AE AF AG AH AI AJ AK AL AM AN AO AP AQ ~@7
  AR AJ AK AL AM AN AO AS AT AU ~
>`.pickRestart({
  A: "b1 ~ b1 ~ b1!2 ~ b1!8 ~", B: "e1@2 ~ e1 g#1 ~ b1 ~ a1 ~@2 a1 c#2 ~ e2 ~",
  C: "e1 ~@2 e1 g#1 ~ b1 ~ b0 ~@2 b0 d#1 ~ f#1 ~", D: "e1@2 ~ e1 g#1 ~ c#2 ~ b1 ~ c#2 ~ d#2 ~ b1 ~",
  E: "e1@2 ~ e1 g#1 ~ b1@2 a1@2 ~ a1 c#2 ~ e2 ~", F: "e1 ~@2 e1 g#1 ~ c#2@2 b1 ~@2 b1 d#2 ~ f#2@2",
  G: "e1 ~@2 e1 g#1 ~ b1@2 a1 ~@2 a1 c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8 C A@11 C A@4 D A@15 D A@6 E F G ~>".pickRestart({
  A: "x ~@2 x ~@2 x ~ x ~@2 x ~@2 x ~", B: "x ~ x ~ x!2 ~ x!8 ~", C: "x ~@2 x ~@2 x ~ x ~@7",
  D: "x ~@7 x ~@2 x ~@2 x ~", E: "x!2", F: "x ~@2 x ~@2 x ~@2 x ~@6", G: "x",
})).gain(0.46)

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

// drums · low tom
const low_tom = s("lt").struct("<~@11 A ~@3 A ~@8 A ~@11 A ~@4 B ~@15 B ~@10>".pickRestart({
  A: "~@15 x", B: "~@7 x ~@8",
})).gain(0.41)

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

// drums · mid tom
const mid_tom = s("mt").struct("<~@8 A B ~ C ~@3 D ~@4 E ~@3 F ~@9 B ~ C ~@4 G ~@9 H ~ I ~@3 G ~@7 J ~@2>".pickRestart({
  A: "x", B: "~@13 x!2 ~", C: "~@13 x!3", D: "~@6 x!2", E: "~ x ~@2", F: "~@12 x!3 ~", G: "~@4 x!3 ~@9",
  H: "~@5 x!2 ~@9", I: "~@7 x ~@8", J: "~@7 x",
})).gain(0.36)

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

// drums · high tom
const high_tom = s("ht").struct(`<
  ~@8 A B ~ C ~@3 D ~@4 E ~@3 F ~@3 G ~@5 B ~ H ~@4 I ~@3 J ~@5 K ~ L ~@3 M ~@3 J ~@3 N ~@2
>`.pickRestart({
  A: "x", B: "~@13 x!2 ~", C: "~@9 x!4 ~ x!2", D: "~@9 x ~ x ~@4", E: "~ x ~@2", F: "~@9 x!3 ~ x!2 ~", G: "~@7 x",
  H: "~@9 x!4 ~@2 x", I: "~ x!3 ~ x!2 ~@9", J: "~@3 x ~@4", K: "~@5 x!2 ~@9", L: "~@7 x ~@8", M: "~ x!3 ~@12",
  N: "~@12 x!2 ~@2",
})).gain(0.36)

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

// drums · bongos
// … 51 more lines