skip to content

Give the drummer some

loading...

Let’s bring in the drum sounds from the Beat examples and get a full rhythm section going. There’s so much variation happening, it holds some interest without any other instruments in play, don’t you think? Enough to soundtrack 3 or 4 hours of porn, in any case.

Notable in this example is the use of a <blam-blam> element to toggle the hi-hat track’s solo prop. Every time the snare track plays a snare, there’s a slim (0.1 or 10%) chance solo will be switched on and all other tracks silenced.

<blam-blam from="#snareTrack" to="#hatTrack" prop="solo" chance="0.1" revert></blam-blam>

Because revert is also set, there’s a 100% chance solo will “snap back” to false the next time a snare comes around. You can create all sorts of compositional fluctuations this way.

Since a <switch-blam> is provided for the same purpose of soloing the hi-hat, its input’s checked state must stay in sync.

<switch-blam to="#hatTrack" prop="solo">
  <label>
    hat solo
    <input type="checkbox">
  </label>
</switch-blam>

Fortunately, HYPERBLAM sees to this automatically. You’ll see the switch toggle whenever <blam-blam> does its thing. You can either sit back and watch these kinds of automated changes take place, or you can intervene and change them when it feels right. Some stimulating interfaces can be made this way.