Strudelify

De regenboog

Bauer

KeyB majorTempo116 bpm
0:00/0:00
// De regenboog — Bauer
// 116 bpm, 4/4, key B major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: Tempo changes preserved in elapsed time; displayed bars use the dominant tempo.
// note: pitch bends are ignored
// note: Full arrangement: all 95 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(116/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.

// other · acoustic guitar steel · "#Mandolin"
const acoustic_guitar_steel = note(`<
  ~@10 A B C ~ D E F ~ A B G H I J K ~@18 A B C ~ D E F ~ A B G H I J K ~@31 L M N O@3
>`.pickRestart({
  A: "~@5 f#4 b4 c#5", B: "d#5 ~ d#5 ~ d#5 ~ d#5@4 c#5@4 b4@2", C: "a#4!13 ~@3", D: "~@5 f#4 a#4 b4",
  E: "c#5 ~ c#5 ~ c#5 ~ c#5@4 a#4@4 g#4@2", F: "f#4!13 ~@3", G: "g#4!13 ~ g#4 ~",
  H: "g#4@2 e5 ~ e5 ~ e5@3 ~ d#5@4 c#5@2", I: "d#5 ~ d#5@2 b4@2 f#4!7 ~ f#4@2",
  J: "c#5 ~ c#5 ~ d#5 ~ e5@3 ~ d#5@2 c#5@2 ~@2", K: "b4!13 ~@3", L: "[e4,c5]@12 a6 ~ g6 ~",
  M: "~@4 [a5,f6] ~ [g5,e6] ~@5 [f5,d6] ~ [e5,c6] ~", N: "~@2 g5 ~ a5 ~ g5 ~@2 e5 ~ g5 ~ e5 ~ g5",
  O: "[~@2 [e5,c6]@39 ~@7]/3", // C
})).s("gm_acoustic_guitar_steel").gain(0.3)

// bass · electric bass finger · "Fing.Bass"
const bass = note(`<
  A B C D E F G H@2 I J I K L M N O P J I Q R I N O S B T D E F G D U B C D E F G H@2 I J I K L M N O P J I Q R I N O S
  B T D E F G D U B C D E F G V W X Y Z AA AB AC Z AD AE AF Z AA AB AC AG Z AH@4
>`.pickRestart({
  A: "~@3 b1", B: "e2@5 ~ e2@2 b1@3 ~ c#2@4", C: "e2@5 ~ e2@2 b1@4 e2@4", D: "b1@5 ~ b1@2 f#1@4 g#1@4",
  E: "b1@5 ~ b1@2 f#1@4 b1@3 ~", F: "f#2@5 ~ f#2@2 c#2@4 d#2@4", G: "f#2@5 ~ f#2@2 c#2@4 f#2@3 ~",
  H: "b2@5 ~ b2 ~ b2@7 ~", I: "b1@3 f#2@3 b1@2", J: "e2@3 b1@3 f#1@2", K: "f#2@3 f#1@3 f#2@2", L: "c#2@3 g#2@3 c#2@2",
  M: "g#1@3 c#2@3 f#2@2", N: "f#1@3 c#2@3 f#1@2", O: "b1@3 f#2@3 f#1@2", P: "b1@3 f#2@3 b2@2", Q: "d2@3 b2@3 b1@2",
  R: "e2@3 b2@3 e2@2", S: "b1@3 ~ b1 ~ b1@2 c#2 ~ c#2@2 d#2@2 ~@2", T: "e2@5 ~ e2@2 b1@4 c#2@4",
  U: "b1@5 ~ b1@2 c#2@4 d#2@4", V: "b1@5 ~ b1 ~ f#1@3 ~ b1@3 ~", W: "c2@3 ~ c2 ~ c2@2 d2 ~ d2@2 e2 ~ e2 ~",
  X: "f2@5 ~ f2@2 c2@3 ~ d2@4", Y: "f2@5 ~ f2@2 c2@4 d2@4", Z: "c2@5 ~ c2@2 g1@4 a1@4", AA: "c2@5 ~ c2@2 g1@4 c2@3 ~",
  AB: "g2@5 ~ g2@2 d2@4 e2@4", AC: "g2@5 ~ g2@2 d2@4 g2@3 ~", AD: "c2@5 ~ c2@2 d2@4 e2@4",
  AE: "f2@4 ~@2 f2@2 c2@3 ~ d2@4", AF: "f2@5 ~ f2@2 c2@4 f2@4", AG: "c2@6 c2 ~ g1@4 a1@4",
  AH: "[c2@6 c2@2 ~ g1@4 a1@5 c2@40 ~@6]/4",
})).s("gm_electric_bass_finger").gain(0.45)

// chords · synth strings 1 · "Syn.Strin"
const synth_strings_1 = note(`<
  ~ A@2 B@2 C@2 D@2 E F E G H I G E@2 F E J K L M L N A@2 B@2 C@2 L O A@2 B@2 C@2 D@2 E F E G H I G E@2 F E J K L M L N
  A@2 B@2 C@2 L O A@2 B@2 C@2 P Q R@2 S@2 T@2 U V R@2 S@2 T@2 W@4 ~@2
>`.pickRestart({
  A: "[b3,e4,g#4]/2", B: "[b3,d#4,f#4]/2", C: "[a#3,c#4,f#4]/2", D: "[b4 f#3, [b3,d#4,f#4]]/2", E: "[f#3,b3,d#4]",
  F: "[g#3,b3,e4]@3 [f#3,b3,d#4]@5", G: "[f#3,a#3,c#4]", H: "[g#3,c#4,e4]", I: "[g#3,c4,d#4]@3 [g#3,c#4,e4]@5",
  J: "[g#3,b3,e4]", K: "[b3,e4,g#4]", L: "[b3,d#4,f#4]", M: "[a#3,c#4,f#4]",
  N: "~@2 b4 ~ b4 ~ b4@2 c#5 ~ c#5@2 d#5@3 ~", O: "[d#4,f#4,b4]", P: "[b3,d#4,f#4,b4]",
  Q: "[e4,g4,c5]@2 [e4,c5] ~ [d#4,c5] ~ [d#4,c5]@2 [f4,d5] ~ [f4,d5]@2 [g4,e5]@2 ~@2", R: "[c4,f4,a4]/2",
  S: "[c4,e4,g4]/2", T: "[b3,d4,g4]/2", U: "[c4,e4,g4]", V: "[e4,g4,c5]", W: "[[c4,e4,g4,c5]@25 ~@7]/4",
})).s("gm_synth_strings_1").gain(0.25)

// chords · electric guitar muted · "#Funk Gtr"
const electric_guitar_muted = note(`<
  ~@2 A ~ B ~ C D@2 E ~@3 F G H I J K J L@2 J M J N ~ A ~ B ~ C O ~@2 A ~ B ~ C D@2 E ~@3 F G H I J K J L@2 J M J N ~ A
  ~ B ~ C O ~@2 A ~ B ~ C D@2 ~ P ~ Q ~ R S ~@2 P ~ Q ~ R ~ T ~@4
>`.pickRestart({
  A: "[e4,g#4,b4]!2 ~@14", B: "[d#4,f#4,b4]!2 ~@14", C: "[c#4,f#4,a#4]!2 ~@14", D: "~@10 d#4 ~ b3 ~@3",
  E: "~@2 d#4 ~ b3 ~ f#3 ~@9", F: "~@2 c#4 ~ e4 ~ g#4 ~@9", G: "~@2 c4 ~ d#4 ~ g#4 ~@9",
  H: "~@2 a#3 ~ [c#4,f#4] ~ a#3 ~@9", I: "~@2 b3 ~ [d#4,f#4] ~ b3 ~@9",
  J: "~@2 b3 ~ [b3,d#4,f#4] ~@5 b3 ~ [b3,d#4,f#4] ~ [b3,d#4,f#4] ~", // B
  K: "~@2 b3 ~ [b3,e4,g#4] ~@5 b3 ~ [b3,d#4,f#4] ~ [b3,d#4,f#4] ~", // E B
  L: "~@2 b3 ~ [b3,e4,g#4] ~@5 b3 ~ [b3,e4,g#4] ~ [b3,e4,g#4] ~", // E
  M: "~@2 a#3 ~ [a#3,c#4,f#4] ~@5 a#3 ~ [a#3,c#4,f#4] ~ [a#3,c#4,f#4] ~", N: "[b3,d#4,f#4] ~@15",
  O: "b4 ~ a#4 ~ b4 ~@11", P: "[f4,a4,c5]!2 ~@14", Q: "[e4,g4,c5]!2 ~@14", R: "[d4,g4,b4]!2 ~@14",
  S: "c5 ~ b4 ~ c5 ~@11", T: "~@10 e4 ~ c4 ~@3",
})).s("gm_electric_guitar_muted").gain(0.47).pan(0.3)

// other · electric guitar clean · "#Clean Gt"
const electric_guitar_clean = note(`<
  ~ A B C@2 D@2 E@2 F G F H I J H F@2 G F K@2 L H M N A B C@2 D@2 C O A B C@2 D@2 E@2 F G F H I J H F@2 G F K@2 L H M N
  A B C@2 D@2 C O A B C@2 D@2 P Q R S T@2 U@2 T Q R S T@2 U@2 V W X@4
>`.pickRestart({
  A: "e3@5 ~ e3@2 b2@2 c#3@2 e3@2 f#3@2", B: "e3@2 ~ e3 b2 c#3 e3 f#3", C: "b2@5 ~ b2@2 f#2@2 g#2@2 b2@2 c#3@2",
  D: "f#3@5 ~ f#3@2 c#3@2 d#3@2 f#3@2 g#3@2", E: "c#4@2 d#4@3 ~ c#4@2 d#4@6 ~@2, b3@5 ~ b3@8 ~@2",
  F: "~@4 [f#3,b3,d#4] ~@5 [f#3,b3,d#4] ~@5", G: "~@4 [g#3,b3,e4] ~@5 [f#3,b3,d#4] ~@5",
  H: "~@4 [a#3,c#4,f#4] ~@5 [a#3,c#4,f#4] ~@5", I: "~@4 [c#4,e4,g#4] ~@5 [c#4,e4,g#4] ~@5",
  J: "~@4 [c4,d#4,f#4] ~@5 [g#3,c#4,e4] ~@5", K: "~@4 [b3,e4,g#4] ~@5 [b3,e4,g#4] ~@5",
  L: "~@4 [b3,d#4,f#4] ~@5 [b3,d#4,f#4] ~@5", M: "~@4 [b3,d#4,f#4] ~@3 f#2@2 [g#2,b3,d#4,f#4] ~ b2@2 c#3 ~",
  N: "[b2,b3,d#4,f#4] ~@15", O: "b2@3 ~ b2@4 c#3@4 d#3@3 ~", P: "~@8 f#2@2 g#2 ~ b2@2 ~@2",
  Q: "c3@3 ~ c3@4 d3@4 e3@3 ~", R: "f3@5 ~ f3@2 c3@2 d3@2 f3@2 g3@2", S: "f3@2 ~ f3 c3 d3 f3 g3",
  T: "c3@5 ~ c3@2 g2@2 a2@2 c3@2 d3@2", U: "g3@5 ~ g3@2 d3@2 e3@2 g3@2 a3@2", V: "c3@4 g2 a2 c3 d3",
  W: "c3@7 ~ g2@2 a2@2 c3@2 d3@2", X: "[c3@9 g2@2 a2@2 c3@2 d3@2 ~ c3@39 ~@7]/4",
})).s("gm_electric_guitar_clean").gain(0.48)

// chords · electric guitar jazz · "#Mllw.Gtr"
const electric_guitar_jazz = note("<~@9 A ~@7 B C B D@2 B E B F ~@16 A ~@7 B C B D@2 B E B F ~@36>".pickRestart({
  A: "~@2 d#4 ~ b3 ~ f#3 ~@9", B: "~@6 [b3,d#4,f#4] ~@6 [b3,d#4,f#4] ~@2",
  C: "~@4 [b3,e4,g#4] ~ [b3,d#4,f#4] ~@6 [b3,d#4,f#4] ~@2", D: "~@6 [b3,e4,g#4] ~@6 [b3,e4,g#4] ~@2",
  E: "~@6 [a#3,c#4,f#4] ~@6 [a#3,c#4,f#4] ~@2", F: "[b3,d#4,f#4] ~@15",
})).s("gm_electric_guitar_jazz").gain(0.24).pan(0.7)

// other · pan flute · "#Pan Flut"
const pan_flute = note("<~@14 A B C ~ D E F ~ G H I ~@22 A B C ~ D E F ~ G H I ~@37>".pickRestart({
  A: "~@5 f#5 a#5 b5", B: "c#6 ~ c#6 ~ c#6 ~ c#6@4 a#5@4 g#5@2", C: "f#5", D: "~@5 f#5 b5 c#6",
  E: "d#6 ~ d#6 ~ d#6 ~ d#6@4 c#6@4 b5@2", F: "g#5@7 ~", G: "~@7 f#5", H: "c#6 ~ c#6@2 d#6@2 e6@4 d#6 ~ c#6@4",
  I: "b5@13 ~@3",
})).s("gm_pan_flute").gain(0.25)

// drums · kick
const kick = s("bd").struct("<~ A@24 B A@32 B A@15 C A@16 D E ~@2>".pickRestart({
  A: "x ~@2 x!2 ~@3", B: "x", C: "x!2", D: "x ~@5 x ~@2 x ~@6", E: "~ x ~@6",
})).gain(0.59)

// drums · snare
const snare = s("sd").struct("<A B@6 ~@19 B@14 ~@19 B@15 ~ B@16 C ~@3>".pickRestart({
  A: "~@3 x", B: "~ x ~ x", C: "~ x ~@2",
})).gain(0.46)

// drums · clap
const clap = s("cp").struct(`<
  A@9 ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A@7 ~ A@8 ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A@7 ~ A@15 ~ A@8 ~@4
>`.pickRestart({
  A: "~@3 x",
})).gain(0.59)

// drums · low tom
const low_tom = s("lt").struct(`<
  A@9 ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A B A@7 C A@8 ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~ A B A@7 C A@7 D A@7 C A@8 E ~@3
>`.pickRestart({
  A: "~@3 x", B: "~@10 x ~ x ~ x!2", C: "~@6 x ~ x ~@5 x!2", D: "~@10 x ~ x ~@2 x", E: "~@15 x",
})).gain(0.66)

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

// drums · hihat · soft notes
const hihat_soft = s("hh").struct(`<
  ~ A B A B A B ~@10 A B A B A B A B ~ A B A B@4 ~ A B A B A B ~@10 A B A B A B A B ~ A B A B@4 ~ A B A B A B@2 ~ A B A
  B@4 ~ A B A B A B A B C ~@3
>`.pickRestart({
  A: "~ x ~@3 x ~ x", B: "~ x ~@3 x ~@2", C: "~ x ~@6",
})).gain(0.26)

// drums · mid tom
const mid_tom = s("mt").struct("<~@25 A ~@7 B ~@24 A ~@7 B ~@7 C ~@7 B ~@8 D ~@3>".pickRestart({
  A: "~@3 x!2 ~@3", B: "~ x ~ x", C: "~@4 x ~@2 x", D: "~@13 x ~@2",
})).gain(0.59)

// drums · open hat
const open_hat = s("oh").struct(`<
  ~@2 A ~ A ~ A ~@3 A ~ A ~ A ~ A ~ A ~ A ~ A ~@4 A ~ A@4 ~@2 A ~ A ~ A ~@3 A ~ A ~ A ~ A ~ A ~ A ~ A ~@4 A ~ A@4 ~@2 A
  ~ A ~ A ~@3 A ~ A@4 ~@2 A ~ A ~ A ~ A ~@4
>`.pickRestart({
  A: "~@7 x",
})).gain(0.33)

// drums · high tom
const high_tom = s("ht").struct("<~@25 A ~@7 B ~@24 A ~@7 B ~@7 C ~@7 B ~@8 D ~@3>".pickRestart({
  A: "~ x!2 ~@5", B: "~ x ~@3 x ~@2", C: "~@2 x!2 ~@2 x ~", D: "~@9 x ~ x ~@4",
})).gain(0.59)

// drums · ride
const ride = s("rd").struct("<~@7 A B ~@31 A B ~@47 A B ~@4>".pickRestart({
  A: "~@3 x", B: "~ x ~ x",
})).gain(0.39)

// drums · tambourine
const tambourine = s("tb").struct("<~@26 A@7 ~ A@6 ~@19 A@7 ~ A@7 ~ A@7 ~ A@8 B ~@3>".pickRestart({
  A: "~ x ~ x", B: "~ x ~@2",
})).gain(0.39)

// drums · crash
const crash = s("cr").struct(`<
  ~ A ~@5 A ~@17 A@2 ~@7 A ~@5 A ~@17 A@2 ~@7 A ~@6 A@2 ~@7 A ~@5 A ~@2 B ~@2
>`.pickRestart({
  A: "x", B: "~ x ~@6",
})).gain(0.59)

// drums · shaker
const shaker = s("sh").struct("<~ A@6 B ~ C@16 ~ A@7 ~ A@6 B ~ C@16 ~ A@7 ~ A@7 ~ A@7 ~ A@8 D ~@3>".pickRestart({
  A: "~@2 x!2 ~@2 x ~@3 x!2 ~@2 x ~", B: "~ x ~@2", C: "~ x ~@3 x ~@2", D: "~@2 x!2 ~@2 x ~@4 x!2 ~@2 x",
})).gain(0.39)

// drums · guiro
const guiro = s("guiro:0").struct("<~@9 [~ x ~@6] ~@32 [~ x ~@6] ~@52>").gain(6.93)

// drums · guiro
const guiro_2 = s("guiro:4").struct("<~@9 x ~@32 x ~@52>").gain(6.93)

// drums · claves
const claves = s("clave:2").struct(`<
  ~@9 A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~@18 A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~@38
>`.pickRestart({
  A: "~@7 x",
})).gain(1.93)

// drums · rim
const rim = s("rim").struct("<~@9 A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~@18 A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~@38>".pickRestart({
  A: "~@3 x",
})).gain(0.59)

stack(
  acoustic_guitar_steel, bass, synth_strings_1, electric_guitar_muted, electric_guitar_clean, electric_guitar_jazz,
  pan_flute, kick, snare, clap, low_tom, hihat, hihat_soft, mid_tom, open_hat, high_tom, ride, tambourine, crash,
// … 2 more lines