If you want to programmatically generate tracks, just add the code below to the Tx constructor in main.bundle.js:
window.editor = this;
Then you can use the methods of the editor object.