You should be able to run your midi out from the TD-9 to a midi interface that plugs in to your computer. Or if the usb port act's as a midi interface you can use that. Not sure if the usb port will do that on that unit.
But you can connect your midi out to a midi interface and record to a midi track and play the performance back to the midi in of your TD-9.
Your maual should explain everything. Maybe I can take a look at a pdf manual of that unit.
Bookmarks