Strudelify

Tin Man

America

KeyG majorTempo157 bpm
0:00/0:00
// Tin Man — America
// 157 bpm, 4/4, key G major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: Full arrangement: all 101 bars on a 16-step grid, each part at one level. Source detail keeps the original performance.
setcpm(157/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 · "base"
const bass = note(`<
  A@2 B@2 A@2 C@2 A@2 C@2 A@2 C@2 A@2 C@2 A@2 C@2 A@2 D@2 E F G@2 E F G@2 E F G@2 E F G@2 H@2 I@2 J@2 K@2 J@2 K@2 J@2
  K@2 J@2 K@2 E F G@2 E F G@2 E F G@2 E F G@2 H@2 I@2 J@2 K@2 J@2 K@2 J@2 K@2 J@2 K@2 L
>`.pickRestart({
  A: "[g2@3 g2@2 d2 g2@3 g2@2 d2 g2 f#2 d2@2]/2", B: "[c2@6 c2@4 g1@2 c2@6 c2@4 g1@2 c2 ~ c#2@2 d2@4]/2",
  C: "[c2@3 c2@2 g1 c2@3 c2@2 g1 c2 c#2 d2@2]/2", D: "[c2@3 c2@2 g1 c2@3 c2@2 g1 c2@2 g1 g#1]/2", E: "a1!3 a1@3 e2!2",
  F: "e2 e2@3 g2@2 a2 b2", G: "[b2@3 a2@3 g2@3 f#2@3 e2@2 d2@2]/2", H: "[d2@3 d2@3 d2@3 d2@3 d2@2 a2@2]/2",
  I: "[d3@3 d3@3 d3@3 d3@3 d3@2 d3@2]/2", J: "[g2@3 g2@3 g2@3 g2@3 g2@2 d2@2]/2",
  K: "[c2@3 d2@3 e2@3 g2@3 a2@2 d2@2]/2", L: "g2",
})).s("gm_electric_bass_finger").gain(0.72)

// chords · piano · "rythym" · Bm
const piano = note("<~@100 [[b4,d5,f#5]]>").s("gm_piano").gain(0.48)

// chords · acoustic guitar steel · "rythym"
const acoustic_guitar_steel = note(`<
  A@2 B@2 C@2 D@2 C@2 E@2 C@2 E@2 C@2 E@2 C@2 E@2 C@2 E@2 F G C@2 F G C@2 F G C@2 ~@4 H@2 I@2 J@16 F G C@2 F G C@2 F G
  C@2 F G C@2 H@2 K@2 ~@17
>`.pickRestart({
  A: "[[b3,d4,f#4]@7 [b3,d4,f#4]]/2", B: "[[b3,e4,g4]@26 ~ [e4,b4]@5, ~@13 c4@3]/2",
  C: "[[b3,d4,f#4]@3 [b3,d4,f#4]@3 [b3,d4,f#4]@3 [b3,d4,f#4]@3 [b3,d4,f#4]@2 [b3,d4,f#4]@2]/2", // Bm
  D: "[[b3,e4,g4]@6 [b3,e4,g4]@6 [b3,e4,g4]@6 [b3,e4,g4]@6 [b3,e4,g4]@2 ~ [e4,g4]@5, ~@13 b3@3]/2", // Em
  E: "[[b3,e4,g4]@3 [b3,e4,g4]@3 [b3,e4,g4]@3 [b3,e4,g4]@3 [b3,e4,g4]@2 [b3,e4,g4]@2]/2", // Em
  F: "[c4,e4,g4,b4]!3 [c4,e4,g4,b4]@3 [c4,e4,g4,b4]!2", G: "[c4,e4,g4,b4] [c4,e4,g4,b4]@3 [c4,e4,g4,b4]@4",
  H: "[[c4,e4,g4]@3 [c4,e4,g4]@3 [c4,e4,g4]@3 [c4,e4,g4]@3 [c4,e4,g4]@2 [c4,e4,g4]@2]/2", // C
  I: "[[d4,f#4,a4]@6 [d4,f#4,a4]@6 [d4,f#4,a4]@6 [d4,f#4,a4]@6 ~@3 a4@5, ~@3 d4, ~@25 f#4@7]/2", // D
  J: "[f#5 d5 b4 a5 f#5 d5 d6@3 a5 f#5 d5 f#5 d5 b4@2]/2",
  K: "[[d4,f#4,a4]@3 [d4,f#4,a4]@3 [d4,f#4,a4]@3 [d4,f#4,a4]@3 [d4,f#4,a4]@2 [d4,f#4,a4]@2]/2", // D
})).s("gm_acoustic_guitar_steel").gain(0.48)

// other · synth bass 1 · "rythym"
const synth_bass_1 = note("<~@84 A@8 ~@9>".pickRestart({
  A: "[f#5 d5 b4 a5 f#5 d5 d6@3 a5 f#5 d5 f#5 d5 b4@2]/2",
})).s("gm_lead_8_bass_lead").gain(0.48)

// other · string ensemble 2 · "rythym"
const string_ensemble_2 = note("<~@92 A@8 ~>".pickRestart({
  A: "[f#5 d5 b4 a5 f#5 d5 d6@3 a5 f#5 d5 f#5 d5 b4@2]/2",
})).s("gm_string_ensemble_2").gain(0.48)

// chords · pad choir · "Unnamed-001"
const pad_choir = note(`<
  ~@6 A@8 B@2 C@2 B@2 C@2 B@2 C@2 D@8 E@2 F@2 E@2 F@2 E@2 F@2 E@2 G@8 H@8 I@8 F@2 E@2 F@2 E@2 F@2 E@2 G@8 H@4 J@5
>`.pickRestart({
  A: "[~@3 b4 [d4,f#4]@4 g4@3 b4 [d4,f#4]@4, b3, [e4,g4] ~ e4 ~]/8", B: "[e4,g4]/2", C: "[d4,f#4]/2",
  D: "[~ c4 b3 c4, [e4,g4]]/8", E: "b3/2", F: "c4/2", G: "[[d4,f#4] [e4,g4], b3]/4",
  H: "[[d4,f#4]@14 d4 f#4 g4@12 b4@4, b3, ~ e4]/4", I: "[c4 b3 c4 b3, [e4,g4]]/8",
  J: "[[d4,f#4]@14 d4 f#4 g4@12 ~@4 [d4,f#4]@8, b3@4 ~, ~@2 e4@2 ~, ~@7 b4@3]/5", // D
})).s("gm_pad_choir").gain(0.3)

// other · recorder · "Unnamed-003"
const recorder = note("<~@56 A B A C@2 B A D ~@37>".pickRestart({
  A: "~@3 a5 f#5 d5@3", B: "~ a5 f#5 d5 ~@4", C: "[~@2 a5@2 f#5@2 d5@15 ~ a5@2 f#5@2 d5@6]/2",
  D: "~@2 a5@2 f#5@2 d5@7 ~@3",
})).s("gm_recorder").gain(0.49).pan(1)

// other · pad sweep · "Unnamed-003"
const pad_sweep = note("<~@64 A B C D A B C D A B C D@2 A B C ~@12 E@8 ~>".pickRestart({
  A: "[c4,g4]", B: "[e4,b4]", C: "d4", D: "[b3,f#4]", E: "[f#5 d5 b4 ~@3 d6@3 ~@3 f#5 d5 b4@2]/2",
})).s("gm_pad_sweep").gain(0.38).pan(1)

// drums · kick
const kick = s("bd").struct(`<
  ~@20 A ~ A ~ A ~ A ~ B C B C B C B C B C B C B C B C@4 ~ C@15 ~ B C B C B C B C B C B C B C B C@4 ~ C@16 ~
>`.pickRestart({
  A: "x ~@2 x ~@4", B: "x ~@2 x ~@2 x ~", C: "~ x ~ x ~@4",
})).gain(0.56)

// drums · snare
const snare = s("sd").struct(`<
  ~@29 A ~ A ~ A ~ A ~ A ~ A ~ A ~ A@4 ~ A@15 ~@2 A ~ A ~ A ~ A ~ A ~ A ~ A ~ A@4 ~ A@16 ~
>`.pickRestart({
  A: "~ x",
})).gain(0.56)

// drums · hihat
const hihat = s("hh").struct("<~@12 A B A B A B A C A B A B A B A B A@19 ~ A@15 ~ A@19 ~ A@15 D ~>".pickRestart({
  A: "x!7 ~", B: "x ~ x ~ x ~ x ~ x ~ x ~ x!2 ~@2", C: "x ~ x ~ x ~ x!2 ~@2 x ~ x!2 ~@2", D: "x!6 ~@2",
})).gain(0.56)

// drums · low tom
const low_tom = s("lt").struct("<~@43 [~@7 x] ~@35 [~@7 x] ~@21>").gain(0.56)

// drums · mid tom
const mid_tom = s("mt").struct("<~@40 A B C D ~@32 A B C D ~@21>".pickRestart({
  A: "~@12 x ~ x!2", B: "~@7 x", C: "~@14 x!2", D: "~@3 x",
})).gain(0.56)

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

// drums · high tom
const high_tom = s("ht").struct("<~@40 A B C D ~@32 A B C D ~@21>".pickRestart({
  A: "~@5 x ~@2", B: "~@2 x ~ x!3 ~", C: "~@4 x ~@3 x!3 ~ x ~@3", D: "x!2 ~@2 x ~@11",
})).gain(0.56)

// drums · splash
const splash = s("cr").struct("<~@47 x!2 ~@7 x ~@44>").gain(0.56)

stack(
  bass, piano, acoustic_guitar_steel, synth_bass_1, string_ensemble_2, pad_choir, recorder, pad_sweep, kick, snare,
  hihat, low_tom, mid_tom, open_hat, high_tom, splash
)

More by America