Strudelify

Little Boy

Captain Jack

KeyG majorTempo150 bpm
0:00/0:00
// Little Boy — Captain Jack
// 150 bpm, 4/4, key G major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: pitch bends are ignored
// note: Full arrangement: all 128 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(150/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
const piano = note("<~@4 A ~@3 A ~@28 A ~@3 A ~@28 A ~@3 A ~@35 A ~@3 A ~@3 A ~@3 A ~@5>".pickRestart({
  A: "[a4,c5]!3 [g4,b4]", // Am G
})).s("gm_piano").gain(0.04)

// other · lead 8 bass lead
const lead_8_bass_lead = note(`<
  ~ A B C D A B C D ~@8 E F G H E F G H ~@9 A B C D A B C D ~@8 E F G H E F G H ~@9 A B C D A B C D ~@32 A B C D A B C D
  ~@13
>`.pickRestart({
  A: "e5 a4 c5 a4 a5 a4 c5 a4 e5 a4 c5 a4 a5 a4 e5 a4", B: "e5 g4 b4 g4 g5 g4 b4 g4 e5 g4 b4 g4 g5 g4 e5 g4",
  C: "d5 g4 b4 g4 g5 g4 b4 g4 d5 g4 b4 g4 g5 g4 d5 g4", D: "c5 f4 a4 f4 f5 f4 a4 f4 c5 f4 a4 f4 f5 f4 c5 f4",
  E: "a3!16", F: "e3!16", G: "g3!16", H: "d3!16",
})).s("gm_lead_8_bass_lead").gain(0.24).pan(0.7)

// other · synth drum
const synth_drum = note("<~@33 [g2@5 ~@7 c2@2 ~@2] ~@32 [g2@5 ~@7 c2@2 ~@2] ~@15 [g2@5 ~@7 c2@2 ~@2] ~@45>")
  .s("gm_synth_drum").gain(0.45)

// chords · synth strings 1
const synth_strings_1 = note(`<
  ~ A@8 B@8 ~@17 A@8 B@8 ~@17 A@8 B@4 C@3 ~ D@2 E@2 F G H@2 D@2 E@2 F G H@2 D@2 E@2 F G H@2 A@8 I@4 A@4 J@4 ~
>`.pickRestart({
  A: "[[a3,c4] ~@2 [f3,a3], e4 d4, ~ [g3,b3]@2 ~]/4", B: "[c4 ~@2 g#3, g4 f4, ~ a#3@2 ~]/4",
  C: "[c4 ~ f4, g4@2 ~, ~ a#3@2]/3", D: "[e4 f4, [a3,c4]]/2", E: "[[g3,b3] [f3,a3], d4]/2", F: "[g3,b3,e4]",
  G: "[f3,a3,c4]", H: "[g3 g4, [b3,d4]]/2", I: "[c4 ~@2 [f3,a3], e4 d4, a3 ~@15 [g3,b3]@32 ~@16]/4",
  J: "[[c4,d#4] ~@2 [g#3,c4], g4 f4, ~ [a#3,d4]@2 ~]/4", // Cm G# A#
})).s("gm_synth_strings_1").gain(0.13)

// chords · pad halo
const pad_halo = note("<~@17 A B@2 C A B@2 C ~@25 A B@2 C A B@2 C ~@70>".pickRestart({
  A: "[a5,c6] ~@3 [e5,a5] ~ [a5,c6]@2 ~@2 [e5,a5] ~ [a5,c6] ~ [e5,a5] ~", // Am A5 Am A5 Am A5
  B: "[g5,b5] ~@3 [d5,g5] ~ [g5,b5] ~@3 [d5,g5] ~ [g5,b5] ~ [d5,g5] ~", // G G5 G G5 G G5
  C: "[f5,a5] ~@3 [d5,f5] ~ [f5,a5] ~@3 [d5,f5] ~ [f5,a5] ~ [d5,f5] ~", // F Dm F Dm F Dm
})).s("gm_pad_halo").gain(0.17)

// chords · rock organ
const rock_organ = note(`<
  ~@9 A B C D A B C D E F G H E F G H ~@17 A B C D A B C D E F G H E F G H ~@17 A B C D A B C ~@25 E F G H E F G H E F G
  H E F G H ~@5
>`.pickRestart({
  A: "[d#5,c6] ~ [d#5,c6] [d#5,c6,g6] ~ [c6,g6]!2 [d#6,c7]!2 ~ [d#6,c7]!2 ~ [d#6,c7]!2 ~", // Cm C5 Cm
  B: "[a#4,g5] ~ [a#4,g5] [a#4,g5,d6] ~ [g5,d6]!2 [a#5,g6]!2 ~ [a#5,g6]!2 ~ [a#5,g6]!2 ~", // D# Gm G5 D#
  C: "[d5,a#5] ~ [d5,a#5] [d5,a#5,f6] ~ [a#5,f6]!2 [d6,a#6]!2 ~ [d6,a#6]!2 ~ [d6,a#6]!2 ~", // Gm A# A#5 Gm
  D: "[a4,f5] ~ [g#4,f5] [g#4,f5,c6] ~ [f5,c6]!2 [g#5,f6]!2 ~ [g#5,f6]!2 ~ [g#5,f6]!2 ~", // Dm C# Fm F5 C#
  E: "[c5,a5] ~ [c5,a5] [c5,a5,e6] ~ [a5,e6]!2 [c6,a6]!2 ~ [c6,a6]!2 ~ [c6,a6]!2 ~", // F Am A5 F
  F: "[g4,e5] ~ [g4,e5] [g4,e5,b5] ~ [e5,b5]!2 [g5,e6]!2 ~ [g5,e6]!2 ~ [g5,e6]!2 ~", // C Em E5 C
  G: "[b4,g5] ~ [b4,g5] [b4,g5,d6] ~ [g5,d6]!2 [b5,g6]!2 ~ [b5,g6]!2 ~ [b5,g6]!2 ~", // Em G G5 Em
  H: "[f#4,d5] ~ [f4,d5] [f4,d5,a5] ~ [d5,a5]!2 [f5,d6]!2 ~ [f5,d6]!2 ~ [f5,d6]!2 ~", // D Dm D5 Dm
})).s("gm_rock_organ").gain(0.1)

// bass · synth bass 2
const bass = note(`<
  ~@9 A B C D A B C D E F B G E F B G E@8 ~ E F B G E F B G A B C D A B C D E F B G E F B G E@8 ~ E F B G E F B G A B C
  D A B C D H I J K L I J M H I J K L I J M H I J K L I J M H L J K H L J K H L J K H L J K ~@5
>`.pickRestart({
  A: "c2 ~@3 c2 ~@3 c2 ~@3 c2 ~@3", B: "g1 ~@3 g1 ~@3 g1 ~@3 g1 ~@3", C: "a#1 ~@3 a#1 ~@3 a#1 ~@3 a#1 ~@3",
  D: "f1 ~@3 f1 ~@3 f1 ~@3 f1 ~@3", E: "a1 ~@3 a1 ~@3 a1 ~@3 a1 ~@3", F: "e1 ~@3 e1 ~@3 e1 ~@3 e1 ~@3",
  G: "d1 ~@3 d1 ~@3 d1 ~@3 d1 ~@3", H: "a1 ~ a2 ~ a1 ~ a2 ~ a1 ~ a2 ~ a1 ~ a2 ~",
  I: "f1 ~ f2 ~ f1 ~ f2 ~ f1 ~ f2 ~ f1 ~ f2 ~", J: "g1 ~ g2 ~ g1 ~ g2 ~ g1 ~ g2 ~ g1 ~ g2 ~",
  K: "d1 ~ d2 ~ d1 ~ d2 ~ d1 ~ d2 ~ d1 ~ d2 ~", L: "e1 ~ e2 ~ e1 ~ e2 ~ e1 ~ e2 ~ e1 ~ e2 ~",
  M: "b1 ~ b2 ~ b1 ~ b2 ~ b1 ~ b2 ~ b1 ~ b2 ~",
})).s("gm_synth_bass_2").gain(0.43)

// other · lead 2 sawtooth
const lead_2_sawtooth = note(`<
  ~ A B C D A B C D E C F G E C F G A B C D A B C D A@8 ~ A B C D A B C D E C F G E C F G A B C D A B C D A@8 ~ A B C D
  A B C D E C F G E C F G A G C D B G C H A G C D B G C H A G C D B G C H A B C D A B C D A B C D A B C D ~@5
>`.pickRestart({
  A: "a2 ~ a2@2 ~@2 a2@2 ~@2 a2@2 ~@2 a2 a3", B: "e2 ~ e2@2 ~@2 e2@2 ~@2 e2@2 ~@2 e2 e3",
  C: "g2 ~ g2@2 ~@2 g2@2 ~@2 g2@2 ~@2 g2 g3", D: "d2 ~ d2@2 ~@2 d2@2 ~@2 d2@2 ~@2 d2 d3",
  E: "c3 ~ c3@2 ~@2 c3@2 ~@2 c3@2 ~@2 c3 c4", F: "a#2 ~ a#2@2 ~@2 a#2@2 ~@2 a#2@2 ~@2 a#2 a#3",
  G: "f2 ~ f2@2 ~@2 f2@2 ~@2 f2@2 ~@2 f2 f3", H: "b2 ~ b2@2 ~@2 b2@2 ~@2 b2@2 ~@2 b2 b3",
})).s("gm_lead_2_sawtooth").gain(0.24).pan(0.3)

// other · slap bass 1
const slap_bass_1 = note("<~@25 A B C D E F G H ~@25 I J K L M N G H ~@62>".pickRestart({
  A: "e4@2 c4 ~ d4@2 a3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a3,e4] ~@3 [a3,e4] ~", F: "~@2 [g3,e4]!2 ~@2 [g3,e4] ~@3 [g3,e4] ~@3 [g3,e4] ~",
  G: "~@2 [g3,d4]!2 ~@2 [g3,d4] ~@3 [g3,d4] ~@3 [g3,d4] ~", H: "~@2 [f3,d4]!2 ~@2 [f3,d4] ~@3 [f3,d4] ~@3 [f3,d4] ~",
  I: "~@2 [f3,d4] ~@3 [f3,d4] ~@3 [f3,d4] ~@3 [f3,d4] ~", // Dm
})).s("gm_electric_guitar_muted").gain(0.15).pan(0.8)

// other · pad poly
const pad_poly = note("<~@23 A@2 B C D@6 ~@23 A@2 B C D@6 ~@39 A@2 ~@17 E@4>".pickRestart({
  A: "a6/2", B: "~@15 [a3,a4,a5]", C: "[a3,a4,a5] ~ [a3,a4,a5]!2 ~ [a4,a5]!2 ~ a4!3 ~@4 [a3,a4,a5]",
  D: "[a3,a4,a5] ~ [a3,a4,a5]!2 ~ [a4,a5]!2 ~ a4!2 ~@5 [a3,a4,a5]", E: "[c7@13 ~@3]/4",
})).s("gm_pad_poly").gain(0.23)

// other · pad new age
const pad_new_age = note("<~@83 A B C D A E F G ~@37>".pickRestart({
  A: "e6 ~@3 e6 ~@5 a5 ~@3 a5 ~", B: "d6 ~@3 d6 ~ c6 ~@3 c6 ~ b5 ~@3", C: "a5 ~@3 a5@2 ~@4 a5@2 ~@2 a5 ~",
  D: "b5 ~@3 b5 ~ c6 ~@3 c6 ~ d6 ~@3", E: "d6 ~@3 d6@2 c6 ~@3 c6@2 b5 ~@3", F: "a5 ~ a5 ~@2 a5 ~ a5",
  G: "b5 ~@3 b5@2 ~@2 c6@2 ~@2 d6 ~@3",
})).s("gm_pad_new_age").gain(0.27)

// drums · kick
const kick = s("bd").struct(`<
  ~@17 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 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 B A
  B A B A B A B A ~@17 A B A B A B A B A B A B A B A B A B A B ~@9
>`.pickRestart({
  A: "x!4", B: "x ~@3 x ~@3 x ~@2 x!2 ~ x ~",
})).gain(0.51)

// drums · snare
const snare = s("sd").struct("<~@13 A B@3 ~@3 C D@3 E ~@21 A B@3 ~@3 C D@3 E ~@37 A B@3 F ~@28>".pickRestart({
  A: "~@12 x!4", B: "x!16", C: "~@5 x!11", D: "~@2 x ~ x ~ x!2 ~ x ~ x!2 ~ x ~", E: "~@11 x!5", F: "x",
})).gain(0.17)

// drums · snare · soft notes
const snare_soft = s("sd").struct("<~@13 A ~@6 B C ~ C D ~@21 A ~@6 B C ~ C D ~@37 A ~@32>".pickRestart({
  A: "x!12 ~@4", B: "x!5 ~@11", C: "~@3 x ~@12", D: "x!11 ~@5",
})).gain(0.06)

// drums · clap
const clap = s("cp").struct(`<
  ~ A B A C A B A C A B A C A B A C ~@17 A B A B A B A B A B A B A B A B ~@17 A B A B A B A B A B A B A B A ~@9 A B A B
  A B A B A B A B A B A B A B A B A B A B ~@13
>`.pickRestart({
  A: "~ x ~ x", B: "~@2 x ~@3 x!2", C: "~@4 x ~@6 x!2 ~ x ~",
})).gain(0.28)

// drums · clap · soft notes
const clap_soft = s("cp").struct(`<
  ~@37 A ~@3 A ~@3 A ~@3 A ~@20 A ~@3 A ~@3 A ~@15 A ~@3 A ~@3 A ~@3 A ~@3 A ~@3 A ~@13
>`.pickRestart({
  A: "~@11 x ~@4",
})).gain(0.11)

// drums · hihat
const hihat = s("hh").struct("<~@9 A@8 B@7 ~ C@8 ~ A@16 B@7 ~ C@8 ~ A@15 ~@9 C@8 A@15 C ~@13>".pickRestart({
  A: "x!16", B: "x!8", C: "~ x ~ x ~ x ~ x",
})).gain(0.4)

// drums · hihat · soft notes
const hihat_soft = s("hh").struct(`<
  ~@17
  [~ x ~ x ~ x ~ x ~ x ~ x ~ x ~ x]!7
  ~@26
  [~ x ~ x ~ x ~ x ~ x ~ x ~ x ~ x]!7
  ~@71
>`).gain(0.23)

// drums · crash
const crash = s("cr").struct(`<
  ~@15 A B A ~@5 A B ~@9 A ~@7 A ~@5 A B A ~@5 A B A ~@8 A ~@7 A ~@7 A ~@7 A ~@5 C B A ~@5 C B ~@8 A ~@7 A ~@4
>`.pickRestart({
  A: "x", B: "x!4", C: "x!2",
})).gain(0.45)

// drums · tambourine
const tambourine = s("tb").struct(`<
  ~@33
  [x ~@5 x!3 ~@3 x ~@3]
  ~@32
  [x ~@5 x!3 ~@3 x ~@3]
  ~@15
  [x ~@5 x!3 ~@3 x ~@3]
  ~@45
>`).gain(0.51)

// drums · woodblocks
const woodblocks = s("woodblock:5").struct("<~@89 [~@7 x ~@8] ~@38>").gain(0.74)

stack(
  piano, lead_8_bass_lead, synth_drum, synth_strings_1, pad_halo, rock_organ, bass, lead_2_sawtooth, slap_bass_1,
  electric_guitar_muted, pad_poly, pad_new_age, kick, snare, snare_soft, clap, clap_soft, hihat, hihat_soft, crash,
  tambourine, woodblocks
)

More by Captain Jack