Strudelify

Green Tambourine

The Lemon Pipers

KeyG majorTempo112 bpm
0:00/0:00
// Green Tambourine — The Lemon Pipers
// 112 bpm, 4/4, key G major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: metre changes (4/4 at bar 1, 2/4 at bar 16, 4/4 at bar 17, 2/4 at bar 27, ...) are rendered on a constant 4/4 grid of one bar per cycle
// note: duplicate parts dropped: ch 8 "vocal echo" alto sax (copy of ch 3 "vocal echo" alto sax)
// note: Full arrangement: all 67 bars on a 16-step grid, each part at one level. Source detail keeps the original performance.
setcpm(112/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 · electric bass pick · "Bass"
const bass = note("<A@6 B C@5 D E F G@2 H C@5 D E F G@2 H C@2 A@6 B C@5 D E F G@2 H C@2 A@3 I J ~@11>".pickRestart({
  A: "~@4 g3!2 g3@2 ~@8", B: "~@4 g3!2 g3@2 ~@4 d2@2 d2@2", C: "g2@4 g2@2 ~@2 d2@2 d2@3 c2 f#2@2, ~@7 g2@2 ~@7",
  D: "g2@4 g2@2 ~@2 d2@2 d2@2 c#2 ~ c#2@2, ~@7 g2@2 ~@7", E: "c2!2 d2!2 d#2!2 f2!2",
  F: "g2@2 g2 ~ d2!2 g2 a2, ~@7 g2@2 ~@7", G: "[a#2 f2 a#2!2 g#2@8 ~@4]/2", H: "~@3 d2",
  I: "~@4 g3!2 g3@2 a#2@2 f2@2 a#2@2 a#2@2", J: "g#2",
})).s("gm_electric_bass_pick").gain(0.57)

// other · lead 5 charang · "Sitar"
const lead_5_charang = note(`<
  A@3 B@5 C D C D C D C E ~@2 C F@2 C D C D C E ~@2 C@2 G@8 C D C D C D C E ~@2 C@2 H@4 I ~@11
>`.pickRestart({
  A: "[b3@8 b3@2 c4@4 d4@4 ~@6 d4@2 c4 d4 c4@2 b3@4 ~@6 b3@2 a#3@2 a3@2 g3 a3]/3",
  B: "[g3@4 g3 a3 a#3 b3@2 ~@3 b3 c4 ~ d4@2 ~@3 f4 e4 d4 c4@2 ~@3 b3 a#3 a3 ~ g2@2 ~ d3@2 ~ g3@2, ~@31 g3@2 ~@7]/5",
  C: "g2@2 ~ d3@2 ~ g3@2", D: "g2 ~@3", E: "a#3!2 f3 ~",
  F: "[g2@4 ~@2 e3@2 f3@2 d3 e3@2 ~@3 g2@4 ~@12, ~@7 d3@2 ~@7]/2",
  G: "[b3@2 ~@2 b3 c4@2 d4@2 ~@4 c4@2 b3@2 ~@3 b3 a#3 a3 g3@2 ~@3 g3 a3 a#3 b3@2 ~@3 b3 c4 ~ d4@2 ~@3 f4 e4 d4 c4@2 ~@3 b3 a#3 a3 ~ g2@2 ~ d3@2 ~ g3@2, ~@12 d4@2 ~@41 g3@2 ~@7]/8",
  H: "[b3@2 ~@2 b3 c4@2 d4@2 ~@3 f4 e4 d4 c4@2 ~@3 b3 a#3 a3 g3@2 ~@3 a#3@2 a#3@2]/4", I: "f3 ~@3",
})).s("gm_lead_5_charang").gain(0.54).pan(1)

// other · cello
const cello = note("<[g2!8]!7 ~@24 [g2!8]!7 ~@13 [g2!8]!3 [g2!4 ~@4] ~@12>").s("gm_cello").gain(0.22).pan(0)

// chords · piano
const piano = note("<A@8 ~@23 A@8 ~@12 B@4 ~@12>".pickRestart({
  A: "[[g3,d4,b4]@2 ~ [d4,b4]!2 [e4,c5] ~ [f4,d5]@2 f4 [d4,f4] f4 [f4,d5] [e4,c5]@2 [g3,d4,b4]@2 d4!3 [b3,d4] [c#4,a#4] [a3,c4] [g3,b3]@2 g3!3 [g3,b3] [a3,c4] [a#3,c#4] [b3,d4]@2 d4!3 [d4,b4] [e4,c5] ~ [f4,d5]@2 f4!3 [f4,a4] [e4,g4] [d4,f4] [c4,e4]@2 e4!3 [b3,d4] [a#3,c#4] [a3,c4] [g3,b3]@2 ~@7]/8", // G C Dm C G Bm F# Am …
  B: "[[g3,d4,b4]@2 ~ [d4,b4]!2 [e4,c5] ~ [f4,d5]@2 f4!3 [f4,a4] [e4,g4] [d4,f4] [c4,e4]@2 e4!3 [b3,d4] [a#3,c#4] [a3,c4] [g3,b3]@2 g3!3 ~@4]/4", // G C Dm F Em Dm C Bm …
})).s("gm_piano").gain(0.19).pan(0)

// chords · acoustic guitar steel · "Guitar"
const acoustic_guitar_steel = note(`<
  ~@7 A@6 B A C@2 ~ A@6 B A C@2 ~ A@2 ~@7 A@6 B A C@2 ~ A@2 ~@3 D E ~@11
>`.pickRestart({
  A: "~@2 [g3,b3,d4] ~@2 [a3,d4,f#4] ~ [g3,c4,e4]", B: "~@2 [c4,d#4,g4] ~@2 [c4,d#4,g4] ~ [c4,d#4,g4]",
  C: "[~@2 [f3,a#3,d4] ~ [d#3,g#3,c4]@8 ~@4]/2", D: "~@6 [f3,a#3,d4] ~", E: "[d#3,g#3,c4]",
})).s("gm_acoustic_guitar_steel").gain(0.22).pan(0)

// other · tubular bells · "Bell"
const tubular_bells = note("<~@2 A ~ A ~ A ~@26 A ~ A ~ A ~@15 A ~@13>".pickRestart({
  A: "~ g6 ~@2",
})).s("gm_tubular_bells").gain(0.22).pan(0.7)

// chords · tremolo strings · "strings1"
const tremolo_strings = note("<~@7 A ~@10 A ~@10 B@2 ~@7 C@2 D E F E ~@5 C@2 G@4 ~@12>".pickRestart({
  A: "f6 [e6,f6] e6 d#6 [d6,d#6] d6 c#6 [c6,c#6] c6 b5 [a#5,b5] a#5 a5 [g#5,a5] g#5 g5", // Fmaj7 D#maj7 C#maj7 Bmaj7 Amaj7
  B: "~@2 [d4,g4]!3 ~ [d4,g4] ~ [d4,f#4] ~ [d4,f#4] ~@3 [c4,e4] ~", // G5 D C
  C: "~@2 [b3,g4]!3 ~ [b3,g4] ~ [a3,f#4]@2 [a3,f#4]@2 ~@2 [g3,e4]@2", D: "d4@4 f#4@2 ~ e4", E: "d4",
  F: "d4@4 f#5@2 ~ e4", G: "[b5@4 b5 c6@2 d6@4 ~ f6 e6 d6 c6@4 ~ b5 a#5 a5 g5@4 ~@5]/4",
})).s("gm_tremolo_strings").gain(0.25)

// chords · tremolo strings · "strings2"
const tremolo_strings_2 = note("<~@8 A ~@4 B C D ~@3 A ~@4 B E D ~@13 F G F G B C D ~@7 H I ~@11>".pickRestart({
  A: "f#5 [f5,f#5] f5 e5 [d#5,e5] d#5 d5 [c#5,d5] c#5 c5 [b4,c5] b4 a#4 [a4,a#4] a4 [g3,g#4]", B: "c5 d5 d#5 f5",
  C: "g5@3 ~", D: "[a#3,d4]!8 [g#3,c4]@8", E: "g5 ~@3", F: "b4@4 d5@2 ~ c5", G: "b4", H: "~@8 [a#3,d4]!8",
  I: "[g#3,c4] ~", // G#
})).s("gm_tremolo_strings").gain(0.25).pan(1)

// drums · kick
const kick = s("bd").struct("<~@7 A@8 B ~@2 A@8 B ~@2 A@2 ~@7 A@8 B ~@2 A@2 ~@3 C ~@12>".pickRestart({
  A: "x!2", B: "~ x ~ x ~@4", C: "~@5 x ~ x",
})).gain(0.7)

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

// drums · low tom
const low_tom = s("lt").struct("<~@16 A B ~@9 A B ~@18 A B ~@7 C D E F G C H D I J K>".pickRestart({
  A: "~@2 x!2", B: "x", C: "x ~@2 x ~ x!2 ~", D: "~ x ~ x!2 ~@2 x", E: "~ x ~ x ~@3 x", F: "~ x ~@3 x ~ x",
  G: "x ~@2 x ~ x ~ x", H: "~@3 x!2 ~@2 x", I: "~ x!2 ~@2 x ~ x", J: "~@3 x ~ x ~ x", K: "x ~@2 x ~@4",
})).gain(0.78)

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

// drums · vibraslap
const vibraslap = s("vibraslap:0").struct(`<
  ~ A ~ A ~ A ~ B ~@10 B ~@10 B ~@2 A ~ A ~ A ~ B@2 ~@9 B@2 ~ A ~ A ~@12
>`.pickRestart({
  A: "~ x ~@2", B: "x",
})).gain(9.11)

// drums · shaker
const shaker = s("sh").struct("<~@55 [~@8 x!8] [x!16]!10 [x!8 ~@8]>").gain(0.78)

// drums · woodblocks
const woodblocks = s("woodblock:5").struct("<~@16 [~@3 x ~@4] ~@10 [~@3 x ~@4] ~@19 [~@3 x ~@4] ~@19>").gain(1.12)

// drums · triangle
const triangle = s("triangles:35").struct("<A B C D B D@2 ~@24 A B C D B D@2 ~@13 A D@2 ~@13>".pickRestart({
  A: "x ~@3 x!2 ~ x", B: "~@4 x!2 ~ x", C: "~@4 x ~ x!2", D: "~@4 x!4",
})).gain(6.75)

stack(
  bass, lead_5_charang, cello, piano, acoustic_guitar_steel, tubular_bells, tremolo_strings, tremolo_strings_2, kick,
  snare, low_tom, tambourine, vibraslap, shaker, woodblocks, triangle
)