tail-recursive version of events/make

i've experienced stack overflow errors when trying to generate longer compositions - i've traced it to the recursive call in events/make and have rewritten it in a tail-recursive fashion. this seems to fix the issue.