Strudelify

Change the World

Babyface

KeyE majorTempo97 bpm
0:00/0:00
// Change the World — Babyface
// 97 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: pitch bends are ignored
// note: Full arrangement: all 96 bars on a 16-step grid, each part at one level. Source detail keeps the original performance.
setcpm(97/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 · acoustic guitar steel
const acoustic_guitar_steel = note(`<
  ~ A@2 B@4 C@2 D E F G H E I J K L M N O E F P Q R S T U V W X@2 Y@2 Z@3 E F G H E I J K L M N O E F P Q R S T U V W AA
  AB W X@2 Y@2 AC@3 E F P Q R S T U V W AD W AD W AE@2 AF@3 AG@3 ~@3
>`.pickRestart({
  A: "[[b3,d4,e4,g#4]@4 ~@2 [e4,f#4,a4]@5 ~@11 b4@9 ~, ~@14 [d4,e4,g4]@17 ~]/2", // E7 F#m7 Em7
  B: "[[d4,e4,g4,b4]@4 ~@2 [e4,f#4,a4,c#5]@5 ~@3 [d4,e4,g#4]@12 ~@6 g#4@4 ~@2 [e4,f#4,a4,c#5]@6 ~@10 e6@8 ~@2, ~@14 b3@9 ~@3 b3@10 ~@28, ~@28 d4@8 ~@10 [d4,e4,g4,b4]@17 ~, ~@30 e4@5 ~@29]/4", // Em7 F#m7 E7 F#m7 Em7
  C: "[~@2 g4@2 e4 ~ [e4,f#4,a4,c#5]@5 ~@15 a2 b2 g#2@2 e2@2, [d4,b4]@4 ~@10 [e4,f#4,a4]@17 ~]/2", // F#m7 G F#m7
  D: "[e3,g#3,b3]@3 ~ [e3,f#3,a3,c#4]@3 ~", E: "[e3,g#3,b3,d4]@7 ~", F: "[e3,g#3,b3,d4]@3 ~ [e3,f#3,a3,c#4]@3 ~",
  G: "[e3,g#3,b3]@7 ~", H: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3]@9 ~",
  AC: "[[d4,e4,g4,b4]@4 ~@2 [e4,f#4,a4,c#5]@5 ~@3 [d4,e4,g#4]@12 ~@6 [e3,g#3,b3]@7 ~ [e3,f#3,a3,c#4]@6 ~@2, ~@14 b3@9 ~@3 b3@6 g#4@4 ~@12, ~@7 d4@2 ~@3, ~@30 e4@5 ~@13]/3", // Em7 F#m7 E7 E F#m7
  AD: "[b2,g#3] ~ [d3,g3,a#3] ~ [c#3,e3] ~@3", AE: "[[b2,g#3] ~ [d3,g3,a#3] ~ [c#3,e3]@11 ~]/2",
  AF: "[~@8 [b3,d4]@4 ~@2 [e4,f#4,a4]@5 ~@11 b4@9 ~ [d4,e4,g4,b4]@5 ~@3, ~@22 [d4,e4,g4]@17 ~@9]/3", // Bm F#m7 Em7
  AG: "[[e4,f#4,a4,c#5]@7 ~@4 [b3,d4,g#4]@22 ~@15, ~@11 e4@36 ~]/3", // F#m7 G#dim
})).s("gm_acoustic_guitar_steel").gain(0.19).pan(0)

// bass · electric bass finger · "Eric Clapton"
const bass = note(`<
  ~ A@2 B@2 A@2 C@2 D@2 E@2 F@4 G@4 H@2 I J K L M N O P Q R@2 S@2 B@2 T U V W X Y Z AA AB AC AD AE Z AF AG AH AI AJ M N
  O P Q AK AL Q R@2 AM@2 AN@2 Z AF AG AH AI AJ M N O P Q AK Q AK Q R@2 AO@3 AP@2 ~@4
>`.pickRestart({
  A: "[e2@6 f#2@8 g2@17 ~]/2", B: "[g2@6 f#2@8 e2@17 ~]/2", C: "[g2@6 f#2@9 b1@17]/2", D: "[e2@15 e1]/2",
  E: "[e2@30 b1 d2]/2", F: "[~@22 e3@9 ~@31 e1 g1, e2@59 ~@5]/4", G: "[a1@22 a2@4 a1@35 ~ b1 d2]/4", H: "e2/2", I: "e2",
  J: "g#1@6 g#2@4 g#1@2 g#2@2 g#1 ~", K: "f#1@4 ~ f#1 a#1 f#2 g#1@5 ~ g#1@2", L: "c#2@3 c#2 c#2@4",
  M: "f#1 f#2 g#1 g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4,c#5]@6 ~ f#4 [g#3,e4,g#4]@7 ~ [g3,g#3,b3,d4,e4,g4]@4 [g3,a#3,d4]@3 ~ [e3,f#3,g#3,a3,c#4]@4 ~@4, ~@8 a4@15 ~ b4@11 ~@13, ~@16 a3@7 ~@25]/3", // C#m7 C7 Bm C#m E7 Gm F#m7
  U: "[[e4,c#5]@6 ~ f#4 [g#3,e4,g#4]@7 ~ [g3,g#3,b3,d4,e4,g4]@4 [g3,a#3,d4]@3 ~ [e3,f#3,g#3,a3,c#4]@4 ~@4, a3@7 ~ b4@11 ~@13]/2", // C#m E7 Gm F#m7
  V: "[[e4,c#5]@6 ~ f#4 [g#3,e4,g#4]@7 ~ [g3,g#3,b3,d4,e4,g4]@4 [g3,a#3,d4]@3 ~ [e3,f#3,a3,c#4]@24, a3@7 ~ b4@11 ~@5 g#3@4 ~@20]/3", // C#m E7 Gm F#m7
  W: "[~@15 a5@5 ~@3 g5@15 ~@2 [g5,b5]@5 ~@3 [f#5,a5,c#6]@9 ~@3 [g#5,d6]@26 ~@10, ~@8 g#5@4 ~@2 [f#5,c#6]@6 ~@39 b5@26 ~@11, ~@9 e5@12 ~ [e5,b5]@16 ~@2 e5@45 ~@11]/6", // G F#m G#dim F#5 E5
})).s("gm_epiano1").gain(0.29).pan(0)

// chords · acoustic guitar steel · "Edmonton, Alberta, Canada"
const acoustic_guitar_steel_2 = note(`<
  ~ A@2 B@2 C@2 D@2 E@4 F@2 G@2 H@4 I@3 J K L M N O P Q R@2 S@2 B@2 T U V W V X Y@2 Z AA AB AC AD AE AF AG ~ L AH AI O P
  Q AJ@2 Q R@2 ~@9 L M N O P Q AK@4 AL@2 AM@7 ~@2
>`.pickRestart({
  A: "[g#3 ~ g#3 a3@3 ~ b3@7 ~@2, e3 ~ e3@26 ~@4, ~@3 d4@4 ~]/2",
  B: "[e3 ~@11 g#3@2 e3@15 ~@3, b3@3 a3@4 ~@9, ~ e3@5 ~@10]/2",
  C: "[~@2 e3@2 ~@4 a3@4 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@14 ~@4 e3 ~@18 e3@41 ~@12, ~@10 e3@26 ~@7 e3@13 g#3@38 ~@18, ~@5 d4@4 ~ b3@2 a3@3 ~@13]/7",
})).s("gm_acoustic_guitar_steel").gain(0.22)

// chords · rock organ
const rock_organ = note(`<
  A B@6 C@2 ~@14 D E F G H G I J K L@2 M@5 ~@13 D E F G H G I J K N O P Q@2 R S@2 T@3 U V F G H G I J K N P N P W@2 X@3
  Y@3 ~@3
>`.pickRestart({
  A: "~@13 [f4,g4] [g4,a4,b4,c5,d5] [d5,e5,f5,g5,a5,b5,c6,d6]", // Fsus2 G Dm7
  B: "[[b5,c6,d6] ~@57 b5@2 c#6@2 e6@34, e6@56 g#5@5 ~ d#6 ~@33]/6", C: "[~@15 b5@17, e6]/2",
  D: "~@12 [a#3,c#4,d#4,f#4] [g#4,a#4,c#5,d#5] [f#5,g#5,a#5] c#6", E: "c#6@4 c6@3 ~, g#5",
  F: "[f#5,a5]@7 ~ g#5@8, ~@4 c6@3 ~", G: "[c#6,e6]", H: "[f#5,a5] [g#5,c6]", I: "[f#5,a5]@4 [g#5,c6]@3 ~",
  J: "[c#6,e6]@4 [c6,e6]@4 [b5,d6]@7 ~", K: "[a5,c#6] [e5,g#5]", L: "[b5 a#5 a5@5 ~]/2",
  M: "[e6@56 e6@17 ~@7, d6 ~@79]/5", N: "b5 a#5 a5 ~", O: "[b4,e5]", P: "c#6 [e5,g#5]",
  Q: "[b5 a#5 [e5,f#5,c#6]@5 ~]/2", R: "[e5,g#5] [f#5,a5]", S: "[b5@15 ~ b5@8 [f#5,a5]@8, g5@3 ~]/2",
  T: "[[e5,g#5]@3 ~ b4 c#5 e5 ~ e5 g#5 b5 ~@2 c#6 e6@2 [g6,g#6] ~ e6@20 ~@5 [g5,a5] [c5,d5,e5,f5] b4 [b4,c5] [d5,e5,f5], ~@12 b5@31 ~@2 a4@2 ~, ~@18 f6 ~@29]/3", // E G#maj7 Gsus2 Dm7 Cmaj7 Dm
  U: "[d5,g5,b5]@7 ~ [e5,a5]@6 ~@2, a5 ~@15", V: "~@4 c6@3 ~", W: "[b5 a#5 [c#5,f#5,e6]@5 ~]/2",
  X: "[~@9 [e5,g#5,b5]@5 [f#5,a5,c#6]@8 [b5,d6]@18 d5@7 ~, ~@11 g5@13]/3", // E F#m Bm
  Y: "[a5@12 ~ g#5@34 ~, e5@23 ~, ~@12 b5@35 ~]/3",
})).s("gm_rock_organ").gain(0.19).pan(1)

// other · acoustic guitar nylon
const acoustic_guitar_nylon = note("<~@66 A B C D E F G H ~@17 I@2 ~@3>".pickRestart({
  A: "~@2 [b4,d5] ~ [b4,d5] ~ [b4,d5] ~ [b4,d5] ~ [b4,d5] ~ [b4,d5] ~ [b4,d5] ~", B: "b4@2 a4 g4@4 ~",
  C: "~@4 e4@2 d4@2 e4@2 d4@2 b3@2 d4 ~, ~ g4@6 ~", D: "a3 g3 e3@10 e3 a3 b3 ~",
  E: "~@3 b4 ~ d5 ~ e5!2 ~ e5!2 ~ e5 d5 b4", F: "~ a4 b4 a4 g4!2 ~ [g4,a4] e4@6 ~@2",
  G: "~@2 g5@4 e5 ~ e5@4 g#5@2 e5@2", H: "d#5@2 [c5,f#5] [c5,e5]",
  I: "[d3 e3 d3 ~ b2 a2 b2 a2 ~ g2 a2@2 ~ e2@12 ~@7]/2",
})).s("gm_acoustic_guitar_nylon").gain(0.41)

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

// drums · snare
const snare = s("sd").struct("<~@37 A B@11 C B@11 D B@19 D B D B ~@11>".pickRestart({
  A: "~@5 x!3", B: "~ x ~ x", C: "~ x ~@2", D: "~@3 x",
})).gain(0.31).pan(0)

// drums · hihat
const hihat = s("hh").struct(`<
  ~ A B A@2 B@2 A@2 B@2 A@2 B@2 A@2 B@2 A@2 B@2 A@2 B@2 A@2 B@2 A@2 B C B A@2 B@2 A@2 B@2 A@2 B@2 A@2 B@2 A@2 B@2 A@2
  B@2 A@2 B A@2 B C B A@2 C B A@2 B@2 A@2 B@2 A@6 B D A E F ~@5
>`.pickRestart({
  A: "x!8", B: "x!7 ~", C: "~ x!7", D: "~@5 x!3", E: "x ~ x ~ x ~@3 x ~@2 x ~ x ~@2", F: "x ~ x ~@2 x ~@2 x ~@7",
})).gain(0.4).pan(0)

// drums · low tom
const low_tom = s("lt").struct("<~@49 [~@5 x ~@2] ~@3 [~@5 x!2 ~] ~@19 [~@7 x] ~@22>").gain(0.31).pan(0)

// drums · mid tom
const mid_tom = s("mt").struct("<~@45 A ~@3 B ~@3 C ~@13 A ~@3 A ~ D ~@22>".pickRestart({
  A: "~@5 x ~@2", B: "~@6 x!2", C: "~@7 x", D: "~@10 x ~@2 x ~@2",
})).gain(0.31).pan(0)

// drums · open hat
const open_hat = s("oh").struct(`<
  ~@2 A ~@2 A@2 ~@2 A@2 ~@2 A@2 ~@2 A@2 ~@2 A@2 ~@2 A@2 ~@2 A@2 ~@2 A ~ A ~@2 A@2 ~@2 A@2 ~@2 A@2 ~@2 A@2 ~@2 A@2 ~@2
  A@2 ~@2 A ~@2 A ~ A ~@3 A ~@2 A@2 ~@2 A@2 ~@6 A ~@2 B C ~@5
>`.pickRestart({
  A: "~@7 x", B: "~@3 x ~@4", C: "~@11 x ~@4",
})).gain(0.4).pan(0)

// drums · high tom
const high_tom = s("ht").struct("<~@45 [~@7 x] ~@21 [~@7 x] ~@3 [~@7 x] ~@24>").gain(0.31).pan(0)

// drums · crash
const crash = s("cr").struct("<~@54 A ~@4 B ~@2 A ~@11 A ~@4 B ~@2 A ~ A ~@11>".pickRestart({
  A: "x", B: "x!2",
})).gain(0.31).pan(0)

// … 14 more lines

More by Babyface