Strudelify

Endless Sleep

Jody Reynolds

KeyA majorTempo108 bpm
0:00/0:00
// Endless Sleep — Jody Reynolds
// 108 bpm, 4/4, key A major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: pitch bends are ignored
// note: Full arrangement: all 86 bars on a 24-step grid, each part at one level. Source detail keeps the original performance.
setcpm(108/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 · "STEEL GTR"
const acoustic_guitar_steel = note(`<
  A B@2 C@2 D@2 E@2 B@2 F G H@2 F I J K F L M N O P H@2 Q@2 H@2 R S T@2 F U V W X Y Z AA AB AC AD@2 AE@2 AF@2 H@2 R S
  T@2 F U V W X AG Z AA AB AH AB AI AB AJ AK@2 AL@2 T@2 AM@2 AN@2 AO@2 AP@2 ~
>`.pickRestart({
  A: "~@11 [g#2,d#3,g#3]", // G#5
  B: "[[a2,e3]@5 ~ [a2,e3]@11 ~ [a2,e3]@11 ~ [a2,e3]@11 ~ [a2,e3]@3 ~ [g#2,d#3,g#3]@2, a3@15 ~]/2", // A5 G#5
  C: "[[a2,e3]@5 ~ [a2,e3]@11 ~ [a2,e3]@11 ~ [a2,e3]@10 ~@2 [a2,e3]@3 ~ [g#2,d#3,g#3]@2, a3@23 ~]/2", // A5 G#5
  D: "[[a2,e3]@4 ~@2 [a2,e3]@11 ~ [a2,e3]@11 ~ [a2,e3]@11 ~ [a2,e3]@3 ~ [g#2,d#3,g#3]@2, a3@15 ~]/2", // A5 G#5
  E: "[[a2,e3]@5 ~ [a2,e3]@11 ~ [a2,e3]@11 ~ [a2,e3]@10 [g3,c4]@2 [f#3,b3]@2 ~@2 [g#2,d#3,g#3]@2, a3@19 ~@5]/2", // A5 C5 B5 G#5
  F: "[a2,e3]@5 ~ [a2,e3]@11 ~ [a2,e3]@5 ~, a3@23 ~", G: "[e2,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2]/2", // A5 C5 B5 G#5
  AG: "[e2,b2]@9 ~ [a2,e3]@6 [a2,e3]@2 [b2,f#3]@3 ~ [c#3,g#3]@2, d2 ~@11", AH: "[e2,b2]@9 ~ [a2,e3]@12 [g#2,d#3,g#3]@2",
  AI: "[e2,b2]@9 ~ [a2,e3]@11 ~ [g#2,d#3]@2", AJ: "e2@5 [a2,e3]@2 ~ [g3,c4] [f#3,b3] ~ [g#2,d#3,g#3], b2 ~@2",
  AK: "[[a2,e3]@5 ~ [a2,e3]@12 [a2,e3]@11 ~ [a2,e3]@12 [a2,e3]@3 ~ [g#2,d#3,g#3]@2, a3@15 ~]/2", // A5 G#5
  AL: "[[a2,e3]@6 [a2,e3]@11 ~ [a2,e3]@11 ~ [a2,e3]@12 [a2,e3]@3 ~ [g#2,d#3,g#3]@2, a3@15 ~]/2", // A5 G#5
  AM: "[[a2,e3]@5 ~ [a2,e3]@11 ~ [a2,e3]@11 ~ [a2,e3]@11 ~ [a2,e3]@3 ~ [g#2,d#3,g#3]@2, a3@11 ~]/2", // A5 G#5
  AN: "[[a2,e3]@5 ~ [a2,e3]@12 [a2,e3]@12 e3@11 ~ e3@3 ~ [g#2,d#3,g#3]@2, a3@11 ~, ~@10 a2@5 ~]/2", // A5 G#5
  AO: "[a2@5 ~ a2@11 ~ [a2,e3]@11 ~ [a2,e3]@12 [a2,e3]@3 ~ [g#2,d#3,g#3]@2, a3@15 ~, e3 ~@2]/2", // A5 G#5
  AP: "[[a2,e3]@5 ~ [a2,e3]@42, a3]/2", // A5
})).s("gm_acoustic_guitar_steel").gain(0.38)

// bass · fretless bass · "FRETLESS"
const bass = note(`<
  ~@8 A B@2 C D B@2 C E F G C E F H I J K L K M N L O P O L O Q R S T U R V N W N X N X N Y N X N Z I AA N AB R S T U R
  V N AC N AD I D AE@6 AF@2 AE@2 AG@2 AH@2 ~
>`.pickRestart({
  A: "~@16 c2@2 b1@3 ~ g#1@2", B: "[a1@5 ~ a2@24 a1@15 ~ g#1@2]/2", C: "a1@6 a2@17 ~",
  D: "e1@9 ~ a1@5 ~ c2@2 b1@3 ~ g#1@2", E: "e1@9 ~ a1@11 ~ c#2@2", F: "d2@10 ~ c#2", G: "d2@10 ~ g#1",
  H: "d2@19 ~@3 g#1@2", I: "a1", J: "e1@9 ~ a1@6 c2 ~ b1@3 ~ g#1 ~", K: "a1 a2@3", L: "g2@19 ~@3 g#1@2",
  M: "g2@6 ~@2 c2 b1 ~ g#1", N: "a1@23 ~", O: "a1@11 ~", P: "e1@7 ~@3 a1@6 c2@2 b1@2 ~@2 g#1@2",
  Q: "e1@4 ~ a1@3 a1 b1 ~ c#2", R: "d2@7 ~@3 d2 ~ d2@7 ~@3 d2 ~", S: "d2@3 ~ d2@3 ~@3 d2 ~ d2@7 ~@3 e2@2",
  T: "a1@7 ~@3 a1 ~ a1@8 ~@2 a1 ~", U: "e1@7 ~@3 a1@5 ~ a1 ~ b1@2 ~@2 c#2 ~", V: "d2@3 ~ d2@2 ~@4 d2 ~ d2@7 ~@3 e2 ~",
  W: "e1@9 ~ a1@4 ~@2 c2@2 b1@2 ~@2 g#1@2", X: "a2@21 ~ g#1@2", Y: "a2@13 ~@3 c2@2 b1@2 ~@2 g#1@2",
  Z: "e1@8 ~@2 a1@6 c2@2 b1@3 ~ g#1@2", AA: "a2", AB: "e1@10 a1@5 ~ a1 ~ b1@3 ~ c#2@2", AC: "e1@9 ~ a1@12 g#1@2",
  AD: "e1@9 ~ a1@11 ~ g#1 ~", AE: "[a1@6 a2@24 a1@15 ~ g#1@2]/2", AF: "[a1@3 a2@12 a1@7 ~ g#1]/2",
  AG: "[a1@6 a2@23 ~ a1@15 ~ g#1@2]/2", AH: "[a1 a2@7]/2",
})).s("gm_fretless_bass").gain(0.44)

// other · electric guitar jazz · "JAZZ GTR"
const electric_guitar_jazz = note("<~@36 A@2 B@2 C D@3 ~@14 E@2 F@2 C G H@2 ~@20>".pickRestart({
  A: "[~@11 [f4,g#4]@13]/2", B: "[~@16 a4@2 f#4@3 ~ d#4@23 ~@3]/2", C: "~@8 b3@3 a3",
  D: "[g3@27 ~@13 f#4@2 d#4@25 ~@5]/3", E: "[~@22 [f4,g#4]@23 ~@3]/2",
  F: "[~@12 g4@3 ~ f#4@2 a4@3 ~ [c4,d#4]@22 ~@4]/2", G: "g3@23 ~", H: "[~@16 f#4@2 d#4@23 ~@7]/2",
})).s("gm_electric_guitar_jazz").gain(0.49).pan(0.4)

// chords · flute
const flute = note("<~@16 A B C D E F@2 ~@14 G H I J K@2 ~@16 L M N O P Q ~@2 R S T U@2 ~@14>".pickRestart({
  A: "~@11 f#3", B: "a3@4 a3@2 f#3@4 a3@8 ~@3 a3 a3@2", C: "d4@3 a3@2 a3@4 ~@3", D: "~@2 c#4 c#4@2 c#4 a3@2 e3@3 e3",
  E: "g#3@3 e3@2 e3@4 ~@3", F: "[~@2 a3!2 f#3 a3@4 ~@2 d4@3 a3!2 f#3 a3@4 ~@3]/2",
  G: "[a3,f#4]@4 [a3,f#4]@2 [f#3,e4]@4 [a3,f#4]@6 ~@5 [a3,f#4] f#4@2, ~@22 a3 ~", // D F#7 D
  H: "[d4,a4]@3 [a3,f#4]@2 [a3,f#4]@2 ~@5", I: "~@2 [c#4,a4] [c#4,a4]@2 [c#4,a4] [a3,e4]@2 [e3,c#4]@3 [e3,c#4]",
  J: "[g#3,d4]@3 [e3,b3]@2 [e3,c#4]@3 ~@4", // G#dim E5 C#m
  K: "[~@2 [a3,f#4]!2 f#3 [a3,f#4]@2 ~@4 [d4,a4]@3 [a3,f#4]!2 [f#3,e4] [a3,f#4]@2 ~@5, ~@8 e4 ~@39]/2", // D D5 D F#7 D
  L: "[a3,f#4]@4 [a3,f#4]@2 [f#3,e4]@4 [a3,f#4]@4 ~@7 [a3,f#4] f#4@2, ~@22 a3 ~", // D F#7 D
  M: "[d4,a4]@3 [a3,f#4]@2 [a3,f#4]@3 ~@4", // D5 D
  N: "~@2 [c#4,a4] [c#4,a4]@2 c#4 [a3,e4]@2 [e3,c#4]@3 [e3,c#4], ~@10 a4 ~@13", // F#m A5 C#m
  O: "[g#3,d4]@3 [e3,b3]@2 [e3,c#4]@4 ~@3", P: "~@2 [a3,f#4] [a3,f#4]@2 [f#3,e4] [a3,f#4]@3 [a3,g4]@2 [a3,f#4]",
  Q: "[d4,a4]@6 [a3,f#4]@4 [a3,f#4]@5 ~@9", R: "~@2 c#4 c#4@2 c#4 a3@2 e3 e3@2 e3", S: "g#3@3 e3@2 e3@7",
  T: "~@2 [c#4,a4] [c#4,a4]@2 [c#4,f#4] [a3,e4]@2 [e3,c#4] [e3,c#4]@2 [e3,c#4]", // F#m F#5 A5 C#m
  U: "[[g#3,d4]@3 [e3,b3]@2 [e3,c#4]@13 ~@6]/2", // G#dim E5 C#m
})).s("gm_flute").gain(0.3).pan(0.4)

// other · clavinet
const clavinet = note("<~@25 A@2 B@2 ~@16 C@6 ~@20 C@10 A@4 ~>".pickRestart({
  A: "[~ a2@7]/2", B: "[~ a2@6 ~]/2", C: "[~@6 a2@41 ~]/2",
})).s("gm_clavinet").gain(0.44).pan(0.6)

// drums · kick
const kick = s("bd").struct(`<
  ~@8 A B A B C B A B C D@2 B C D@2 B C B A B A E@3 F E@3 G E@2 G C E G B C E G E G E G E G E C E G E C E@2 G C E G B C
  B C B C E G E G E G E G E G E G H ~@2
>`.pickRestart({
  A: "~@11 x", B: "x", C: "x ~@4 x ~@5 x", D: "x ~@10 x", E: "x!2", F: "x ~@4 x ~@6", G: "x ~@5 x ~@4 x", H: "x!2 ~@2",
})).gain(0.44)

// drums · rim
const rim = s("rim").struct("<~@25 A ~ A ~@17 A ~ A ~ A ~@21 A ~ A ~ A ~ A ~ A ~ A ~@4>".pickRestart({
  A: "~ x ~@2",
})).gain(0.55)

// drums · snare
const snare = s("sd").struct(`<
  ~@30 A ~ A ~ A ~ A B@5 C ~ A ~@3 A ~ A ~ A ~ A ~ A ~ A B@5 C ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~@3
>`.pickRestart({
  A: "~@8 x!2 ~@2", B: "~ x ~ x", C: "~@3 x ~@4 x!2 ~@2",
})).gain(0.49)

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

// drums · open hat
const open_hat = s("oh").struct("<~@83 [~ x ~@2] ~@2>").gain(0.49)

stack(acoustic_guitar_steel, bass, electric_guitar_jazz, flute, clavinet, kick, rim, snare, hihat, open_hat)