The friction happens inside the drum. A damp cloth or similar material rubs a rod fixed to the drumhead, making the stretched membrane vibrate. Pressure on the head changes the pitch. Follow that hidden rod to understand why the sound can grunt and bend instead of behaving like a simple struck beat.