Strudelify

Light Years

Chick Corea

KeyD majorTempo105 bpm
0:00/0:00
// Light Years — Chick Corea
// 105 bpm, 4/4, key D major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: Full arrangement: all 84 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(105/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 · acoustic bass · "ACOU BASS"
const bass = note(`<
  ~@4 A B C D E F G H I J G K I L M N O L P Q R S T U V W T X Y Z AA AB AC AD AA AE AF AG T U AH@2 T AI AJ AK T U AL W T
  U AM AN AO AP AQ AR AO AS AT AU F G K I J G AV AW AX AY AZ BA BB BC BD@2 BE BF
>`.pickRestart({
  A: "~@10 [g4,a4]!6", B: "[g4,a4]!5 ~@5 a4 [g4,a4]!4 ~", C: "a4!2 [g4,a4]!7 a4 [g4,a4]!2 a4!4",
  D: "a4!4 [g4,a4] a4 [g4,a4]!8 ~@2", E: "a2 e3 g4 e3@2 ~ e2 ~", F: "e2@2 ~@2 e2@2 a2 b2 e3@2 e3!2 e2@2 ~ e3",
  G: "e2@2 ~@2 g3@2 ~ e3 d3@2 ~@2 e2@2 ~@2", H: "e2@2 ~@2 e2@2 ~ d3 e3 g3 ~ g4 e2@2 ~@2", I: "e2 ~ d3 ~ d3 ~ e2 ~",
  J: "e2@2 ~@2 e2@2 a2 ~ e3@2 e3!2 e2@2 ~ e3", K: "e2@2 ~@2 e2@2 ~ d3 e3 g3 ~ e3 e2@2 ~@2",
  L: "e2@2 d3 e3 f#2@2 f#2 f#3 f#2 f#3 ~ a3 a2@2 ~@2", M: "a2@2 d3 ~ d2@2 d2@2 ~ d#3 e3 ~ e2@2 ~@2",
  N: "e2@2 e2 ~ f#3!2 f#2 f#3 a2 a3!3 a2@2 ~@2, ~@3 f#2@3 ~@10", O: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", B: "g4!2 ~@7 g4 ~@2 g4!4", C: "g4!4 ~ g4 ~@10", D: "~@6 g3 ~@9", E: "~@7 b2 ~@8",
  F: "~@3 e3 ~@4 d3 ~@7", G: "~@15 b2", H: "~@14 g3 ~", I: "~@11 e3 ~@4", J: "d3 ~@15",
})).s("gm_acoustic_bass").gain(0.3)

// other · shakuhachi
const shakuhachi = note("<~@32 A B C@2 D B E@2 F ~@2 G H ~@2 G I ~@18 J K ~@3 L M N O P M Q R S@2 T U>".pickRestart({
  A: "~@10 a3@3 b3@2 d4", B: "~ d4@9 b3@3 d4@2 e4", C: "[~ e4@2 ~ f#4@6 d4@3 f#4@2 a4@11 e4@4 g4@2, ~@4 e4 ~@27]/2",
  D: "a4 g4@2 ~ [g4,a4] ~ f#4@3 ~ a3@3 b3@2 d4, ~@6 e4 ~@9", // Gsus2
  E: "[~ e4@3 [g4,a4] ~ f#4@4 d4@3 f#4 ~ a4@2 g4@8 ~ e4 g4 ~ d5 ~ c5]/2", F: "b4@5 ~@3",
  G: "~@3 [d5,g5]@2 [b4,e5] [a4,d5]@2 [f#4,b4] [e4,a4]@2 [d4,g4] [b3,e4] ~ [d4,g4]@2", // G5 E5 D5 B5 A5 G5 E5 G5
  H: "[b3,e4] [e4,a4]@2 [d4,g4] [b3,e4]@2 ~@10", I: "[b3,e4] [e4,a4]@2 [d4,g4] [b3,e4]@7 ~@5", J: "~@11 g5@3 ~@2",
  K: "~@11 e5 d5 e5@3", L: "~@4 c#6 g5@4 ~@7", M: "~@2 a4@3 b4@2 d5 ~ d5@7",
  N: "~@2 b4@3 d5@2 e5 ~ e5@2 ~ f#5@4, ~@12 e5 ~@3", O: "~@2 d5@3 f#5@2 a5@9",
  P: "~@2 e5@3 ~ g5@2 e5 g5@2 ~ [g5,a5] ~ f#5@2, ~@2 d5 ~@11 e5 ~", // Gsus2
  Q: "~@2 b4@2 ~ d5 ~ e5 ~ e5@2 ~ f#5@4, ~@2 a4 ~@9 e5 ~@3", R: "~@2 d#5@3 f#5 ~ b5@9", S: "[~@2 e5@3 g5 ~ d6@25]/2",
  T: "~@14 d6 ~", U: "b5 ~ a5 ~ g5 ~ d5@2 g5 e5@2 ~@5",
})).s("gm_shakuhachi").gain(0.45)

// chords · acoustic guitar nylon · "NYLON GTR"
const acoustic_guitar_nylon = note(`<
  A B C D@2 B C D@2 E A D@2 F G H@2 I J I J I J K L M N O P M N O Q R S T U V W X Y Z N O P M N O P M AA O P M N O P AB
  AC AD AC AD AC AD AE A AF C D@2 F G AG AH AI AJ AK AH AI AL AM ~@3
>`.pickRestart({
  A: "~@11 [a3,d4] ~@2 [a3,d4]!2", B: "~@2 [a3,d4] ~ [a3,d4] ~ [a3,d4] [b3,e4] ~@3 d3 ~ b2 ~ d3",
  C: "~ b2 d3 ~ d3 ~ d3 e3 ~@3 [a3,d4] ~@2 [a3,d4]!2", // D5
  D: "[~@2 [a3,d4] ~ [a3,d4] ~ [a3,d4] [b3,e4] ~@3 d3 ~ e3 ~ g3@2 e3 d3 ~ d3 ~ d3 e3 ~@3 [a3,d4] ~@2 [a3,d4]!2]/2", // D5 E5 D5
  E: "~@2 [a3,d4]!2 ~@4 [a3,d4] ~@7", F: "~@2 [a3,d4]!2 ~@4 [a3,d4] ~@2 d3 ~@3 d3",
  G: "~ d3 ~ d3 ~@2 d3 e3 ~@3 [a3,d4] ~@2 [a3,d4]!2", // D5
  H: "[~@2 [a3,d4] ~ [a3,d4] ~ [a3,d4] [b3,e4] ~@3 d3 ~ e3 ~ g3@2 e3 d3 ~ d3 ~ d3 e3 ~@3 e3 ~@2 e3!2]/2", // D5 E5
  I: "~@3 f#3 ~@2 f#3!2 ~ a3 ~ a3 a2!2 a3!2", J: "a2!2 ~ d3 ~@2 d3!3 ~@2 e3 ~@2 e3!2",
  K: "~@3 f#3 ~@2 f#3!2 ~ a2 ~ a3 ~ a2 ~ b2", L: "d3 ~@15", M: "~@3 [a3,d4] ~@2 [a3,d4]!2 ~@2 [a3,d4]!2 ~@4",
  N: "[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~@2 a6 ~ f#6 ~", AL: "~@2 d#6 ~@2 f#6 ~ b6 c#7 b6 ~@6",
  AM: "~@2 e6 ~@2 g6 ~ d7 e7 d7@5 ~@2",
})).s("gm_acoustic_guitar_nylon").gain(0.57)

// other · xylophone
const xylophone = note(`<
  ~@33 A B C D E B F G ~@7 H I J ~ H K L ~ H M H M H M H N O P Q ~@2 P R ~@2 S T U V W X Y Z AA AB AC
>`.pickRestart({
  A: "~@4 c4 e4 g4 ~ b4 a4 g4 e4 c4 b3 ~ a3", B: "~ b3 ~ f#3 b3 d4 f#4 e5 c#5 a4 f#4 d4 b3 f#3 ~ b2",
  C: "~ c#3 ~ g3 a3 e4 a4 e5 c#5 b4 a4 e4 a3 g3 ~ c#3", D: "~ d3 ~ g5 f#5 d5 a4 g4 f#4 d4 a3 ~ d4 b3 ~ b3",
  E: "~ b3 ~@2 c4 e4 g4 ~ b4 a4 g4 e4 c4 b3 ~ a3", F: "~ c#3 ~ g3 e4 ~ b4 g5 e5 d5 b4 g4 e4 g4 ~ c3",
  G: "~ d3 ~ c4 e4 g4 c5 e5 g5 ~@7", H: "~@15 d4", I: "c#4 b3 ~@4 d4 ~@3 c#4 ~@4 e4", J: "~ c#4 ~@14",
  K: "c#4 b3 ~@4 d4 ~@3 c#4 ~@5", L: "~ e4 ~ c#4 ~@12", M: "c#4 b3 ~@4 d4 ~@9", N: "c#4 b3 ~@14",
  O: "~@5 [e4,b4] ~ [b3,g4] [d4,a4] ~@7", P: "~@7 d4 c#4 b3 ~@4 d4 ~", Q: "~@2 c#4 ~@4 e4 ~ c#4 ~@6",
  R: "~@2 c#4 ~@6 e4 ~ c#4 ~@4", S: "~@12 c4 e4 g4 ~", T: "b4 a4 g4 e4 c4 b3 ~ a3 ~ b3 ~ f#3 b3 d4 f#4 e5",
  U: "c#5 a4 f#4 d4 b3 f#3 ~ b2 ~ c#3 ~ g3 a3 e4 a4 e5", V: "c#5 b4 a4 e4 a3 g3 ~ c#3 ~ d3 ~ g5 f#5 d5 a4 g4",
  W: "f#4 d4 a3 ~ d4 b3 ~ b3 ~ b3 ~@2 c4 e4 g4 ~", X: "b4 a4 g4 e4 c4 b3 ~ a3 ~ b3 ~ f#3 c#4 d#4 f#4 a#4",
  Y: "d#5 c#5 a#4 f#4 c#4 a#3 ~ f#2 ~ a2 ~ c4 e4 g4 c5 g5", Z: "e5 d5 b4 g4 c4 e4 ~ a2 ~ d2 ~ g4 c5 e5 c6 e6",
  AA: "g6 ~@15", AB: "~@14 d5 ~", AC: "b4 ~ a4 ~ g4 ~ d4@2 g4 [d4,e4]@2 ~@5",
})).s("gm_xylophone").gain(0.4)

// drums · kick
const kick = s("bd").struct(`<
  A B@7 C D E F G H I J D K D K D L D M N F O P Q R S R T U V W X Y V Z AA D O P AB R AC P AD D O P AE R S P AF R D R D
  R AG P AH AI AJ AK F G AL AK AM AN AO AP AQ AR AP@2 AS AT AU AV
>`.pickRestart({
  A: "~ x!2 ~@2 x ~ x", B: "~ x ~ x ~ x ~ x", C: "~@2 x ~ x!3 ~@3 x ~@5", D: "~ x ~@3 x ~@2", E: "x!3 ~ x ~@5 x ~@5",
  F: "~ x!2 ~@7 x ~@5", G: "~ x!2 ~@2 x ~@2", H: "x!3 ~@8 x ~@4", I: "~ x!2 ~ x ~@5 x ~@5", J: "~ x!2 ~@6 x!2 ~@5",
  K: "x!3 ~@7 x ~@5", L: "x!3 ~@5 x ~ x ~@5", M: "x!2 ~@6 x ~ x ~@5", N: "~@4 x!3 ~ x ~@7", O: "~@2 x ~@5 x!3 ~ x ~@3",
  P: "~@2 x ~@6 x!2 ~@5", Q: "~ x ~@3 x!2 ~", R: "~@2 x ~@5 x!3 ~@5", S: "~ x ~ x ~@5 x!2 ~ x ~@3", T: "~@2 x ~@12 x",
  U: "~ x ~@5 x ~@4 x ~@2 x", V: "~@5 x ~ x!2 ~ x ~@2 x ~@2", W: "~@5 x ~ x!2 ~@3 x ~@2 x", X: "~@5 x ~@7 x ~@2",
  Y: "~@3 x ~@3 x ~@4 x ~@2 x", Z: "~@5 x ~ x!2 ~@4 x ~@2", AA: "~@5 x ~@10", AB: "~@2 x ~@7 x ~@2 x ~@2",
  AC: "~@3 x ~@5 x!2 ~ x ~@3", AD: "~ x!2 ~@7 x ~@2 x ~@2", AE: "~ x!2 ~@5 x ~ x ~@5", AF: "~ x!2 ~ x ~@11",
  AG: "x!2 ~@3 x ~@2", AH: "x ~ x ~@8 x ~ x ~@2", AI: "~ x ~@7 x!2 ~@5", AJ: "x!3 ~@6 x ~@6", AK: "x!3 ~@2 x ~@2",
  AL: "x!3 ~@6 x ~ x ~@4", AM: "x!3 ~ x ~ x ~@7 x ~", AN: "~@11 x ~@3 x", AO: "~@4 x ~@2 x ~@5 x ~ x",
  AP: "x ~@3 x ~@2 x ~@5 x ~ x", AQ: "x ~@3 x ~@2 x ~@5 x ~@2", AR: "~@5 x ~@7 x ~ x", AS: "x ~@3 x ~@2 x ~@7 x",
  AT: "x!4 ~@12", AU: "~@7 x ~@2 x ~@3 x ~", AV: "x ~ x ~ x ~ x ~@2 x ~@6",
})).gain(0.6)

// drums · rim
const rim = s("rim").struct("<~@32 [~@10 x ~ x!2 ~ x] [~ x ~@14] ~@39 [~@2 x ~ x!2 ~ x ~ x ~@6] ~@10>").gain(0.67)

// drums · snare
const snare = s("sd").struct(`<
  A ~ A ~ A ~ A ~ B C@7 D C@6 E F G C@6 A H C@2 I J C@2 K L C@2 M L C@3 L C@2 M C@3 N L C@6 O P C@6 P ~ Q C@6 R S T
>`.pickRestart({
  A: "~@3 x ~@4", B: "~@6 x ~ x!2 ~@4 x ~", C: "~@3 x ~@3 x", D: "~@5 x!2 ~@7 x ~", E: "~@6 x ~@6 x ~ x",
  F: "x ~@2 x ~@3 x ~ x ~ x!2 ~@3", G: "~ x ~@4 x ~@7 x ~", H: "~@3 x ~@4 x ~@5 x ~", I: "~@6 x ~@6 x!2 ~",
  J: "~@4 x ~@2 x", K: "~@9 x!2 ~ x ~ x ~", L: "x!2 ~@4 x ~@7 x ~", M: "~@6 x ~@4 x ~@2 x ~", N: "~@6 x ~@7 x!2",
  O: "~@4 x!2 ~ x!2 ~@6 x", P: "~@7 x", Q: "x ~@2 x ~@3 x", R: "~@11 x!3 ~@2", S: "~@5 x!2 ~@2 x!2 ~@3 x ~",
  T: "x ~ x ~@6 x ~@6",
})).gain(0.6)

// drums · low tom
const low_tom = s("lt").struct("<~@6 A ~@21 B ~@3 C ~@3 D ~@7 E ~@11 F ~@3 B ~@11 G H ~@7 I J C>".pickRestart({
  A: "~@5 x ~@10", B: "~@13 x ~@2", C: "~ x", D: "~@9 x ~@6", E: "~@2 x!2", F: "~@9 x!2 ~@2 x ~@2", G: "~@10 x!5 ~",
  H: "~@11 x ~@4", I: "~@7 x ~@8", J: "~ x ~@14",
})).gain(0.6)

// drums · hihat
const hihat = s("hh").struct(`<
  ~@4 A ~@3 B C D E D F C@2 D G H I J K L C M N C O P O Q C R S ~@6 S N C O T O Q C U N C O V W Q C X Y Z AA AB AC AD AE
  AF AG C D C D F C AH AI ~@10
>`.pickRestart({
  A: "~@2 x ~ x!3 ~@9", B: "~@2 x ~ x ~@7 x!2 ~@2", C: "x!3 ~ x!3 ~ x!3 ~ x!3 ~", D: "x!3 ~ x!3 ~ x ~ x ~ x!3 ~",
  E: "x!3 ~ x!3 ~ x!3 ~@2 x!2 ~", F: "x!3 ~ x!3 ~ x ~ x ~ x ~ x ~", G: "x!5 ~ x ~ x!2 ~@2 x ~ x ~",
  H: "x!3 ~ x!3 ~ x ~@3 x!3 ~", I: "x!3 ~ x!6 ~@3 x ~@2", J: "~@2 x ~ x!3 ~ x!3 ~ x!3 ~", K: "x!3 ~ x!5 ~ x ~ x ~ x ~",
  L: "~ x!2 ~ x!3 ~ x ~ x ~ x!3 ~", M: "~ x!2 ~@13", N: "~@4 x!2 ~@2 x!3 ~ x!3 ~", O: "x ~ x ~ x!3 ~ x!3 ~ x!3 ~",
  P: "x!3 ~@2 x!2 ~ x!3 ~ x ~ x ~", Q: "x ~ x ~ x ~ x ~ x!3 ~ x!3 ~", R: "x!4 ~@12", S: "~@4 x!2 ~@10",
  T: "x!3 ~ x!2 ~ x ~ x ~@5 x", U: "x!6 ~ x ~@8", V: "x!3 ~ x!2 ~@2 x!3 ~ x ~@2 x", W: "x ~@3 x!2 ~@2 x!3 ~ x!2 ~ x",
  X: "x!3 ~ x!10 ~ x", Y: "~@2 x ~ x!3 ~ x!5 ~ x ~", Z: "x!2 ~@2 x ~ x ~ x!3 ~ x!3 ~", AA: "x ~@3 x!3 ~ x!3 ~ x!4",
  AB: "x!2 ~@3 x ~@4 x ~ x!3 ~", AC: "x!3 ~ x!3 ~ x!3 ~ x!4", AD: "x ~ x ~ x ~ x ~@2 x!2 ~ x!3 ~",
  AE: "x ~ x ~ x!2 ~@2 x!3 ~@5", AF: "~@2 x!2 ~@2 x ~@2 x ~@3 x ~@2", AG: "~@3 x ~@8 x!2 ~@2",
  AH: "x!3 ~ x!2 ~@4 x!4 ~@2", AI: "~@12 x!2 ~@2",
})).gain(0.4)

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

// drums · open hat
const open_hat = s("oh").struct(`<
  ~@10 A ~ A@3 ~@2 B A B C D E ~@4 F ~@2 G F H ~@5 I ~ H F ~ F J ~ F@2 ~@3 F ~@2 G F ~@2 K F L ~ M F N ~@2 A ~@2 A@2
  ~@12
>`.pickRestart({
  A: "~@9 x ~@6", B: "~@5 x ~@2", C: "x", D: "~@9 x ~@3 x ~@2", E: "x ~@8 x ~@6", F: "~ x ~@14", G: "~ x ~ x ~@12",
  H: "~@3 x ~@4", I: "~@7 x", J: "~@3 x", K: "~ x ~@6", L: "~ x ~@2 x ~@3", M: "~ x ~@3 x ~@2 x ~@7", N: "~@11 x ~@4",
})).gain(0.53)

// drums · high tom
const high_tom = s("ht").struct("<~@18 A ~ A ~@11 B C ~@6 A ~@17 D ~ E ~@2 F ~@8 G ~@4 H ~@3 I J K>".pickRestart({
  A: "~@5 x ~@10", B: "~@2 x ~ x!2 ~@10", C: "~@3 x ~@12", D: "~@13 x ~@2", E: "~@9 x ~@6", F: "~@11 x ~@4",
  G: "~@6 x!2 ~@8", H: "~ x ~@14", I: "~@7 x", J: "~ x ~@6", K: "~ x ~@2",
})).gain(0.6)

// drums · crash
const crash = s("cr").struct(`<
  A ~@3 A ~ B ~ C ~@7 D ~@8 E ~@3 E ~@2 A F ~@2 G ~ H ~ I E ~@3 J ~@2 K J ~@3 E ~@3 J ~@3 E ~ L ~ D ~@3 D ~@2 H D ~@3 M
  ~@2 N ~ H O
>`.pickRestart({
  A: "~@3 x ~@4", B: "~@6 x ~@2 x ~@6", C: "~@5 x ~@2", D: "~@9 x ~@6", E: "~ x ~@14", F: "~ x ~ x ~@12",
  G: "~@5 x ~ x", H: "~@7 x", I: "x ~@2 x ~@4", J: "~ x ~@6", K: "~@8 x ~@2 x ~@4", L: "~@15 x", M: "~ x ~ x ~@4",
  N: "~@9 x ~@4 x ~", O: "x ~ x ~ x ~ x ~@2 x ~@6",
})).gain(0.67)

// drums · ride
const ride = s("rd").struct("<~@33 A B@2 C B D B ~@33 E B@3 F B@2 C ~@3>".pickRestart({
  A: "~@3 x ~ x ~ x", B: "~ x ~ x ~ x ~ x", C: "~ x ~ x ~@4", D: "~ x ~ x ~ x ~@2", E: "~@7 x", F: "~@5 x ~ x",
})).gain(0.6)

// … 13 more lines

More by Chick Corea