This post has been superseded by my giant collection of rhythm patterns, which you can see here.
I wrote a general post about what makes a hot beat hot. As a followup, here’s how to program some generic patterns and a few famous breakbeats. The basic unit of dance music is a sequence of sixteen eighth notes, two measures of four-four time. Drum machines like the Roland TR-808 represent the sixteen eighth notes as an ice cube tray with sixteen slots, with a row for each percussion sound. Software like Reason and Fruityloops have drum machine emulators that follow the look and feel of the 808. The loop cycles from slot number one across to the right. When it gets to slot sixteen it jumps back to one.
Here’s how you’d count the basic loop. Above is the standard music notation method of counting two bars of four-four time. Below is the drum machine representation, with the eighth notes numbered one through sixteen.
| 1 + 2 + 3 + 4 + 1 + 2 + 3 + 4 + | | 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 |