I usually start writing the basic rythm I want for the riff (a thrash metal beating, D-beat, nwobhm rythm). Then, check the velocity of notes, try to put a slightly higher value to the beats you want stronger, this will give more pulse to the song. Add the cymbals and fill-ins based on what...