I tinkered with it a bit and create this code[0] based on a song[1] that I'm learning. I think this tool is cool and has potential, but still need a lot more improvement. At least it needs a way to reduce duplicate in my code :)
So for repeating commands you can use this syntax:
play somenotelist for 1b loop for 5
Here is your code using the new feature: https://pastebin.com/bNwUHNaM
To make this more robust, I'll be looking to add looping constructs to allow more customized looping in the future.
I agree, it is still in its early stages.
Looking at your code it seems it would be useful to have a way to repeat a play command without a chunk.
I think something like: " play E4 for 1b rep 5 "
As a way to repeat something 5 times for example (and reduce duplicates) could be a future solution.