There’s a lot going on here and I’m not going to explain it all. Instead, why not take a listen while you explore the source code?
As in the previous example, the original <media-blam> and <audio> elements are now missing. And good riddance, frankly, because we can achieve a lot more with the <pads-blam> and <notes-blam> elements: true sample-based instruments.
Also, be sure to look inside <sequencer-blam> where I’ve written the composition (to be rewritten with each play through). The note choices, rhythms, and audio parameters (such as the length of snare sounds) are all fluctuated or randomized. This gives the composition life.