Strudelify
Digital Man cover art

Signals

Digital Man

Rush

KeyA majorTempo155 bpm
0:00/0:00
// Digital Man — Rush
// 155 bpm, 4/4, key A major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: Tempo changes preserved in elapsed time; displayed bars use the dominant tempo.
// note: Full arrangement: all 198 bars on a 24-step grid, each part at one level. Source detail keeps the original performance.
setcpm(155/4)

// Notation: c3@3 lasts 3 steps · ~ is a rest · [c3,e3] is a chord · [...]/2 spreads a riff over 2 bars.
// A part's distinct bars are riffs (A, B, C...) played in order, A@4 for four bars: edit a riff to change every repeat.

// chords · distortion guitar · "Guitar"
const distortion_guitar = note(`<
  ~@2 A B C@2 A B C@2 A B C@2 A B C@2 D@2 E@2 F@2 G@2 A B C@2 A B C@2 A B H I J K L@2 J K L@2 J K L@2 J K L@2 J K A@2 B
  C@2 A B C@2 D@2 E@2 F@2 G@2 A B C@2 A B C@2 A B H I J K L@2 J K L@2 J K L@2 J K L@2 J K L@2 M@7 N@2 O@2 P@2 Q@2 R@7 S
  T U@2 S T U@2 S T U@2 S T U@2 S T V@4 W@2 X@2 Q@2 Y@2 Z@7 AA@2 AB@2 AC@2 AD@2 AE@7 N@2 O@2 AF@2 AG@2 AH@7 AI@2 AJ@2
>`.pickRestart({
  A: "~ [a3,b3,c#4,e4]@7", B: "~ [a3,b3,c#4,e4]@3 ~ [a3,b3,c#4,e4]@3", C: "[~ [a#3,b3,c#4,e4]@15]/2",
  D: "[[e3,a3]@4 [a3,b3,c#4,e4]@11 b3]/2", E: "[c#3,e3,a#3,b3]/2", F: "[c#3,e3,a3,b3]/2",
  G: "[e4@2 b3@2 a#3@2 f#3@3 [c#3,f#3]@15]/2", H: "~ [a#3,b3,c#4,e4]@7", I: "[a#3,b3,c#4,f#4]",
  J: "~@2 [d4,f#4,a4]!2 ~@2 [d4,e4,a4]!2", K: "~@2 [d4,e4,a4]!2 ~@2 [e3,a3,b3]!2",
  L: "[~@2 [e3,a3,b3]!2 ~@2 [e3,a#3,b3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14 [b3,d4,g4]@38 ~@13 [a3,d4,e4]@38 ~@14]/7",
  AI: "[[e3,b3,e4]@19 ~@5]/2", AJ: "[~@3 [b3,d4,g4]@38 ~@7]/2",
})).s("gm_distortion_guitar").gain(0.21).pan(0.3)

// chords · pad poly · "Synth"
const pad_poly = note(`<
  ~@2 A B C@2 A B C@2 A B C@2 A B C@2 D@2 E@2 F@2 G@2 A B C@2 A B C@2 A B H I ~@19 A B C@2 A B C@2 D@2 E@2 F@2 G@2 A B
  C@2 A B C@2 A B H I ~@113
>`.pickRestart({
  A: "~ [a3,b3,c#4,e4]@7", B: "~ [a3,b3,c#4,e4]@3 ~ [a3,b3,c#4,e4]@3", C: "[~ [a#3,b3,c#4,e4]@15]/2",
  D: "[[e3,a3]@4 [a3,b3,c#4,e4]@11 b3]/2", E: "[c#3,e3,a#3,b3]/2", F: "[c#3,e3,a3,b3]/2",
  G: "[e4@2 b3@2 a#3@2 f#3@3 [c#3,f#3]@15]/2", H: "~ [a#3,b3,c#4,e4]@7", I: "[a#3,b3,c#4,f#4]",
})).s("gm_pad_poly").gain(0.4).pan(0)

// bass · pad poly · "Synth Bass"
const bass = note(`<
  ~ A B C D E B C D E B C D E B C D E F@2 G H I@2 J K B C D E B C D E L M N O ~@19 B C D E B C D E F@2 G H I@2 J K B C D
  E B C D E L M N O ~@20 P@2 Q@2 R@2 S@2 T@7 U@7 ~@19 V@2 W@2 X@7 Y@2 Z@2 AA@2 AB@2 AC@7 P@2 AD@2 AE@2 S@2 AF@7 AG@2
  AH@2 AI@7
>`.pickRestart({
  A: "~@7 e1", B: "f#1 e2@6 e1", C: "f#1 e2@2 e1 f#1 e2@2 e1", D: "f#1@3 f#2@12 c#2@3 f#2@2 c#2@2 f#2@2",
  E: "a1!2 b1!2 c#2!2 b1 a1", F: "[f#1@4 e2@11 e1]/2", G: "f#1 f#2@6 f#2", H: "a1!2 b1!2 c#2!2 e1!2",
  I: "[f#1 e2@14 e1]/2", J: "f#1 f#2@7", K: "a1!2 b1!2 c#2!4", L: "f#1 e2@2 e2@2 e2@2 e1",
  M: "f#1 e2@2 f#2@2 f#2 e2 c#2", N: "f#2@2 f#2 c#2 f#2@2 e2@2", O: "c#2 b1 a1@2 f#1@2 b1 c#2", P: "[~ d2@47]/2",
  Q: "[~ e2@11]/2", R: "[~@7 g2@41]/2", S: "[~@11 d2@37]/2", T: "[~@14 e2@51 g2@51 ~ d2@51]/7",
  U: "[e2@51 g2@51 ~ d2@50 ~@15]/7", V: "[~@5 d2@19]/2", W: "[~@13 e2@35]/2", X: "[~@17 g2@51 d2@51 e2@49]/7",
  Y: "[~ g2@15]/2", Z: "[~ d2@7]/2", AA: "[~@3 e2@13]/2", AB: "[~ g2@3]/2", AC: "[~@16 d2@51 e2@51 g2@50]/7",
  AD: "[~@5 e2@43]/2", AE: "[~ g2@5]/2", AF: "[~@5 e2@17 g2@17 d2@17]/7", AG: "[~ e2@47]/2", AH: "[~ g2@11]/2",
  AI: "[~@7 d2@50 ~@2 e2@51 g2@51 ~@7]/7",
})).s("gm_pad_poly").gain(0.8).pan(1)

// bass · electric bass finger · "Bass"
const bass_2 = note(`<
  ~ A B C D E B C D E B C D E B C D E F@2 G H I@2 J K B C D E B C D E L M N O P Q R S P Q R S P Q R S P Q R S P Q B@2 C
  D E B C D E F@2 G H I@2 J K B C D E B C D E L M N O P Q R S P Q R S P Q R S P Q R S P Q R T U@2 V@2 W@2 X Y Z AA AB AC
  AD Y AE AF AG AH AI AJ@8 AK@8 AL@8 AM@2 AN@2 AO@2 AP@2 AQ@2 AR@2 AS@2 AT AU AV AW AX AY AG AZ BA BB AE BC BD AF BE
  BF@2 BG@2 BH@2 BI@2 U@2 BJ@2 BK@2 BL@2 BM AA BN BO ~
>`.pickRestart({
  A: "~@7 e1", B: "f#1 e2@6 e1", C: "f#1 e2@2 e1 f#1 e2@2 e1", D: "f#1@3 f#2@12 c#2@3 f#2@2 c#2@2 f#2@2",
  E: "a1!2 b1!2 c#2!2 b1 a1", F: "[f#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 d2@3 d2@3 d2@3 d2@3 ~ d2@2]/2",
  BM: "~ d2@3 d2@3 d2@3 ~ e2@3 e2@3 e2@3 e2@3 ~", BN: "~ e2@3 e2@3 ~ e2@3 e2@3 g2@3 g2@3 g2@3 ~", BO: "g2!3 ~@5",
})).s("gm_electric_bass_finger").gain(0.8).pan(0.6)

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

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

// drums · low tom
const low_tom = s("lt").struct("<~ A ~@54 B ~@14 C ~@31 B ~@41 D ~@6 E ~@36 F ~@8>".pickRestart({
  A: "~@16 x!8", B: "~@23 x", C: "~@3 x ~@4", D: "~@7 x ~@16", E: "~@3 x", F: "~ x ~@10",
})).gain(0.8)

// drums · hihat
const hihat = s("hh").struct(`<
  ~@2 A@35 B A@18 C A@3 B A@23 D A@18 C A E F E F E F G H G H I H I H J K L K L M ~ N O@17 P Q R S R S R S T U E U E F E
  F E F G H G H I H I H J K L K L V S R S R S R S E U E U E F E F E F G H G B ~
>`.pickRestart({
  A: "x!8", B: "x!5 ~@3", C: "x!4 ~@4", D: "x!6 ~@2", E: "~ x ~@2 x ~@2 x ~@2 x ~@3 x ~@2 x ~@2 x ~@2 x",
  F: "~@3 x ~@2 x ~@2 x ~@2 x ~@2 x ~@3 x ~@2 x ~", G: "~ x ~@2 x ~@2 x ~@3 x ~@2 x ~@2 x ~@2 x ~@3",
  H: "x ~@2 x ~@2 x ~@2 x ~@2 x ~@3 x ~@2 x ~@2 x ~", I: "~ x ~@2 x ~@3 x ~@2 x ~@2 x ~@2 x ~@2 x ~@3",
  J: "~ x ~@3 x ~@2 x ~@2 x ~@2 x ~@2 x ~@3 x ~@2", K: "x ~@2 x ~@2 x ~@2 x ~@3 x ~@2 x ~@2 x ~@2 x ~",
  L: "~@2 x ~@2 x ~@2 x ~@2 x ~@3 x ~@2 x ~@2 x ~@2", M: "x!2 ~@6", N: "~@8 x ~@2 x ~@2 x ~@2 x ~@2 x ~@2 x",
  O: "~@2 x ~@2 x ~@2 x ~@2 x ~@2 x ~@2 x ~@2 x ~@2 x", P: "~@2 x ~@2 x ~@2 x ~@2 x ~@2 x ~@2 x ~@6",
  Q: "~@8 x ~@2 x ~@3 x ~@2 x ~@2 x ~@2", R: "x ~@3 x ~@2 x ~@2 x ~@2 x ~@2 x ~@3 x ~@2 x",
  S: "~@2 x ~@2 x ~@2 x ~@3 x ~@2 x ~@2 x ~@2 x ~@2", T: "~ x ~@2 x ~@2 x ~@12 x ~@2 x",
  U: "~@2 x ~@3 x ~@2 x ~@2 x ~@2 x ~@2 x ~@3 x ~", V: "x ~@2 x ~@2 x ~@3 x ~@2 x ~@2 x ~@2 x ~@2 x ~",
})).gain(0.8)

// drums · mid tom
const mid_tom = s("mt").struct(`<
  ~ A ~@37 B C ~@2 B C ~@2 B C ~@2 B C ~@2 B D ~@3 E ~@10 F ~@14 B C ~@2 B C ~@2 B C ~@2 B C ~@2 B D ~@24 G H ~@2 G H
  ~@2 G H ~@2 G H ~@2 G I ~@6 J ~@8 K ~@14 F ~@11 E L ~@8
>`.pickRestart({
  A: "~@8 x ~ x ~ x!4 ~@8", B: "~@6 x!2", C: "~@2 x!2 ~@2 x!2", D: "~@6 x ~@2 x ~@8 x ~ x!2 ~@2", E: "~@21 x ~ x",
  F: "~ x!2 ~@5", G: "~@2 x ~@2 x ~@8 x ~@2 x ~@6", H: "~@2 x ~@2 x ~@18", I: "~@2 x ~ x!2 ~@18", J: "~@15 x ~ x ~@6",
  K: "~@4 x ~@2 x ~@16", L: "~ x ~@22",
})).gain(0.8)

// drums · high tom
const high_tom = s("ht").struct(`<
  ~ A ~@36 B C ~@2 B C ~@2 B C ~@2 B C ~@2 B C D ~@3 E ~@10 F ~@13 B C ~@2 B C ~@2 B C ~@2 B C ~@2 B C D ~@22 G H ~@2 G
  H ~@2 G H ~@2 G H ~@2 G H I ~@7 J ~@7 K L ~@14 F ~@11 M ~@9
>`.pickRestart({
  A: "x!4 ~@8", B: "~@2 x!2 ~@2 x!2", C: "~@2 x!2 ~@4", D: "~@4 x!2 ~@2", E: "~@14 x ~@2 x ~@2 x ~@3", F: "x",
  G: "~@14 x ~@2 x ~@6", H: "~@2 x ~@2 x ~@8 x ~@2 x ~@6", I: "~@20 x ~@2 x", J: "~@3 x!2 ~@3", K: "~@23 x",
  L: "~ x!2 ~@5", M: "~@15 x ~ x!2 ~ x ~@3",
})).gain(0.8)

// drums · crash
const crash = s("cr").struct(`<
  ~@2 A ~@37 B ~ C ~ D ~@3 B ~@3 B ~@4 A ~@3 A ~@3 A ~@7 A ~@11 A ~ B ~ C ~ D ~@3 B ~@3 B ~@5 E ~ F ~ G ~@2 A ~ H ~ I ~
  J ~ K ~ L ~ M ~ N ~@2 O G ~ F O ~@3 O ~@3 O ~@4 P ~@2 Q ~ O G J ~ C ~ R ~ S ~ T ~@2 U ~ O ~ N ~ V ~ E ~ W ~ X ~@2 A ~
  Y ~ M ~ Z ~ E ~@10
>`.pickRestart({
  A: "x", B: "~@7 x", C: "~ x", D: "~@3 x ~@3 x", E: "~@7 x ~@4", F: "~@17 x ~@6", G: "~@5 x", H: "~ x ~@6",
// … 6 more lines

More by Rush