Strudelify

Love and Life

Adamski

KeyG minorTempo124 bpm
0:00/0:00
// Love and Life — Adamski
// 124 bpm, 4/4, key G minor. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: Full arrangement: all 80 bars on a 16-step grid, each part at one level. Source detail keeps the original performance.
setcpm(124/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 · "A.PIANO 3"
const piano = note(`<
  A B C B C B C B A B C B C B C B A B C B C B C B A B C B C B C B A B C B C B C B A B C B C B C B A B C B C B C B A B C
  B C B C B A B C B C B C B ~@8
>`.pickRestart({
  A: "[g3,bb3,d4] ~ [g3,bb3,d4] ~ [g3,bb3,d4] f3 [g3,bb3,d4] f3 [a3,c4,e4] ~ f3 [a3,c4,e4] ~ f3 [bb3,d4,f4]@2", // Gm Am Bb
  B: "~@2 [g3,bb3,d4] ~ [g3,bb3,d4] f3 [g3,bb3,d4] f3 [a3,c4,e4] ~ f3 [a3,c4,e4] ~@2 [f3,a3,c4]@2", // Gm Am F
  C: "~@2 [g3,bb3,d4] ~ [g3,bb3,d4] f3 [g3,bb3,d4] f3 [a3,c4,e4] ~ f3 [a3,c4,e4] ~ f3 [bb3,d4,f4]@2", // Gm Am Bb
})).s("gm_piano").gain(0.24)

// bass · acoustic bass · "ACOU BASS"
const bass = note(`<
  A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A
  B A B A B A B A B A B A B ~@8
>`.pickRestart({
  A: "g1 ~ g1 ~@2 a1 ~@2 bb1 ~@2 c2 ~@2 d2 f1", B: "g1 ~ g1 ~@2 a1 ~@2 bb1 ~@2 a1 ~ d1 f1 d1",
})).s("gm_acoustic_bass").gain(0.25)

// chords · pad sweep · "SWEEP PAD"
const pad_sweep = note("<~@24 A@7 B A@7 B ~@8 A@7 B A@7 B A@7 B ~@8>".pickRestart({
  A: "[~@14 f4@2 d4@4 g3@7 ~, g3@29 ~@3 g3@44 ~@36, ~@3 d4@3 ~@2 g4@6]/7", B: "[g3,g5]",
})).s("gm_pad_sweep").gain(0.25)

// bass · fretless bass · "FRETLESS"
const bass_2 = note(`<
  A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A B A
  B A B A B A B A B A B A B ~@8
>`.pickRestart({
  A: "g1 ~@14 f1", B: "g1 ~@12 d1 f1 d1",
})).s("gm_fretless_bass").gain(0.4)

// drums · kick
const kick = s("bd").struct("<~@16 [x!4]!56 ~@8>").gain(0.35)

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

// drums · clap
const clap = s("cp").struct("<~@16 [~ x ~ x]!56 ~@8>").gain(0.28)

// drums · low tom
const low_tom = s("lt").struct("<~@16 [x ~ x!3 ~ x!2]!56 ~@8>").gain(0.31)

// drums · pedal hat
const pedal_hat = s("hh").struct("<~@21 x [~@3 x ~@4] ~@49 x ~@7>").gain(0.03)

// drums · mid tom
const mid_tom = s("mt").struct("<~@16 [~@3 x ~@7 x ~@4]!56 ~@8>").gain(0.28)

// drums · open hat
const open_hat = s("oh").struct("<~@19 [~@14 x!2] [x!16] [~@14 x!2] [x!6 ~@10] ~ [x!16]!48 ~@8>").gain(0.24)

// drums · tambourine
const tambourine = s("tb").struct("<~@19 [~@14 x!2] [x!16] [~@14 x!2] [x!6 ~@10] ~ [x!16]!48 ~@8>").gain(0.21)

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

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

// drums · congas
const congas = s("conga:13").struct(`<
  A B C D E F G F A B C D E F G F A B C D E F G F A B C D E F G F A B C D E F G F A B C D E F G F A B C D E F G F A B C
  D E F G F A B C D E F G F ~@8
>`.pickRestart({
  A: "~@3 x ~@3 x ~@3 x!2 ~@2 x", B: "~@3 x!5 ~ x ~ x ~ x ~ x", C: "~@3 x ~@12", D: "~ x ~ x ~ x ~ x ~ x ~ x ~ x ~ x",
  E: "~@3 x ~ x ~@3 x ~ x ~ x ~ x", F: "~ x ~ x ~@5 x ~ x ~ x ~ x", G: "~@9 x ~ x ~ x ~ x",
})).gain(0.77)

// drums · rim
const rim = s("rim").struct("<~@16 [x!8]!24 ~@40>").gain(0.28)

stack(
  piano, bass, pad_sweep, bass_2, kick, snare, clap, low_tom, pedal_hat, mid_tom, open_hat, tambourine, bongos,
  bongos_2, congas, rim
)