Strudelify

Street of Dreams

Rainbow

KeyF♯ minorTempo120 bpm
0:00/0:00
// Street of Dreams — Rainbow
// 120 bpm, 4/4, key F# minor. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: Full arrangement: all 108 bars on a 16-step grid, each part at one level. Source detail keeps the original performance.
setcpm(120/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: edit a riff to change every repeat.

// chords · harpsichord · "Track1"
const harpsichord = note(`<
  A B A B A B A B A@4 ~@8 C D E@2 F G H I@4 J K J L J K J L A M ~@8 C D E@2 F G H I@4 J K J L J K J L N O N O N P N Q N
  P N Q C D E@2 F G H I@4 J K J L J K J L A B A B A B A B A
>`.pickRestart({
  A: "[f#4,a4,c#5]@7 ~", B: "[e4,a4,c#5]@7 ~ [b3,g#4,b4]@7 ~", C: "[f#5,a5]@7 ~", D: "[e5,a5]@7 ~",
  E: "[[f#5,b5]@15 ~]/2", F: "[f#5,a5]", G: "[e5,a5]", H: "[f#5,b5] [f#5,a5]", I: "[g#5,b5]",
  J: "[f#4,a4] [a4,c#5] [c#5,f#5] [f#5,a5] [c#5,f#5] [a4,c#5] [f#4,a4] [a4,c#5] [c#5,f#5] [f#5,a5] [c#5,f#5] [a4,c#5] [f#4,a4] [a4,c#5] [c#5,f#5] [f#5,a5]", // F#m A F#5 F#m F#5 A F#m A …
  K: "[f#4,a4] [a4,d5] [d5,f#5] [f#5,a5] [d5,f#5] [a4,d5] [f#4,a4] [a4,d5] [d5,f#5] [f#5,a5] [d5,f#5] [a4,d5] [f#4,a4] [a4,d5] [d5,f#5] [f#5,a5]", // F#m D5 D F#m D D5 F#m D5 …
  L: "[c#5,e5,a5]@3 [c#5,e5,a5]@2 [c#5,e5,a5]@3 [b4,e5,g#5]@8", M: "[f#4,a4,d5] [g#4,b4,e5]", N: "[f#4,a4,c#5]",
  O: "[e4,a4,c#5] [b3,e4,g#4]", P: "[f#4,a4,d5]", Q: "[e4,a4,c#5] [e4,g#4,b4]",
})).s("gm_harpsichord").gain(0.24)

// other · piano · "Track2"
const piano = note("<~@3 A B ~@2 C D@2 E F ~@56 G@2 H ~@31 A B ~@4>".pickRestart({
  A: "c#5@2 ~ d5@2 e5@2 ~ b4@6 a4 b4", B: "a4", C: "c#5@3 d5@2 e5@3 b4@4 b5@4",
  D: "[a5@24 ~@2 a4 b4 c#5 b4 a4 [e4,g#4]]/2", E: "f#4@14 e4 d4", F: "c#4 d4 c#4@14",
  G: "[~@6 c#5 b4 c#5@14 d5 c#5 b4@8]/2", H: "~@6 c#5 b4 c#5@8",
})).s("gm_piano").gain(0.63)

// bass · electric bass finger · "Track4"
const bass = note(`<
  A B A B A B A B C@3 D C E C F C E C G H I J K H L M N O N O C E C G C E C G A P C E C F C E C G H I J K H L M N O N O
  C E C G C E C G A B A Q C@3 R C@3 S H I J K H L M N O N O C E C G C E C G A B A B A B A B A
>`.pickRestart({
  A: "f#2", B: "a2 e2", C: "f#2@2 ~ f#2 f#2@2 ~@2", D: "f#2@2 ~ f#2!2 b2 f#3 c#3", E: "f#2@2 ~ f#2 f#2@2 ~ f#3",
  F: "a2@2 ~ a2 e2@4", G: "a2@3 c#3 e3@2 b2@2", H: "d3@2 ~ d3 d3@2 ~ d3", I: "c#3@2 ~ c#3!2 d3 e3 c#3",
  J: "b2@4 ~@2 b2@2 b2@5 ~ f#2@2", K: "b2@2 ~ b2!2 b3 c#3 c#4", L: "c#3@2 ~ c#3!2 d3 e3 a3", M: "b2@4 ~@2 b2@2 a2@7 ~",
  N: "e3!8", O: "e3!6 b2!2", P: "d3 e3", Q: "a2 c#3 e2 g#2", R: "a2@2 ~ a2 e2@2 ~@2", S: "a2@2 ~ a2 e3@2 b2@2",
})).s("gm_electric_bass_finger").gain(0.22)

// other · tenor sax · "Track5"
const tenor_sax = note(`<
  ~@12 A B C D E F G D H I J K H I L M N@2 O H P ~ Q R P ~ Q S ~ T U V W X@2 Y@2 H I J K H I L M N@2 O H P ~ Q R P ~ Q S
  ~@11 H I J K H I L M N@2 O H P ~ Q R P ~ Q S ~@8
>`.pickRestart({
  A: "c#4@2 b3 a3 a3@2 ~ f#3", B: "b3@2 a3 a3@3 ~@2", C: "~@4 c#4@4 b3 a3 f#3@2 ~@4", D: "c#4 e4!2 f#4 c#4@2 b3@2",
  E: "~ c#4 b3 a3 c#4@2 ~ b3", F: "b3@2 a3@2 a3@2 f#3@2 b3 a3 f#3@2 ~@4", G: "~ f#4!2 ~", H: "~ f#4 g#4 a4",
  I: "a4 e4@2 e4 e4@2 ~ c#4", J: "f#4@3 f#4!2 e4 c#4!2", K: "b3 a3@3 ~@4", L: "f#4@12 f#4@2 g#4 f#4",
  M: "e4@2 ~@2 [c#4,e4] [e4,g#4]!2 [c#4,e4]", // C#m E C#m
  N: "[[g#4,b4]@2 [g#4,b4]!3 [f#4,a4] [e4,g#4] [e4,g#4]@3 ~@2 [c#4,e4] [e4,g#4]!2 [c#4,e4]]/2", // G#m F#m E C#m E C#m
  O: "[g#4,b4]!2 [f#4,a4] [e4,g#4]", P: "g#4@3 f#4 f#4@4", Q: "c#4@3 d4@2 e4@3 b3@6 c#4@2", R: "c#4@4 f#4!2 g#4 a4",
  S: "c#4 ~", T: "~@2 a4 f#4 f#4@2 ~ f#4", U: "a4 g#4!2 f#4 f#4@2 ~@2", V: "~ a4 f#4 ~", W: "f#4 e4!2 f#4 c#4@2 b3 a3",
  X: "[~ c#5 b4 a4 a4@2 f#4 b4@2 f#4!3 f#4@2 ~@2]/2", Y: "[~ a4 g#4 f#4 ~@3 f#4@2 e4!2 f#4 c#4@2 b3 a3]/2",
})).s("gm_tenor_sax").gain(0.62)

// drums · kick
const kick = s("bd").struct(`<
  A B A B A B A B C@19 D@3 A C@8 A B C@15 D@3 A C@8 A B A B C@15 D@3 A C@8 A B A B A B A B A
>`.pickRestart({
  A: "x", B: "x!2", C: "x ~@2 x!2 ~@3", D: "x!2 ~ x!2 ~@3",
})).gain(0.35)

// drums · snare
const snare = s("sd").struct(`<
  ~@7 A B@3 C B@7 D B@6 E B@3 F B@8 ~ G B@7 D B@6 E B@3 F B@8 ~@3 A B@14 E B@3 F B@8 ~@7 A ~
>`.pickRestart({
  A: "~@2 x!6 ~@6 x!2", B: "~ x ~ x", C: "~@4 x ~@6 x!2 ~@3", D: "~@2 x ~@3 x!2", E: "~@4 x ~@7 x ~ x!2",
  F: "~@8 x!2 ~@6", G: "~@10 x!3 ~@3",
})).gain(0.35)

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

// drums · low tom
const low_tom = s("lt").struct("<~@30 [~@14 x!2] ~@28 [~@14 x!2] ~@30 [~@14 x!2] ~@17>").gain(0.35)

// drums · open hat
const open_hat = s("oh").struct("<~@11 A ~@7 B ~@28 B ~@30 C ~@28>".pickRestart({
  A: "~@7 x", B: "~@6 x!2", C: "~@3 x",
})).gain(0.45)

// drums · mid tom
const mid_tom = s("mt").struct("<~@30 A ~@9 B ~@18 A ~@30 A ~@17>".pickRestart({
  A: "~@12 x!2 ~@2", B: "~@7 x",
})).gain(0.35)

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

// drums · high tom
const high_tom = s("ht").struct("<~@7 A ~@3 B ~@18 C ~@9 D ~@18 C ~@11 A ~@7 E ~@10 C ~@15 A ~>".pickRestart({
  A: "~@10 x!4 ~@2", B: "~@9 x!2 ~@5", C: "~ x!3 ~ x ~@2", D: "~@13 x ~@2", E: "~@14 x!2",
})).gain(0.35)

stack(harpsichord, piano, bass, tenor_sax, kick, snare, hihat, low_tom, open_hat, mid_tom, crash, high_tom)