Often randomize and humanize functions are used to create a more living drum beat. But if you already know a song or guitar riff with a nice groove. Lets rip it and apply to the drums!
Lets start with this guitar riff.Riff.ogg
Rhythm Ferret in Ardour (open by selecting the region -> Window -> Rhythm Ferret) let you detect the hit-points.
Adjust the sensitivity and threshold in order to get enough hit-points.
When you hit apply the region will be sliced into smaller regions that will be used for snapping the drum samples to.
First copy the regions into two new tracks (that will be your kick and snare tracks), than mute those regions.
Now pick your one-hit drum samples and start placing them on top of the muted regions.
Make sure the grid is set to region bounds in order for the samples to correctly snap to the hit-points.
Now lets have a listen to it all together.Riff+Groove.ogg
Notice: If you would like to add hi-hat and percussion to the drum beat in the same way, you should increase the sensitivity when detecting hit-points. The down side is that more hit-points also leaves you with more choices that might cause problems finding the right ones.