Strudelify

Trombone Fanfare

Brett Lair

KeyA♭ majorTempo120 bpm
0:00/0:00
// Trombone Fanfare — Brett Lair
// 120 bpm, 4/4, key Ab major. Source: midi.
// Generated by strudelify. One cycle = one bar.
// note: Transcription provider: pdmx. https://musescore.com/score/1818021; license: https://creativecommons.org/publicdomain/mark/1.0/
// note: Full arrangement: all 33 bars on a 32-step grid, each part at one level. Source detail keeps the original performance.
setcpm(120/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.

// other · trombone
const trombone = note("<A B C D A E F G A B C D A E F G A B C D A E F G A B C D A E F G H>".pickRestart({
  A: "f3@16 f3@4 ~ f3@4 ~@2 f3@4 ~", B: "eb3@10 eb3!2 ~ eb3!2 ~", C: "db3@16 db3@4 ~ db3@4 ~@2 db3@4 ~",
  D: "c3@8 bb3@2 bb3@2 c4 bb3 ab3@2", E: "g3@10 g3!2 ~ g3!2 ~", F: "ab3@16 ab3@4 ~ ab3@4 ~@2 ab3@4 ~",
  G: "bb3@8 bb3@2 bb3@2 c4 bb3 ab3@2", H: "c4",
})).s("gm_trombone").gain(0.4)

// bass · trombone · "Bass Trombone"
const bass = note("<A B C D E B C D E B C D E B C D E B C D E B C D E B C D E B C D F>".pickRestart({
  A: "[f2,eb3]@16 [f2,f3]@4 ~ [f2,f3]@4 ~@2 [f2,f3]@4 ~", B: "eb2@10 [eb2,eb3]!2 ~ [eb2,eb3]!2 ~, eb3 ~",
  C: "[db2,db3]@16 [db2,db3]@4 ~ [db2,db3]@4 ~@2 [db2,db3]@4 ~", D: "[c2,c3]@8 [bb2,bb3]@2 [bb2,bb3]@2 c3 bb2 ab2@2",
  E: "[f2,f3]@16 [f2,f3]@4 ~ [f2,f3]@4 ~@2 [f2,f3]@4 ~", F: "f2",
})).s("gm_trombone").gain(0.4)

// drums · kick
const kick = s("bd").struct("<~@8 [x!4]!15 [x ~ x!3 ~ x!2]!4 [x!4]!5 x>").gain(0.3)

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

stack(trombone, bass, kick, snare)