Strudelify

It Only Takes a Minute

Tavares

KeyB majorTempo125 bpm
0:00/0:00
// It Only Takes a Minute — Tavares
// 125 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 126 bars on a 16-step grid, each part at one level. Source detail keeps the original performance.
setcpm(125/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.

// bass · acoustic bass
const bass = note(`<
  ~@13 A B C D E F G H I J K L K L M N O P O Q K L M N O P O Q A B C D E F G H I J K L K L M N O P O Q K L M N O P O Q A
  B C D E F G H A B C D E F G H ~@4 I J K L I J K R A B C D E F G H A B C D E F G H A B C D E F G H I J K L S
>`.pickRestart({
  A: "c#2@3 ~ c#2@3 c#2 c#2@2 c#2@2 d#2@4", B: "d#2@3 ~ d#2@3 d#2 c#2@2 b1@2 d#2@4",
  C: "f#2@4 f#2@3 f#2@2 ~ f#2@2 f#2@2 e2@2", D: "f#2@4 f#2@3 f#2@2 ~ f#2@2 d#2@4",
  E: "c#2@4 c#2@3 c#2 c#2@2 b1@2 d#2@4", F: "d#2@3 ~ d#2@3 c#2 d#2@2 b1@2 d#2@2 b1@2",
  G: "f#2@4 f#2@3 f#2@2 ~ f#2 ~ f#2@2 d#2@2", H: "f#2@3 ~ f#2@3 f#2 f#2@2 f#2@2 c#2@2 d#2@2",
  I: "g#2@2 ~ g#2 g#2@2 d#2@2 g#2@2 f#2@2 d#2@2 f#2@2", J: "g#2@3 g#2@3 f#2@2 d#2@3 ~@3 e2 f#2",
  K: "g#2@3 g#2 g#2@2 d#2@2 g#2@2 f#2@2 d#2@2 f#2@2", L: "g#2@3 g#2 g#2@2 f#2@2 d#2@4 ~@2 e2 f#2",
  M: "d#2@3 c#2 a#1@2 c#2@2 d#2@2 c#2@2 a#1@2 c#2@2", N: "d#2@3 c#2 a#1@2 d#2@4 ~@2 d#2 d#2@3",
  O: "c#2@3 b1 g#1@2 b1@2 c#2@2 b1@2 g#1@2 b1@2", P: "c#2@3 b1 g#1@2 b1@3 ~@3 g#1@2 b1@2",
  Q: "d#2@2 d#2 ~ d#2@4 d#2 ~ d#2@4 g#1@2", R: "~@2 d#2 ~ d#2@4 d#2 ~ d#2@4 g#1@2", S: "g#2@3 ~@13",
})).s("gm_acoustic_bass").gain(0.35)

// chords · epiano2
const epiano2 = note(`<
  A@3 ~@23 B C@2 D E F G ~ B C@2 D E F G ~@13 B C@2 D E F G ~ B C@2 D E F G ~@27 G ~@27 H@2
>`.pickRestart({
  A: "[[g#3,b3,e4]@5 ~]/3", B: "~@10 [g#3,b3,d#4]@5 ~",
  C: "[[g3,a#3,c#4]@11 ~ [a#3,c#4,e4]@2 [a#3,c#4,d#4]@10 ~@2 [a#3,c#4,d#4]@5 ~]/2", D: "[b3,c#4,e4]",
  E: "~@10 [b3,c#4,e4]@5 ~", F: "[b3,c#4,e4]@15 ~", G: "[g3,a#3,d#4]@15 ~",
  H: "[~@8 [g#5,a#5] ~@7, ~@7 d#6 ~@8, ~@15 [b5,c#6]@2 ~@15]/2", // G#sus2 Bsus2
})).s("gm_epiano2").gain(0.35)

// other · harpsichord
const harpsichord = note(`<
  ~@5 A B C D A B C D ~@8 A B C D ~@24 A B C D ~@32 A B C D A B C D A B C ~@25 A B A B E
>`.pickRestart({
  A: "g#3 g#4 ~ g#3 g#4 ~ g#4!2 a#4 ~@2 b4 ~@2 b4 ~", B: "g#3 g#4 ~ g#3 g#4 ~ g#4!2 a#4 ~@2 b4 ~ a#4 b4 a#4",
  C: "g#3 g#4 ~ g#3 g#4 ~ g#4!2 a#4 ~@2 b4 ~ b4 ~ b4", D: "~ g#4 ~ g#3 g#4 ~ g#4!2 a#4 ~@2 b4 ~ a#4 b4 a#4",
  E: "g#4 ~@7",
})).s("gm_harpsichord").gain(0.4).pan(0.3)

// other · clavinet
const clavinet = note(`<
  ~@5 A B C D A B C D ~@8 A B C D ~@24 A B C D ~@32 A B C D A B C D A B C ~@25 A B A B E
>`.pickRestart({
  A: "g#2@2 ~ g#2 ~@2 g#2 ~@2 g#2 ~@3 g#2 ~@2", B: "g#2@2 ~ g#2 ~@2 g#2 ~@2 g#2 ~@6",
  C: "g#2@3 g#2 ~@2 g#2 ~@2 g#2 ~@6", D: "~ g#2@2 g#2@2 ~ g#2!2 ~ g#2@2 g#2 ~@4", E: "g#2 ~@7",
})).s("gm_clavinet").gain(0.35).pan(0.7)

// chords · electric guitar clean · B
const electric_guitar_clean = note(`<
  ~@90
  [~@9 [d#4,f#4,b4]!7]
  [[d#4,f#4,b4]!5 ~@11]
  ~@2
  [~@9 [d#4,f#4,b4]!7]
  [[d#4,f#4,b4]!5 ~@11]
  ~@30
>`).s("gm_electric_guitar_clean").gain(0.3)

// other · string ensemble 1
const string_ensemble_1 = note(`<
  ~@13 A@2 B@2 A@2 B@2 C@4 ~@7 D E@2 F@2 G@2 H I A@2 B@2 A@2 B@2 C@4 ~@7 D E@2 F@2 G@2 H I A@2 B@2 A@2 B@2 A@2 B@2 A@2
  B@2 ~@11 I A@2 B@2 A@2 B@2 A@2 B@2 A@2 B@2 A@2 B@2 A@2 B@2 ~@3 J K
>`.pickRestart({
  A: "[b5@8 d#6 ~ d#6 ~ c#6@18 c#6 d#6]/2", B: "f#6/2", C: "g#5/4", D: "~@2 b4 ~ b4@4 a#4 ~ a#4 ~ a#4@4",
  E: "[g#4@6 a#4 b4]/2", F: "[c#5@3 d#5@5]/2", G: "[e5@3 g#5]/2", H: "c#6",
  I: "~@2 d#6 ~ d#6@2 c#6 d#6 f#6 ~ d#6 ~ d#6@4", J: "~@2 d#6 ~ d#6@2 c#6 d#6 f#6 ~ d#6 ~ d#6@2 c#6 d#6", K: "g#6 ~@7",
})).s("gm_string_ensemble_1").gain(0.3)

// other · trumpet
const trumpet = note(`<
  ~@13 A@2 B C A@2 B C ~@11 D ~ E ~ F G@2 H I A@2 B C A@2 B C ~@11 D ~ E ~ F G@2 H I A@2 B C A@2 B C A@2 B C A@2 B C
  ~@11 I A@2 B C A@2 B C A@2 B C A@2 B C A@2 B C A@2 B C ~@3 J K
>`.pickRestart({
  A: "[b4@3 ~ b4 ~ b4 ~ d#5 ~ d#5 ~ c#5@10 ~@10]/2", B: "~@2 f#4@2 g#4 ~ b4@10", C: "~@2 f#4@2 g#4 ~ b4@8 ~@2",
  D: "~@2 [g4,b4,d#5] ~ [g4,b4,d#5]@3 ~@3 [d#4,g4,d#5] ~ [d#4,g4,d#5]@2 [d#4,g4,d#5] ~", // Gaug D#
  E: "~@6 f#4 g#4 b4 ~ c#5 ~ d#5@4", F: "~@6 c#4 d#4 f#4 ~ f#4 ~ d#4@3 ~", G: "[e4@12 g#4@13 ~ d#5 ~ c#5 b4 g#4 ~]/2",
  H: "c#5", I: "~@2 d#5 ~ d#5@2 c#5 d#5 f#5 ~ d#5 ~ d#5@3 ~", J: "~@2 d#5 ~ d#5 ~ c#5 d#5 f#5 ~ d#5 ~ d#5@2 c#5 d#5",
  K: "g#5 ~@15",
})).s("gm_trumpet").gain(0.45)

// chords · trumpet
const trumpet_2 = note(`<
  ~@14 A ~@3 A ~@15 B ~ C D@2 E F ~ A ~@3 A ~@15 B ~ C D@2 E F ~ A ~@3 A ~@3 A ~@3 A ~@13 F ~ A ~@3 A ~@3 A ~@3 A ~@3 A
  ~@3 A ~@7
>`.pickRestart({
  A: "[c#4,d#4,f#4] ~ [c#4,d#4,f#4]@3 ~ [c#4,d#4,f#4]@3 ~ [c#4,d#4,f#4]@3 ~ [c#4,d#4,f#4]@2", // D#m7
  B: "~@6 f#3 g#3 b3 ~ c#4 ~ d#4@4", C: "~@6 c#4 d#4 f#4 ~ f#4 ~ d#4@4", D: "[e4@12 e4@19 ~]/2", E: "g#4", F: "b3 a#3",
})).s("gm_trumpet").gain(0.4).pan(0.3)

// chords · alto sax
const alto_sax = note(`<
  ~@15 A@2 ~@2 A@2 ~@18 B C ~@2 A@2 ~@2 A@2 ~@18 B C ~@2 A@2 ~@2 A@2 ~@2 A@2 ~@2 A@2 ~@11 C ~@2 A@2 ~@2 A@2 ~@2 A@2 ~@2
  A@2 ~@2 A@2 ~@2 A@2 ~@3 D E
>`.pickRestart({
  A: "[f#3,g#3,b3]/2", B: "e4", C: "d#4", D: "b3 a#3, d#4", E: "[g#3,b3,d#4]@3 ~@13",
})).s("gm_alto_sax").gain(0.4).pan(0.7)

// other · pad new age
const pad_new_age = note(`<
  ~@13 A@2 B@2 A@2 B@2 ~@20 A@2 B@2 A@2 B@2 ~@20 A@2 B@2 A@2 B@2 A@2 B@2 A@2 B@2 ~@12 A@2 B@2 A@2 B@2 A@2 B@2 A@2 B@2
  A@2 B@2 A@2 B@2 ~@5
>`.pickRestart({
  A: "[b5@8 d#6 ~ d#6 ~ c#6@8 f#6@4 d#6@4 b5@4]/2", B: "[f#6@15 ~]/2",
})).s("gm_pad_new_age").gain(0.35)

// other · pad poly
const pad_poly = note("<~@21 A@2 B@2 ~@24 A@2 B@2 ~@36 A@2 B@2 A@2 B C ~@29>".pickRestart({
  A: "g#4/2", B: "g#4", C: "d#4",
})).s("gm_pad_poly").gain(0.45)

// other · lead 2 sawtooth
const lead_2_sawtooth = note("<~@8 A B ~@12 A B ~@68 A B ~@32>".pickRestart({
  A: "~@8 d#5 ~@2 d#5 ~ c#5 d#5 b4", B: "g#4 ~ d#5 b4 g#4 ~@11",
})).s("gm_lead_2_sawtooth").gain(0.35)

// drums · kick
const kick = s("bd").struct("<~@9 A@3 B A@72 B ~ B ~ A@32 B ~ B ~ B>".pickRestart({
  A: "x!4", B: "x",
})).gain(0.5)

// drums · clap
const clap = s("cp").struct(`<
  ~@13 A@8 ~@5 B ~ B ~ B ~ A ~ B ~ B ~ B ~ A@9 ~@5 B ~ B ~ B ~ A ~ B ~ B ~ B ~ A@17 ~@4 C@7 A@25 ~@5
>`.pickRestart({
  A: "~ x ~ x", B: "~@3 x", C: "~@4 x ~@2 x ~@4 x ~@3",
})).gain(0.4)

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

// drums · low tom
const low_tom = s("lt").struct("<~@85 A ~ A ~@33 A ~ A ~@2>".pickRestart({
  A: "x",
})).gain(0.45)

// drums · hihat
const hihat = s("hh").struct("<~ [x!2] [x!3 ~] ~@2 [x!2 ~@2 x!2 ~@2 x!2 ~@2 x!2 ~@2]!120 x>").gain(0.35)

// drums · mid tom
const mid_tom = s("mt").struct("<~@24 [~ x ~ x!2 ~@11] ~@27 [~ x ~ x!2 ~@11] ~@73>").gain(0.35)

// drums · open hat
const open_hat = s("oh").struct("<~@5 [~ x ~ x ~ x ~ x]!120 ~>").gain(0.35)

// drums · crash
const crash = s("cr").struct("<~@25 A ~@7 A ~@19 A ~@7 A ~@63 A>".pickRestart({
  A: "x",
})).gain(0.45)

// drums · high tom
const high_tom = s("ht").struct("<~@24 x ~@27 x ~@73>").gain(0.45)

// drums · tambourine
const tambourine = s("tb").struct(`<
  ~@9
  [x ~ x ~ x ~ x!3 ~ x ~ x ~ x!2]!3
  x
  [x ~ x ~ x ~ x!3 ~ x ~ x ~ x!2]!11
  x
  [x ~ x ~ x ~ x!3 ~ x ~ x ~ x!2]!100
  ~
>`).gain(0.25)

// drums · bongos
const bongos = s("bongo:18").struct(`<
  ~@26 A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~@13 A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~@27 A ~@29
>`.pickRestart({
  A: "x!3 ~@3 x!4 ~@6",
})).gain(0.65)

// drums · congas
const congas = s("conga:13").struct(`<
  ~@26 A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~@13 A ~ A ~ A ~ A ~ A ~ A ~ A ~ A ~@27 A ~@29
>`.pickRestart({
  A: "~@3 x ~@6 x ~@5",
})).gain(0.79)

// drums · woodblocks
const woodblocks = s("woodblock:5").struct(`<
  ~@9 A B A C ~@8 A B A C D E ~ F ~ F ~ F D E ~ F ~ F ~ F ~@8 A B A C D E ~ F ~ F ~ F D E ~ F ~ F ~ F ~@20 A B A C A B A
  F ~@29
>`.pickRestart({
  A: "x ~@2 x ~@6 x ~ x!2 ~@2", B: "x ~@2 x ~@6 x ~@5", C: "x ~@2 x ~@6 x ~@2 x ~@2", D: "x", E: "x ~ x ~@2 x ~@2",
  F: "~@3 x ~@6 x ~@5",
})).gain(0.5)

stack(
  bass, epiano2, harpsichord, clavinet, electric_guitar_clean, string_ensemble_1, trumpet, trumpet_2, alto_sax,
  pad_new_age, pad_poly, lead_2_sawtooth, kick, clap, snare, low_tom, hihat, mid_tom, open_hat, crash, high_tom,
  tambourine, bongos, congas, woodblocks
// … 1 more lines

More by Tavares