Strudelify
Living in Danger cover art

Happy Nation

Living in Danger

Ace of Base

KeyB minorTempo98 bpm
0:00/0:00
// Living in Danger — Ace of Base
// 98 bpm, 4/4, key B minor. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: Full arrangement: all 73 bars on a 16-step grid, each part at one level; ghost notes are separate "_soft" parts. Source detail keeps the original performance.
setcpm(98/4)

// Notation: c3@3 lasts 3 steps · ~ is a rest · [c3,e3] is a chord · "a, b" plays two voices at once.
// A part's distinct bars are riffs (A, B, C...) played in order: edit a riff to change every repeat.

// bass · synth bass 2 · "SYN BASS 2"
const bass = note(`<
  ~@8 A B C D ~@4 E F G H A B C D A B I D J B K L ~@6 M H A B C D A B I D A B I D J B ~@8 A B C D A B I D A N ~
>`.pickRestart({
  A: "~@2 e1!3 ~ f#1@2 g1 ~ g1@2 e1 ~ e1 ~", B: "~@2 f#1@2 e1 ~ e1@2 d1 ~ d1@2 c#1 ~ c#1@2",
  C: "b1@3 ~ a1@2 ~ b1 e1 ~ f#1 ~@3 a1@2", D: "b1@3 ~ a1@2 ~ b1 e1 ~ e1 ~ f#1@2 ~@2",
  E: "b1@2 ~ b1 a1@2 ~ a1 b1 a1 b1 ~@5", F: "~@7 a1 b1 a1 b1 ~@3 b1@2", G: "e1@2 ~ e1 e1@2 ~@8 e1@2",
  H: "f#1 ~ f#1 ~ a1 ~ a1 ~ b1@3 ~ f#1@3 ~", I: "b1@2 ~ b1 a1@2 ~ b1 e1 ~ f#1 ~@3 a1@2",
  J: "~@2 e1@2 f#1 ~ f#1@2 g1 ~ g1@2 e1 ~ e1@2", K: "b1@2 ~ b1 a1@2 ~ a1 b1 a1 b1@2 ~@2 a1@2",
  L: "b1@2 ~ b1 a1@2 ~ a1 b1 a1 b1@2 ~@4", M: "~@15 e1", N: "~@2 f#1@2 e1 ~ e1@2 d1 ~ d1@2 a1 ~ b1@2",
})).s("gm_synth_bass_2").gain(0.59)

// chords · clavinet
const clavinet = note(`<
  A B C D A B C D E F G H I J K L H M E N E F G H E F G H E O G P Q R S T U V W X E F G H E F G H E F G H E O ~@4 A B C
  Y E F G H E F G H E Z ~
>`.pickRestart({
  A: "~@2 [f#3,b3,d4] ~@3 [f#3,b3,d4] ~@3 [f#3,b3,d4] ~@3 [f#3,b3,d4] ~", // Bm
  B: "~@2 [f#3,a3,c#4] ~@3 [f#3,a3,c#4] ~@3 [f#3,a3,c#4] ~@3 [f#3,a3,c#4] ~", // F#m
  C: "~@2 [g3,b3,e4] ~@3 [g3,b3,e4] ~@3 [g3,b3,e4] ~@3 [g3,b3,e4] ~", // Em
  D: "~@2 [f#3,a#3,c#4] ~@3 [f#3,a#3,c#4] ~@3 [f#3,a#3,c#4] ~@3 [f#3,a#3,c#4] ~", // F#
  E: "~@2 [e3,b3,e4,g4] ~@3 [e3,b3,e4,g4] ~@3 [e3,b3,e4,g4] ~@3 [e3,b3,e4,g4] ~", // Em
  F: "~@2 [f#3,c#4,f#4,a4] ~@3 [f#3,c#4,f#4,a4] ~@3 [f#3,c#4,f#4,a4] ~@3 [f#3,c#4,f#4,a4] ~", // F#m
  G: "~@2 [b3,d4,f#4] ~@3 [b3,d4,f#4] ~@3 [b3,d4,f#4] ~@3 [b3,d4,f#4] ~", // Bm
  H: "~@2 [b2,b3,d4,f#4] ~@3 [b2,b3,d4,f#4] ~@3 [b2,b3,d4,f#4] ~@3 [b2,b3,d4,f#4] ~", // Bm
  I: "~@2 [b2,d3,f#3,b3] ~@3 [b2,d3,f#3,b3] ~@3 [b2,d3,f#3,b3] ~@3 [b2,d3,f#3,b3] ~", // Bm
  J: "~@2 [c#3,f#3,a3,c#4] ~@3 [c#3,f#3,a3,c#4] ~@3 [c#3,f#3,a3,c#4] ~@3 [c#3,f#3,a3,c#4] ~", // F#m
  K: "~@2 [e3,g3,b3,e4] ~@3 [e3,g3,b3,e4] ~@3 [e3,g3,b3,e4] ~@3 [e3,g3,b3,e4] ~", // Em
  L: "~@2 [c#3,f#3,a#3,c#4] ~@3 [c#3,f#3,a#3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m
  W: "~@2 [e3,b3,e4,g4]!2 ~@2 [e3,b3,e4,g4] ~@3 [e3,b3,e4,g4] ~@3 [e3,b3,e4,g4] ~", // Em
  X: "~@2 [f#3,a#3,c#4,f#4]!2 ~@2 [f#3,a#3,c#4,f#4] ~@3 [f#3,b3,d4,f#4] ~@5", // F# Bm
  Y: "~@2 [f#3,a#3,c#4] ~@3 [f#3,a#3,c#4] ~@9", // F#
  Z: "~@2 [f#3,c#4,f#4,a4] ~@3 [f#3,c#4,f#4,a4] ~@3 [f#3,c#4,f#4,a4] ~ [f#3,c#4,f#4,a4] ~ [b2,f#3,d4,f#4,b4] ~", // F#m Bm
})).s("gm_clavinet").gain(0.26).pan(0.4)

// chords · synth strings 1 · "SYN STR 1"
const synth_strings_1 = note(`<
  A B C D A B C D ~@2 E@2 ~@2 F ~@3 F ~ F G H@2 F G H@2 I J K L M N O P Q R S T F G H@2 F G H@2 F G H@2 I J U B V W U B
  V X F G H@2 F G H@2 F Y ~
>`.pickRestart({
  A: "[f#3,b3,d4]", B: "[f#3,a3,c#4]", C: "[g3,b3,e4]", D: "[f#3,a#3,c#4]", E: "[b3,f#4]", F: "[b3,e4]", G: "[c#4,f#4]",
  H: "[b3,d4]", I: "[b3,e4,g4]", J: "[a3,c#4,f#4]", K: "[b3,f#4,d5]", L: "c#5 b4, [b3,f#4]", M: "f#4@3 g4, [b2,b3,d4]",
  N: "[f#3,a3,c#4,f#4]", O: "e4 d4, [e3,g3,b3]", P: "~ f#4, [f#3,a#3,c#4]", Q: "[b3,d4,f#4,b4,b5]",
  R: "[a3,c#4,f#4,a4,a5]", S: "[b3,e4,g4,e5,e6]", T: "[a#3,c#4] [b3,d4], [f#3,f#5,f#6]", U: "[b2,f#3,b3,d4]",
  V: "[e3,g3,b3,e4]", W: "[f#2,f#3,a#3,c#4]", X: "[f#2,f#3,a#3,c#4] ~", Y: "[c#4,f#4]@6 [a3,c#4] [b3,d4]",
})).s("gm_synth_strings_1").gain(0.08)

// chords · synth strings 1 · "SYN STR 1" · soft notes
const synth_strings_1_soft = note("<~@8 A B C@2 D E F G H I J K ~@53>".pickRestart({
  A: "[b3,e4,g4]", B: "[c#4,f#4,a4]", C: "d4", D: "[d3,f#3,b3]", E: "[f#3,a3,c#4]", F: "g3", G: "[f#3,a#3,c#4]",
  H: "[b3,d4,f#4]", I: "[a3,c#4,f#4]", J: "g4", K: "a#3 b3, [f#3,f#4]",
})).s("gm_synth_strings_1").gain(0.05)

// other · pad poly · "POLYSYNTH"
const pad_poly = note(`<
  ~@4 A@2 ~@16 B C ~@2 B C D E F G ~@10 B C ~@2 B C ~@2 B C D E A@2 ~@8 B C ~ A B C A@2 ~
>`.pickRestart({
  A: "b6!3 a6 b6 ~ a6 b6 ~@8", B: "b2 b3!2 b2 b3!2 b2 b3!2 b2 b3!2 b2 b3 b2 b3",
  C: "b3 b2 b3!2 b2 b3!2 b2 b3 b2 b3!2 b2 b3!2 e3", D: "~@2 e2@2 f#2 ~ f#2@2 g2 ~ g2@2 e2 ~ e2@2",
  E: "~@2 f#2@2 e2 ~ e2@2 d2 ~ d2@2 c#2 ~ c#2@2",
  F: "~@2 [f#5,d6] ~ [f#5,d6] ~ [f#5,d6] ~ [f#5,d6]!2 ~ [f#5,d6] ~ [f#5,d6]!2 ~", // D
  G: "~@2 [f#5,c#6] ~ [f#5,c#6] ~ [f#5,c#6] ~ [f#5,d6]!2 ~ [f#5,d6] ~ [f#5,d6]!2 ~", // F#5 D
})).s("gm_pad_poly").gain(0.25).pan(0.8)

// other · overdriven guitar · "OVERDRIVE"
const overdriven_guitar = note(`<
  ~@20 A B ~@2 A B ~@2 A B C ~@9 A B ~@2 A B ~@2 A B ~@2 A B C ~@6 D A B ~@2 A B ~@2 A E ~
>`.pickRestart({
  A: "e3 ~@3", B: "f#3 ~@3", C: "b2 ~@3", D: "~@14 e3!2", E: "f#3@2 ~@4 a2 b2",
})).s("gm_overdriven_guitar").gain(0.36).pan(0.7)

// drums · kick
const kick = s("bd").struct(`<
  ~@4 A@4 B@2 A@9 C B@2 A@2 B@2 A@2 D E B F G@4 A@3 C B@2 A@2 B@2 A@2 B@2 A@2 D E A@7 H B@2 A@2 B@2 A@2 B@2 ~
>`.pickRestart({
  A: "x ~@2 x!2 ~ x ~ x!3 ~ x ~ x ~", B: "x ~ x!3 ~ x ~ x!3 ~ x ~ x ~", C: "x ~@2 x!2 ~ x ~ x!3 ~ x ~@3", D: "x",
  E: "x ~@6 x", F: "x ~ x!3 ~ x ~ x!3 ~ x ~@3", G: "x ~@14 x", H: "x ~@2 x!2 ~ x ~ x ~@5 x!2",
})).gain(0.44)

// drums · snare
const snare = s("sd").struct(`<
  ~@4 A@4 B@4 C ~@3 B@3 D B@3 E B@3 F G H B I C ~@3 B@3 D J@3 K J@3 L J@3 M G H A@3 N A@3 O B@3 E B J@2 K J P ~
>`.pickRestart({
  A: "~ x ~ x", B: "~@4 x ~@7 x ~@2 x", C: "x", D: "~@4 x ~@7 x!4", E: "~@4 x ~@4 x ~@2 x ~ x!2",
  F: "~@4 x ~@4 x ~@2 x ~@2 x", G: "x ~@13 x!2", H: "x ~@10 x!2 ~ x ~", I: "~@4 x ~@7 x ~ x!2",
  J: "~@2 x ~ x ~@2 x ~@2 x ~ x ~@2 x", K: "~@2 x ~ x ~@2 x ~ x ~@2 x ~ x!2", L: "~@2 x ~ x ~@2 x ~ x!2 ~ x ~ x!2",
  M: "~@2 x ~ x ~@2 x ~ x ~@2 x ~@2 x", N: "~@4 x ~@4 x ~@2 x ~@3", O: "~@4 x ~@10 x", P: "~@2 x ~ x ~@2 x ~ x!4 ~ x ~",
})).gain(0.3)

// drums · snare · soft notes
const snare_soft = s("sd").struct(`<
  ~@8 A@4 ~@4 A@4 B A@2 C A@3 C ~@2 B A ~@4 A@4 D ~@21 B A@2 C A ~@3 D ~@2
>`.pickRestart({
  A: "~@2 x ~@4 x ~@2 x ~@5", B: "~@2 x!2 ~@3 x ~@2 x ~@5", C: "~@2 x ~@4 x ~@8", D: "~@3 x ~@12",
})).gain(0.22)

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

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

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

// drums · tambourine
const tambourine = s("tb").struct("<A@8 B@4 A@8 B@8 C@2 A@2 ~@4 A@4 B@12 C@2 A@8 B@9 D ~>".pickRestart({
  A: "x!5 ~@11", B: "x!16", C: "x!8", D: "x!13 ~ x ~",
})).gain(0.3)

// drums · shaker
const shaker = s("sh").struct("<A@28 ~@2 A@22 ~@2 A@7 B A@9 C ~>".pickRestart({
  A: "x!4", B: "x!3 ~", C: "x ~ x ~ x ~ x!2",
})).gain(0.44)

// drums · shaker · soft notes
const shaker_soft = s("sh").struct(`<
  [~ x ~ x ~ x ~@2]!28
  ~@2
  [~ x ~ x ~ x ~@2]!22
  ~@2
  [~ x ~ x ~ x ~@2]!7
  [~ x ~ x ~@4]
  [~ x ~ x ~ x ~@2]!10
  ~
>`).gain(0.22)

// drums · triangle
const triangle = s("triangles:30").struct("<A@8 ~@4 A@7 B ~@12 A@7 B ~@14 A@7 C ~@11>".pickRestart({
  A: "x!2 ~@2 x!2 ~@2 x!2 ~@2 x!2 ~@2", B: "x!2 ~@2 x!2 ~@2 x!2 ~@2 x ~@3", C: "x!2 ~@2 x!2 ~@2 x ~@7",
})).gain(1.93)

// drums · triangle · soft notes
const triangle_soft = s("triangles:30").struct("<A@8 ~@4 A@7 B ~@12 A@7 B ~@14 A@7 C ~@11>".pickRestart({
  A: "~@2 x!2 ~@2 x!2 ~@2 x!2 ~@2 x!2", B: "~@2 x!2 ~@2 x!2 ~@2 x!2 ~@4", C: "~@2 x!2 ~@2 x!2 ~@8",
})).gain(0.64)

stack(
  bass, clavinet, synth_strings_1, synth_strings_1_soft, pad_poly, overdriven_guitar, kick, snare, snare_soft, hihat,
  open_hat, crash, tambourine, shaker, shaker_soft, triangle, triangle_soft
)

More by Ace of Base