Also if anyone is interested, here’s a draft of a context-free grammar for Tidal generation that I started writing as a side project recently.
https://gist.github.com/lwlsn/c57a2a1c2d77430d1e02b305d18b66c6
Hopefully can share some code for this soon, when it’s a bit more functional..