Strudelify

Sky High

Jigsaw

KeyB minorTempo136 bpm
0:00/0:00
// Sky High — Jigsaw
// 136 bpm, 4/4, key B minor. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: pitch bends are ignored
// note: Full arrangement: all 106 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(136/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 · piano
const piano = note(`<
  ~@11 A B C D A B C D E@2 C F E B C F G H I J G K L M N O P H I J G Q R S N T U ~@3 A B C D A B C D E@2 C F E B C F G H
  I J G K L M N T P H I J G V L W N X P H I J G V L W N X U ~@7 Y
>`.pickRestart({
  A: "[b4,d5,f#5] ~@3 [b4,d5,f#5] ~@3 [b4,d5,f#5] ~@3 [b4,d5,f#5] ~@3", // Bm
  B: "[a4,c#5,f#5] ~@3 [a4,c#5,f#5] ~@3 [a4,c#5,f#5] ~@3 [a4,c#5,f#5] ~@3", // F#m
  C: "[g4,b4,d5,f#5] ~@3 [g4,b4,d5,f#5] ~@3 [g4,b4,d5,f#5] ~@3 [g4,b4,d5,f#5] ~@3", // Gmaj7
  D: "[g4,b4,d5] ~ [g4,b4,d5]@2 ~@2 [g4,b4,d5]@2 ~@2 [g4,b4,d5] ~ [a4,c#5,e5]@3 ~", // G A
  E: "[a4,d5,f#5] ~@3 [a4,d5,f#5] ~@3 [a4,d5,f#5] ~@3 [a4,d5,f#5] ~@3", // D
  F: "[f#4,a4,c#5,e5] ~@3 [f#4,a4,c#5,e5] ~@3 [f#4,a4,c#5,e5] ~@3 [f#4,a4,c#5,e5] ~@3", // F#m7
  G: "[f#4,b4,d#5]@5 ~ [f#4,b4,d#5]@8 ~@2", H: "[f#4,a#4,d#5]@5 ~ [f#4,a#4,d#5]@8 ~@2",
  I: "[g#4,b4,e5]@5 ~ [g#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(0.7)

// bass · electric bass pick
const bass = note(`<
  ~@3 A B C D E B C D F G H D F G I D J K L M N K L O P Q R S P Q R T U@2 P Q R T P Q R T U@2 E B C D F G H V F G I D J
  K L M W K L O P Q R S P Q R T U@2 P Q R T P Q R T U@2 P Q R T P Q R T U@2 E B C D E B C D X
>`.pickRestart({
  A: "b1", B: "a1@15 ~", C: "g1@15 ~", D: "g1 ~ g1@2 ~@2 g1@2 ~@2 g1 ~ a1@3 ~", E: "b1@15 ~", F: "b1@11 ~ d2@4",
  G: "a1@11 ~ c2@4", H: "g1@13 ~@3", I: "g1@3 ~", J: "d2@4 ~@2 d2 ~ d2@4 c2@2 c#2@2",
  K: "d2@4 ~@2 d2 ~ d2@4 e2@2 f#2 ~", L: "g2@4 ~@2 g2 ~ g2@6 ~@2", M: "f#2@4 ~@2 f#2 ~ f#2@4 c2@2 c#2 ~",
  N: "d2@4 ~@2 d2 ~ d2@4 c2@2 c#2 ~", O: "f#2@4 ~@2 f#2 ~ f#2@3 ~ a1@4", P: "b1 ~ b1 ~ b1 ~ b1 ~",
  Q: "d#2 ~ d#2 ~ d#2 ~ d#2 ~", R: "e2 ~ e2 ~ e2 ~ e2 ~", S: "e2 ~ e2 ~ e2 ~ e2@2",
  T: "e2@2 ~@2 e2@2 ~@2 e2@2 ~@2 e2@3 ~", U: "g1 ~ g1 ~ g1 ~ g1 ~ g1 ~ g1 ~ g1 ~ g1 ~",
  V: "g1 ~ g1@2 ~@2 g1@2 ~@2 g1 ~ a1@2 ~@2", W: "d2@4 ~@2 d2 ~ d2@4 c2 ~ c#2 ~", X: "b1@2 b1 ~@5",
})).s("gm_electric_bass_pick").gain(0.78)

// chords · electric guitar muted
const electric_guitar_muted = note(`<
  ~ A@2 B C D E B F D E B C D G B C D H I J K L M N O P Q R S T U V W X Y Z Q R S T U V W X Y Z B F D E B C D G B C D H
  I J K L M N O P Q R S T U V W X Y Z Q R S T U V W X Y Z Q R S T U V W X Y Z B F D E B F D E ~
>`.pickRestart({
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2 ~ d#4 [b3,d#4] ~ [b3,d#4]!2 ~ d#4", // B
  R: "[a#3,d#4] ~ [a#3,d#4] ~ [a#3,d#4] ~ [a#3,d#4]!2 ~ [a#3,d#4]!2 ~@2 [a#3,d#4] ~@2", // D#5
  S: "[a#3,d#4] [b3,e4] ~@2 [b3,e4] ~ [b3,e4]!2 ~ [b3,e4]!2 ~ e4 [b3,e4] ~ e4", // D#5 E5
  T: "[b3,e4] ~ [b3,e4] ~ [b3,e4]!2 ~ [b3,e4]!2 ~ [b3,e4] ~ [b3,e4]!2 ~ [b3,e4]", // E5
  U: "[b3,d#4] ~ [b3,d#4]!3 ~@2 [b3,d#4] ~ [b3,d#4]!2 ~@2 [b3,d#4] ~ [b3,d#4]", // B
  V: "[a#3,d#4] ~ [a#3,d#4] ~ [a#3,d#4] ~ [a#3,d#4]!2 ~ d#4 [a#3,d#4] ~ d#4 [a#3,d#4] ~ d#4", // D#5
  W: "[a#3,d#4] [b3,e4]@2 ~ [b3,e4] ~ [b3,e4]!2 ~ [b3,e4]!2 ~ [b3,e4]!2 ~@2", // D#5 E5
  X: "[b3,e4] ~@2 [b3,e4] ~ [b3,e4]!2 ~ [b3,e4] ~ [b3,e4] ~ [b3,e4]!2 ~ [b3,e4]", // E5
  Y: "[b3,d4] ~ [b3,d4] ~ [b3,d4] ~ [b3,d4] ~ [b3,d4]!2 ~ [b3,d4] ~ [b3,d4]!2 ~", // Bm
  Z: "[b3,d4] ~ [b3,d4] ~ [b3,d4] ~ [b3,d4] ~ [b3,d4]!2 ~ [b3,d4] ~ b3 [b3,d4] ~", // Bm
})).s("gm_electric_guitar_muted").gain(0.34).pan(0.3)

// chords · trumpet
const trumpet = note(`<
  ~@3 A B C D E F G H ~@36 E F G H ~@26 I@2 J K I@2 L M N@2 I@2 O K I@2 L M N@2 A B C D E F G H P
>`.pickRestart({
  A: "b3@15 ~", B: "[a3,c#4]!5 ~@11", C: "[b3,d4]@15 ~", D: "[g3,b3] ~ [g3,b3] ~@3 [g3,b3] ~@3 [g3,b3] ~ [a3,c#4] ~@3",
  E: "[b3,b4]@15 ~", F: "[c#4,e4,a4]!5 ~@11", G: "[b3,d4,g4,d5,b5]@7 ~",
  H: "[g3,b3,g4] ~ [g3,b3,g4] ~@3 [g3,b3,g4] ~@3 [g3,b3,g4] ~ [a3,c#4,a4] ~@3", // G A
  I: "[~@4 [d#5,f#5]@5 ~ [b4,d#5] ~ [c#5,e5] ~ [d#5,f#5]@5 ~ [d#5,f#5]@8 ~@4]/2", // D#m B C#m D#m
  J: "[d#5,f#5]@4 ~ f#5 d#5 ~ [d#5,f#5]@5 ~ [d#5,f#5] ~", K: "[e5,g5]@5 ~ [d#5,f#5]@4 g5 f#5 [c#5,e5]@4",
  L: "[d#5,f#5]@4 ~ [d#5,f#5] ~@2 [d#5,f#5]@4 ~@2 [d#5,f#5] ~", M: "[e5,g5]@5 ~ [d#5,f#5]@5 ~ [c#5,e5]@3 ~",
  N: "[[g5,b5]@15 ~]/2", O: "[d#5,f#5]@4 ~ [d#5,f#5] ~@2 [d#5,f#5]@5 ~ [d#5,f#5] ~",
  P: "[b3,d4,b4]!2 ~ [b3,d4,b4] ~ a4 ~@10, ~@2 [b3,d4,b4] ~@5", // Bm
})).s("gm_trumpet").gain(0.5).pan(0.6)

// chords · trumpet · soft notes · Bm F Dm Bdim
const trumpet_soft = note(`<
  ~@105
  [~@2 [b3,d4,b4] ~@3 [g3,a3,b3,c4,f4,g4] [d3,e3,f3,g3,a3,d4,e4] [b2,c3,d3,e3,f3,b3,c4] ~@7]
>`).s("gm_trumpet").gain(0.25).pan(0.6)

// chords · brass section
const brass_section = note(`<
  ~@3 A B C D E F G H ~@36 E F G H ~@26 I J K L M J N O P@2 I J K L M J N O P@2 A B C D E F G H Q
>`.pickRestart({
  A: "b3@15 ~", B: "c#4!5 ~@11", C: "[g3,d4]@15 ~", D: "[g3,b3] ~ [g3,b3] ~@3 [g3,b3] ~@3 [g3,b3] ~ [a3,c#4] ~@3",
  E: "[b3,d4,f#5]@15 ~", F: "[a3,c#4,a5]!5 ~@11", G: "[g3,d4,b4,b5]@15 ~",
  H: "[g3,b3,b4] ~ [g3,b3,b4] ~@3 [g3,b3,b4] ~@3 [g3,b3,b4] ~ [a3,c#4,c#5] ~@3", // G A
  I: "~@4 [d#5,f#5]@5 ~ [b4,d#5] ~ [c#5,e5] ~ [d#5,f#5]@2, [b2,b3]", J: "~ [d#5,f#5]@2 ~, [d#2,d#3]@15 ~",
  K: "[d#5,f#5]@4 ~@2 [d#5,f#5] ~ [d#5,f#5]@5 ~ [f#2,f#3,d#5,f#5] ~, [e2,e3]@7 ~", // D#m E
  L: "[g2,g3,e5,g5]@5 ~ [f#2,f#3,d#5,f#5]@5 ~ [e2,e3,c#5,e5]@4", // C D#m C#m
  M: "~@4 [d#5,f#5]@4 ~@2 [b4,d#5] ~ [c#5,e5] ~ [d#5,f#5]@2, [b2,b3]@15 ~", // D#m B C#m D#m B
  N: "[d#5,f#5]@5 ~ [d#5,f#5] ~ [d#5,f#5]@4 ~@2 [f#2,f#3,d#5,f#5] ~, [e2,e3]@13 ~@3", // D#m E
  O: "[g2,g3,e5,g5]@6 [f#2,f#3,d#5,f#5]@5 ~ [e2,e3,c#5,e5]@3 ~", P: "[[g3,b4,d5]@31 ~, g2@29 ~@3]/2",
  Q: "[b4,b5]!4 b5 [a4,a5] [e4,f4,g4,e5,f5,g5] [c4,d4,c5,d5] b3 ~@7, ~@2 b4 ~@5", // B A Em Csus2
})).s("gm_brass_section").gain(0.5).pan(0.4)

// chords · marimba
const marimba = note("<~@6 A ~@3 A ~@39 A ~@7 A ~@41 A ~@3 A ~>".pickRestart({
  A: "[g4,b4,d5,g5] ~ [g4,b4,d5,g5] ~@3 [g4,b4,d5,g5] ~@3 [g4,b4,d5,g5] ~ [a4,c#5,e5,a5] ~@3", // G A
})).s("gm_marimba").gain(0.5).pan(0.6)

// other · timpani
const timpani = note(`<
  ~@3 A ~@2 B A ~@2 B ~@16 C ~@7 D E F ~@7 D G A ~@2 B ~@16 C ~@7 D E F ~@7 D G F ~@7 D G A ~@2 B A ~@2 B H
>`.pickRestart({
  A: "b2 ~@15", B: "g2 ~ g2 ~@3 g2 ~@3 g2 ~ a2 ~@3", C: "b2@5 ~@3", D: "g2 ~ g2 ~ g2 ~ g2 ~ g2 ~ g2 ~ g2 ~ g2 ~",
  E: "g2 ~ g2 ~ g2 ~ g2 ~ g2 ~ g2 ~ g2 ~@3", F: "b2 ~", G: "g2 ~ g2 ~ g2 ~ g2 ~ g2 ~ g2 ~ g2@2 ~@2", H: "b2!5 ~@11",
})).s("gm_timpani").gain(0.6)

// other · vibraphone
const vibraphone = note(`<
  ~@27 A B C D A E F G H@2 A B C D A E F G H@2 ~@20 A B C D A E F G H@2 A B C D A E F G H@2 A B C D A E F G H@2 ~@9
>`.pickRestart({
  A: "[b3,b4]@15 ~", B: "[a#3,a#4]@15 ~", C: "[g#3,g#4]@7 ~", D: "[g3,g4]@15 ~", E: "a#4@15 ~, a#3@13 ~@3",
  F: "g#4@15 ~, g#3@13 ~@3", G: "g4@6 f#4@6 e4 ~@3, g3@5 ~@3", H: "[[d4,g4,d5]@15 ~]/2",
})).s("gm_vibraphone").gain(0.55)

// other · french horn · Fmaj7 Cmaj7 Em Am Dm Cmaj7 Dm7 Cmaj7 …
const french_horn = note(`<
  ~@85
  [~@2 [e4,f4] [g4,a4,b4,c5] d5@4 ~ d4 [e4,f4,g4] [a4,b4,c5] d5@3 ~]
  [~ c4 [d4,e4,f4] [g4,a4,b4,c5] d5@3 ~@3 [c4,d4,e4,f4] [g4,a4,b4,c5] d5@4]
  ~@8
  [~@2 [e4,f4,g4] [a4,b4,c5] d5@4 ~ d4 [e4,f4,g4] [a4,b4,c5] d5@3 ~]
  [~ c4 [d4,e4,f4] [g4,a4,b4,c5] d5@3 ~@3 [c4,d4,e4,f4] [g4,a4,b4,c5] d5@4]
  ~@9
>`).s("gm_french_horn").gain(0.8)

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

// drums · snare · soft notes
const snare_soft = s("sd").struct("<~@26 A ~@8 B ~@9 B ~@20 A ~@39>".pickRestart({
  A: "~@6 x!2 ~@2 x!2 ~@4", B: "~@3 x!3 ~@2",
})).gain(0.47)

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

// drums · low tom
const low_tom = s("lt").struct("<~@26 A ~@9 A ~@29 A ~@9 A ~@9 A ~@9 A ~@9>".pickRestart({
  A: "~@7 x",
})).gain(0.78)

// drums · mid tom
const mid_tom = s("mt").struct("<~@26 A ~@9 A ~@29 A ~@9 A ~@9 A ~@9 A ~@9>".pickRestart({
  A: "~@13 x ~@2",
})).gain(0.78)

// drums · open hat
const open_hat = s("oh").struct(`<
  ~@18 A ~@7 B ~@7 C ~@2 D E@6 F ~@13 A ~@7 B D E@6 F D F D E@6 F D F D E@6 F D F ~@7 G ~
>`.pickRestart({
  A: "~@3 x", B: "~@3 x ~@12", C: "~@4 x!2 ~@2", D: "~@3 x ~ x ~ x", E: "~ x ~ x ~ x ~ x", F: "~ x ~ x ~ x ~@2",
  G: "~@7 x",
})).gain(0.54)

// drums · open hat · soft notes
const open_hat_soft = s("oh").struct("<~@37 A B@6 C ~@22 A B@6 D A D A B@6 D A D A B@6 D A D ~@9>".pickRestart({
  A: "~@7 x ~@3 x ~@3 x", B: "~@3 x ~@3 x ~@3 x ~@3 x", C: "~@3 x ~@3 x ~@3 x ~@4", D: "~@3 x ~@3 x ~@8",
})).gain(0.31)

// drums · crash
const crash = s("cr").struct(`<
  ~@3 A ~@15 A ~@7 A ~@7 A ~ A ~@7 A ~ A ~@11 A ~@7 A ~@7 A ~ A ~@7 A ~ A ~@7 A ~ A ~@3 A ~@4
>`.pickRestart({
  A: "x",
})).gain(0.62)

stack(
  piano, bass, electric_guitar_muted, trumpet, trumpet_soft, brass_section, marimba, timpani, vibraphone, french_horn,
// … 2 more lines