Strudelify

American Made

American Made

KeyA♭ majorTempo128 bpm
0:00/0:00
// American Made — American Made
// 128 bpm, 4/4, key Ab 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 76 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
// note: Guitar parts that double another keep only their own notes (fills, solos): Guitar 3.
setcpm(128/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.

// bass · electric bass finger · "Bass 1"
const bass = note(`<
  ~@2 A B C@2 D E F G H E I J D E F G E I K ~ L M N O P Q R S@2 A B C@2 D E F G H E I J D E F G E I K ~ L M N O P Q R L
  T U V W X Y Z AA AB AC AD AE AF AG AH AI AJ
>`.pickRestart({
  A: "ab1@15 ~", B: "ab2", C: "[ab1@3 ab1@3 ab1@10]/2", D: "db2@4 ~@2 db2@2 ab2@5 ~ ab2@2",
  E: "db2@5 ~ db2 ~ ab2@4 db2@3 ~", F: "ab1@5 ~ ab1 ~ eb2@5 ~ eb2 ~", G: "ab2@5 ~ ab2@2 eb2@4 ab1@3 ~",
  H: "db2@5 ~ db2@2 ab1@5 ~ ab1 ~", I: "eb2@5 ~ eb2 ~ bb2@5 ~ bb2 ~", J: "eb2@4 ~@2 eb2 ~ c2@4 bb1@3 ~",
  K: "ab1@4 ~@2 ab1 ~ eb2@6 ~@2", L: "ab1@5 ~ eb2 ~ ab2@5 ~ eb2 ~", M: "ab2 ~ ab2 ~ eb2@3 ~ ab1@6 ~@2",
  N: "eb2@5 ~ eb2 ~ bb1@5 ~ bb1 ~", O: "eb2@5 ~ eb2 ~ bb2 ~ eb2@3 ~ bb1 ~", P: "ab1@4 ~@2 ab1 ~ eb2@5 ~ eb2 ~",
  Q: "ab1@3 ~ eb2@2 ab1 ~", R: "eb2@5 ~ eb2 ~ bb1@3 ~ eb2@3 ~", S: "[ab2@7 ~]/2",
  T: "ab1 ~ ab1 ~ ab1@3 ~ ab1@4 eb2@2 ab1 ~", U: "ab1 ~ ab1 ~ eb2@3 ~ ab2@7 ~",
  V: "eb2 ~ eb2@4 bb1 ~ eb2 ~ eb2@4 bb1 ~", W: "eb2 ~ eb2 ~ bb1@3 ~ eb2@4 bb1@3 ~",
  X: "ab1 ~ ab1@4 eb2 ~ ab1 ~ ab1@4 eb2 ~", Y: "ab1 ~ ab1 ~ eb2@2 ~@2 ab2@6 ~@2",
  Z: "eb2 ~ eb2@3 ~ bb1 ~ eb2 ~ eb2@4 ~@2", AA: "ab1@5 ~ ab1 ~ ab1@7 ~", AB: "ab1@4 ~@2 ab1 ~ ab1 ~ ab1@3 ~ ab1@2",
  AC: "~@2 ab1 ~ eb2@2 ~@2 ab2@4 eb2 ~ ab2 ~", AD: "eb2@4 ~@2 eb2 ~ eb2 ~ eb2@3 ~ bb1 ~",
  AE: "eb2 ~ eb2@4 bb1 ~ eb2 ~ eb2 ~ eb2@3 ~", AF: "ab1@5 ~ eb2 ~ ab2 ~ ab2@3 ~ eb2 ~",
  AG: "ab1 ~ ab1 ~ eb2@2 ~@2 ab1@6 ~@2", AH: "eb2@5 ~ bb1 ~ eb2 ~ eb2 ~ bb1@3 ~", AI: "ab1@5 ~ ab1 ~ ab1@6 ~@2",
  AJ: "ab1",
})).s("gm_electric_bass_finger").gain(0.33)

// bass · slap bass 2 · "Bass 2"
const bass_2 = note("<~@21 [ab1 ab2 ~ ab2 ~ ab2 ~ ab2] ~@28 [ab1 ab2 ~ ab2 ~ ab2 ~ ab2] ~@25>")
  .s("gm_slap_bass_2").gain(0.46)

// chords · piano · "Keyboard 1"
const piano = note(`<
  ~@13 A B@2 C@2 D E@3 F G H I F J K L@2 ~@4 M@2 N O P@2 Q R S@2 N T D U V@2 F G H I F J K W ~@7 X Y Z AA AB Y AC AD AE
  AF
>`.pickRestart({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2"
const piano_2 = note("<~@22 A@2 B@2 A@2 B C ~@21 A@2 B@2 A@2 B C ~@8 A@2 B@2 A@2 B A ~>".pickRestart({
  A: "ab1 ab2 ab1 ab2 ab1 ab2 ab1 ab2", B: "eb2 eb3 eb2 eb3 eb2 eb3 eb2 eb3", C: "[ab1,ab2]",
})).s("gm_piano").gain(0.24).pan(0.7)

// other · lead 5 charang · "Keyboard 3"
const lead_5_charang = note("<~@43 A B C D E F G ~@26>".pickRestart({
  A: "db3@7 ~ eb3@8", B: "f3 ab3", C: "c4@8 db4@7 ~", D: "eb4@15 ~", E: "ab3@7 ~ db4@6 ~@2", F: "bb3@3 ~ g4@3 ~",
  G: "eb4",
})).s("gm_lead_5_charang").gain(0.19).pan(0.2)

// other · distortion guitar · "Guitar 1"
const distortion_guitar = note("<~@2 A B C@2 ~@25 A B D E@3 ~@6 F G H I J K@3 ~@25>".pickRestart({
  A: "eb4@2 ab4 db4@2 ab4 c4@2", B: "ab4@2 db4@4 ab4@2 eb4 ~ c4 ~ db4@2 c4@2", C: "[eb4@2 ab4 db4@2 ab4 c4@10]/2",
  D: "eb4@2 ab4 db4@2 ab4 ~@2", E: "[~@4 [ab4,db5]@37 ~@7]/3", F: "db4@6 ~ eb4@8 ~", G: "f4@7 ~ ab4@7 ~",
  H: "c5@7 ~ db5@7 ~", I: "eb5@15 ~", J: "db5@9 ~ f5@5 ~", K: "[eb5@6 ~ bb5@7 ~ ab5@20 ~@13]/3",
})).s("gm_distortion_guitar").gain(0.18).pan(0.3)

// chords · acoustic guitar steel · "Guitar 2"
const acoustic_guitar_steel = note(`<
  A B C D@2 ~ E F G@2 F@2 H@2 F@2 G@2 F H G ~@8 D@5 ~ F@2 G@2 F@2 H@2 F@2 G@2 F H G ~@26
>`.pickRestart({
  A: "~@2 [c4,eb4,ab4]@2 ~@2 [c4,eb4,ab4]@2 ~@2 [c4,eb4,ab4]@2 ~@2 ab3 ~", // Ab
  B: "[eb3,ab3] ~ [c4,eb4,ab4]@2 ~@2 [c4,eb4,ab4]@2 ~@2 [c4,eb4,ab4]@2 ~@2 ab3 ~", // Ab5 Ab
  C: "[ab3,c4] ~ [c4,eb4,ab4]@2 ~@2 [c4,eb4,ab4]@2 ~@2 [c4,eb4,ab4]@2 ~@4", // Ab
  D: "~ [c4,eb4,ab4] ~ [c4,eb4,ab4] ~ [c4,eb4,ab4] ~@2", // Ab
  E: "~@2 [ab3,db4,f4]@2 ~@2 [ab3,db4,f4]@2 ~@2 [ab3,db4,f4]@2 ~@2 [ab3,db4,f4] ~", // Db
  F: "~ [ab3,db4,f4] ~ [ab3,db4,f4] ~ [ab3,db4,f4] ~ [ab3,db4,f4]", // Db
  G: "~ [c4,eb4,ab4] ~ [c4,eb4,ab4] ~ [c4,eb4,ab4] ~ [c4,eb4,ab4]", // Ab
  H: "~ [bb3,eb4,g4] ~ [bb3,eb4,g4] ~ [bb3,eb4,g4] ~ [bb3,eb4,g4]", // Eb
})).s("gm_acoustic_guitar_steel").gain(0.09).pan(0.8)

// chords · acoustic guitar steel · "Guitar 2" · soft notes
const acoustic_guitar_steel_2 = note(`<
  A@2 B C@3 D E F@2 E@2 G@2 E@2 F@2 E G F C@14 E@2 F@2 E@2 G@2 E@2 F@2 E G F ~@26
>`.pickRestart({
  A: "~@4 [ab3,c4] ~@3 [ab3,c4] ~@5 c4 ~", B: "~@4 [ab3,c4] ~@3 [ab3,c4] ~@5 [ab3,c4] ~",
  C: "[ab3,c4] ~@3 [ab3,c4] ~@3 [ab3,c4] ~@5 [ab3,c4] ~", D: "[ab3,c4] ~@3 [ab3,c4] ~@3 [ab3,c4] ~@5 c4 ~",
  E: "[ab3,c4] ~@3 [ab3,c4] ~@3 [ab3,c4] ~@5 c4@2", F: "[ab3,c4] ~@3 [ab3,c4] ~@3 [ab3,c4] ~@5 ab3@2",
  G: "[ab3,c4] ~@3 [ab3,c4] ~@3 [ab3,c4] ~@5 [ab3,c4]@2", // Ab
})).s("gm_acoustic_guitar_steel").gain(0.05).pan(0.8)

// chords · sitar · "Guitar 4"
const sitar = note("<~@35 A@2 B@4 C@2 ~@33>".pickRestart({
  A: "[~@10 f4@2 ab4 ~ [ab4,db5]@14 ~@4]/2", // Db5
  B: "[~@2 c5@2 bb4@2 ab4 ~ bb4@2 ab4 ~ bb4 ~ [ab4,c5]@20 ~@14 ab4@9 ~@7, ~@42 f5@15 ~@7, ~@44 eb5@13 ~@7, ~@23 bb4@6 ~@3]/4", // Ab
  C: "[~@8 g4 eb5@2 ~@5, ~@2 bb4@7 ~@7, ~@3 g5@6 ~@7, ~@5 ab4@4 ~@7, ~@6 f5@3 ~@7]/2",
})).s("gm_sitar").gain(0.24).pan(0.9)

// other · distortion guitar · "Guitar 5"
const distortion_guitar_2 = note("<~@2 A B C@2 ~@25 A B D@2 ~@41>".pickRestart({
  A: "c4@2 eb4 bb3@2 eb4 ab3@2", B: "eb4@2 bb3@4 eb4@2 c4@2 eb4 ~ eb4@4", C: "[c4@4 eb4@2 bb3@4 eb4@2 ab3@19 ~]/2",
  D: "[c4@2 eb4 bb3@2 eb4 [ab3,c4]@10]/2", // Ab
})).s("gm_distortion_guitar").gain(0.28).pan(0.7)

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

// drums · kick · soft notes
const kick_soft = s("bd").struct("<~@6 [~@7 x]!16 ~@13 [~@7 x]!16 ~@25>").gain(0.25)

// drums · rim
const rim = s("rim").struct("<~@6 [~ x ~ x]!15 ~@14 [~ x ~ x]!15 ~@26>").gain(0.4)

// drums · snare
const snare = s("sd").struct("<~@22 [~ x ~ x]!7 ~@22 [~ x ~ x]!23 [~@2 x ~@3 x!2] ~>").gain(0.4)

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

// drums · hihat · soft notes
const hihat_soft = s("hh").struct("<~@6 [~@3 x ~ x ~@2]!15 ~@14 [~@3 x ~ x ~@2]!15 ~@26>").gain(0.25)

// drums · open hat
const open_hat = s("oh").struct("<~@5 A ~@15 B ~@12 A ~@15 B ~@25>".pickRestart({
  A: "~@3 x", B: "~ x ~ x ~ x ~ x",
})).gain(0.4)

// drums · crash
const crash = s("cr").struct("<~@2 A ~ B ~ A ~@15 A ~@6 A@3 ~ B ~ A ~@15 A ~@7 A ~@7 A ~@7 A>".pickRestart({
  A: "x", B: "x ~@2 x ~@2 x ~",
})).gain(0.25)

// drums · ride
const ride = s("rd").struct("<~@22 A B@6 ~@22 A B@7 A B@7 A B@7 ~>".pickRestart({
  A: "~ x!7", B: "x!8",
})).gain(0.3)

// drums · tambourine
const tambourine = s("tb").struct("<~@22 [~ x ~ x]!7 ~@22 [~ x ~ x]!24 ~>").gain(0.4)

// drums · cabasa
const cabasa = s("cabasa:4").struct("<~@30 [~@6 x!2]!3 ~@43>").gain(0.75)

// drums · shaker
const shaker = s("sh").struct("<~ x!2 ~@27 x!2 ~@44>").gain(0.2)

// drums · shaker · soft notes
const shaker_soft = s("sh").struct("<[~@7 x]!2 ~@27 [~@7 x]!2 ~@45>").gain(0.1)

stack(
  bass, bass_2, piano, piano_2, lead_5_charang, distortion_guitar, acoustic_guitar_steel, acoustic_guitar_steel_2,
  sitar, distortion_guitar_2, kick, kick_soft, rim, snare, hihat, hihat_soft, open_hat, crash, ride, tambourine, cabasa,
  shaker, shaker_soft
)