Queuing a bunch of commands from a online multi-user webpage? Sounds like a job for a WebSocket server ;)
2020-04-23 23:57:11 +0000 UTC
The tracks idea sounds a lot like the old programming language LOGO, where you made graphics via commands like this:
color blue
forward 100
color red
left 150
Here is a wiki-link, if it can help (but probably not):
https://en.wikipedia.org/wiki/Logo_(programming_language)